Email: rakesh@xamnation.com         Phone/Whatsapp: +91 9988708161

# Introduction to Programming solved assignment

This is solved assignment of programming logic course. If you are looking for assistance in programming logic, you can contact us at rakesh@xamnation.com

## Programming logic assignment

This graded project will test your knowledge of what you have learned in this course so far If you have read all the material in each assignment and completed the checkpoints, review questions, and assigned exercise in the text, you shouldn’t have any problems successfully completing these tasks.

A personal trainer asks you to create a program to calculate and display clients’ body mass index (BMI). Use the information to create this program by

1. Creating the pseudocode for this program
2. Creating a flowchart for this program

Hint: Use Raptor, Visio, or Microsoft Word’ Drawing toolbar to create the flowchart.

### Problem Statement

Design a modular program that calculates and displays a person’s body mass index (BMI). The BMI is often used to determine whether a person with a sedentary lifestyle is overweight or underweight for his or her height. A person’s BMI is calculated with the following formula:

BMI=Weight×703/

## Programming logic Grading Criteria

 Used the lessons learned in this course to create the pseudocode for this program 25 points Created the modules for an effective program 25 points Created a flowchart for this program using lessons learned in this course 25 points Used the appropriate flowchart shapes to create a flowchart 25 points Total 100 points

Solution (Flowchart)

Solution (Pseudocode)

``````Constant Real CONVERSION_RATE = 703
Module main()
Declare Real weight
Declare Real height
Call getWeight(weight)
Call getHeight(totalBonuses)
Call showBMI(annualGrossPay)
End Module

Module getWeight(Real Ref weight)
Display "Enter the weight."
Input weight
End Module

Module getHeight(Real Ref height)
Display "Enter the height."
Input height
End Module

Module showBMI(Real weight, Real height )
Declare Real bmi
Set bmi = (weight * CONVERSION_RATE)/height^2
Display "The Body Mass Index"
Display "is \$", bmi
End Module``````

## End Note

We, at Xamnation, are helping students in their assignment and project work for IT courses. Students can get online tutoring, personal mentorship and project help from us. Learn how to create pseudocode, flowchart and write computer programs. Email us your assignment to info@xamnation.com and we will gladly help you.