Skip to main content

Write a java program the

SMB4103-Introduction to Programming Page 1 of 4
SMB4103-Introduction to Programming
Semester 2, 2018
Log/Workbook Assessment
Log/Workbook No. : Log/Workbook-1

Due date: : Week 4
Group/individual : Individual Assignment
Weighting: : 10%

Student ID: ____________________, Student Name: ________________________________
Question one (5 marks)
Write a java program the accept four student’s marks: Quiz(Q) test, Mid-Semester (MS),
Applied Project (AP) and Final test (FT). The student should enter the marks using keyboard.
The weight for each assessment is shown in Table (1) as follows:

Assessment Weight
Quiz 10%
Mid-Semester Test 20%
Applied Project 40%
Final Test 30%

Table 1: Assessment Overview
The final make can be calculated as:
Final Mark (FM)=0.1*(Q)+0.2*(MS)+0.4*(AP)+0.3*(FT)
The program should calculate final marks and display the letter grade that is assigned for the final
mark. Use the grading scheme in Table 2.

Final Mark (FM) Letter Grade
90-100 A
80-89 B
70-79 C
60-69 D
Below 60 F

Table 2: Grading Scheme
Answer:

SMB4103-Introduction to Programming Page 2 of 4
SMB4103-Introduction to Programming Page 3 of 4
Question two (5 marks)
A Community health centre wants to use Body Mass Index (BMI) to find the ideal body preparation
for the centre’s clients. You have recently hired to develop a Java application to calculate the BMI. In
this application, the client has to enter first name, last name, weight, height and gender using
keyboard. Your application must use the following equation to calculate the BMI:
BMI= W / H
2
Where, W is the weight in kilograms and H is the height in meter. The BMI estimates whether the
client is underweight, acceptable weight, overweight, obese, or morbidly obese according to the
following table
Table 3: The BMI result
For example, if a male client weight is 80 Kg and height is 1.6 meter. The BMI is about 31.25 and the
result is “Obese”.
Answer:

Result BMI (Female) BMI (Male)
Underweight Less than 19 Less than 20
Acceptable Greater than or equal to 19
and less than 25
Greater than or equal to 20
and less than 25
Overweight Greater than or equal to 25
and less than 30
Greater than or equal to 25
and less than 30
Obese Greater than or equal to 30
and less than 40
Greater than or equal to 30
and less than 40
Morbidly Obese Greater than or equal to 40 Greater than or equal to 40

SMB4103-Introduction to Programming Page 4 of 4

The post Write a java program the appeared first on My Assignment Tutor.



Logo GET THIS PAPER COMPLETED FOR YOU FROM THE WRITING EXPERTS  CLICK HERE TO ORDER 100% ORIGINAL PAPERS AT PrimeWritersBay.com

Comments

Popular posts from this blog

Identify and discuss a key milestone in the history of computers that interests you and why.

  Part 1Title: Lab ResponseDiscuss one feature of MS Word and one feature of MS Excel that you found challenging within the lab and why. Examples are WordArt, inserting shapes, adding borders, cell styles, etc. This response should be at least one paragraph in length. Part 2Title: History of Computers Identify and discuss a key milestone in the history of computers that interests you and why. This section should be at least one paragraph. Part 3Title: System Software vs. Application Software In your words, explain the difference between application software and system software as if to another coworker who has limited technical knowledge. Use examples to support your rationalization. This section should be at least two paragraphs. Part 4Title: Blockchain and Cryptocurrency In a minimum of one paragraph each: 1. Conduct some research on the internet and discuss one underlying technology of cryptocurrencies like blockchain, cryptography, distributed ledger technol...

Cybersecurity and Infrastructure Security (CISA)

 Develop a research paper that identifies a specific Department of Homeland Security (DHS) operating agency. Fully describe 1 DHS operating agency from the following list: Cybersecurity and Infrastructure Security (CISA) U.S. Customs and Border Protection (CBP) U.S. Citizenship and Immigration Services (USCIS) Federal Emergency Management Agency (FEMA) U.S. Coast Guard (USCG) U.S. Immigration and Customs Enforcement (ICE) U.S. Secret Service (USSS) Transportation Security Administration (TSA) The information must include a discussion of the selected DHS agency. Identify the agency’s mission, goals, objectives, and metrics. Conduct an analysis of how these mission areas address the threats or challenges. Recommend agency program priorities among the current set of goals, objectives, metrics, or budget items. Justification of all choices is an essential element of this assignment. Reference all source material and citations using APA format. WE OFF...

Internet Trends and Emerging Technologies

 Seek out the latest presentation by Mary Meeker on “Internet Trends” (if you cannot find it, the video from 2019 is available at https://www.youtube.com/watch?v=G_dwZB5h56E or seek out another source of information on Internet Trends and Emerging Technologies . Write 1 page describing what the top three trends and/or emerging technologies are, in your opinion and why.  Are there any ethical dilemmas over those trends and why? (Think about printable like 3D printers and weapons, autonomous vehicles, wearables, findables, etc...).  In your opinion, is this trend good for mankind? WE HAVE DONE THIS ASSIGNMENT BEFORE, WE CAN ALSO DO IT FOR YOU GET SOLUTION FOR THIS ASSIGNMENT,  Get Impressive Scores in Your Class CLICK HERE TO MAKE YOUR ORDER   on  Internet Trends and Emerging Technologies Are You looking for Assignment and Homework Writing help?  We Provide High-Quality Academic Papers at Affordable Rates. No Plagiarism. TO BE R...