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

Should pit bull terriers be banned in my community

 Discussion Forum: Counterarguments (Should pit bull terriers be banned in my community) You created a question about the topic for your W6 Rough Draft. For this discussion, you will give an answer to that question in the form of a thesis statement. "Dieting Makes People Fat" Main Post: Share your thesis statement with your classmates. Please note: As with last week’s discussion, nothing here is set in stone. Be open to changing everything about your topic, including your position and audience, as you research it and get feedback from your classmates. Topic + Position/Purpose + Supporting Points =Thesis Statement Example: Suppose the question you posed in the Week 5 discussion was something like, “Should pit bull terriers be banned in my community?” After doing some preliminary research, you have concluded that pit bulls, if raised properly, are no more dangerous than other breeds of dogs. Your thesis statement can be something like, “Pitbulls should not be banned

Controversy Associated With Dissociative Disorders

 Assignment: Controversy Associated With Dissociative Disorders The  DSM-5-TR  is a diagnostic tool. It has evolved over the decades, as have the classifications and criteria within its pages. It is used not just for diagnosis, however, but also for billing, access to services, and legal cases. Not all practitioners are in agreement with the content and structure of the  DSM-5-TR , and dissociative disorders are one such area. These disorders can be difficult to distinguish and diagnose. There is also controversy in the field over the legitimacy of certain dissociative disorders, such as dissociative identity disorder, which was formerly called multiple personality disorder. In this Assignment, you will examine the controversy surrounding dissociative disorders. You will also explore clinical, ethical, and legal considerations pertinent to working with patients with these disorders. Photo Credit: Getty Images/Wavebreak Media To Prepare · Review this week’s Learning

CYBER SECURITY and how it can impact today's healthcare system and the future

 Start by reading and following these instructions: Create your Assignment submission and be sure to cite your sources, use APA style as required, and check your spelling. Assignment: Recommendations Document Due Week 6 (100 pts) Main Assignment Recommendations Document The 1250 to 1500-word deliverable for this week is an initial draft of your recommendations. Note that this is a working document and may be modified based on insights gained in module eight and your professor's feedback. This document should contain the following elements: Summary of your problem or opportunity definition A list of possible recommendation alternatives. In this section, you are not yet at the point of suggesting the best set of recommendations but you are trying to be creative and explore all the different ways that the problem or opportunity might best be addressed. The end result here will be a list of alternatives among which you will choose your final recom