Question

In: Computer Science

Program Specifications: PART ONE: The client would like a program that inputs a user's first and...

Program Specifications:

PART ONE:

The client would like a program that inputs a user's first and last name. The program will also input the user's height and weight.

The program will output the following for the input data. (assuming the input was Dennis, Hunchuck, 6.0, 220.0)

You can assume that the user runs 1 mile per day. The user loses 1/2 pound for each day he or she runs. You can ask the user how many days he or she went running.   

PART TWO:

You can assume a stool is 1.5 feet high. You can assume a chair is 3.4 feet high. You will output how tall or high would a person be if they stood on 3 stools that are balancing on top of two chairs.

Hello Dennis Hunchuck.

Your weight is 220.0.  

Your height is 6.0.

Based on your exercise you should now weigh 999

If you balance on the stools and chairs you would be 999 feet high.

[INPUT: first name, last name, height, weight, and the number of days he or she went running.]

SUBMISSION:

You are to write a Python Source Document(s).
You are to write a design tool (you pick which tool).

You are to attach to this thread your source document.
You are to attach to this thread your source code document.

Note: Comments within your source code is not a design tool.

Solutions

Expert Solution

SOURCE CODE IN PYTHON:

#input

firstName=input('Enter your first name: ')

lastName=input('Enter your last name: ')

weight=float(input('Enter your weight: '))

height=float(input('Enter your height: '))

days=int(input('How many days did you run? '))

#processing

newWeight=weight-(days*0.5)

newHeight=height+(3*1.5)+(2*3.4)

#output

print()

print('Hello', firstName, lastName)

print('Your weight is', weight)

print('Your height is', height)

print('Based on your exercise you should now weigh', newWeight)

print('If you balance on the stools and chairs you would be',newHeight, 'feet high')

OUTPUT:

Regards!


Related Solutions

As part of a research program for a new cholesterol​ drug, a pharmaceutical company would like...
As part of a research program for a new cholesterol​ drug, a pharmaceutical company would like to investigate the relationship between the ages and LDL​ (low-density lipoprotein) cholesterol of men. The accompanying data set shows the ages and LDL cholesterol levels of seven randomly selected men. Construct a​ 95% prediction interval to estimate the LDL cholesterol level of a 28​-year-old man. Age 24 37 27 31 42 32 42 Cholesterol 141 178 160 199 158 142 205 Determine the upper...
As part of a research program for a new cholesterol​ drug, a pharmaceutical company would like...
As part of a research program for a new cholesterol​ drug, a pharmaceutical company would like to investigate the relationship between the ages and LDL​ (low-density lipoprotein) cholesterol of men. The accompanying data set shows the ages and LDL cholesterol levels of seven randomly selected men. Construct a​ 95% prediction interval to estimate the LDL cholesterol level of a 25​-year-old man. Click the icon to view the data table. Age: 22 37 26 32 41 31 40 Cholesterol: 144 177...
As part of a research program for a new cholesterol drug, a pharmaceutical company would like...
As part of a research program for a new cholesterol drug, a pharmaceutical company would like to investigate the relationship between the ages and LDL (low-density lipoprotein) cholesterol of men. The accompanying data set shows the ages and LDL cholesterol levels of seven randomly selected men. Construct a 95% prediction interval to estimate the LDL cholesterol level of a 25 year old man. Age | 24 38 26 32 43 30 41 Cholesterol | 141 175 155 197 158 144...
As part of a research program for a new cholesterol​ drug, a pharmaceutical company would like...
As part of a research program for a new cholesterol​ drug, a pharmaceutical company would like to investigate the relationship between the ages and LDL​ (low-density lipoprotein) cholesterol of men. The accompanying data set shows the ages and LDL cholesterol levels of seven randomly selected men. Construct a​ 95% prediction interval to estimate the LDL cholesterol level of a 32​-year-old man. Age- 24, 37, 25, 33, 43, 31, 41 Cholesterol- 140, 177, 157, 197, 160, 141, 209 Determine the upper...
As part of a research program for a new cholesterol​ drug, a pharmaceutical company would like...
As part of a research program for a new cholesterol​ drug, a pharmaceutical company would like to investigate the relationship between the ages and LDL​ (low-density lipoprotein) cholesterol of men. The accompanying data set shows the ages and LDL cholesterol levels of seven randomly selected men. Construct a​ 95% prediction interval to estimate the LDL cholesterol level of a 40​-year-old man. Age   Cholesterol 22   141 37   177 25   160 33   196 41   157 31   140 42   209 Determine the upper...
As part of a research program for a new cholesterol​ drug, a pharmaceutical company would like...
As part of a research program for a new cholesterol​ drug, a pharmaceutical company would like to investigate the relationship between the ages and LDL​ (low-density lipoprotein) cholesterol of men. The following data set shows the ages and LDL cholesterol levels of seven randomly selected men. Construct a​ 95% confidence interval to estimate the average LDL cholesterol level of a 30 year old man. Age Cholesterol 22 140 36 180 27 156 31 200 41 159 31 144 42 205...
As part of a research program for a new cholesterol? drug, a pharmaceutical company would like...
As part of a research program for a new cholesterol? drug, a pharmaceutical company would like to investigate the relationship between the ages and LDL? (low-density lipoprotein) cholesterol of men. The accompanying data set shows the ages and LDL cholesterol levels of seven randomly selected men. Construct a? 95% prediction interval to estimate the LDL cholesterol level of a 33?-year-old man. Age Cholesterol 22 141 36 177 25 156 31 198 42 158 32 145 40 207 Determine the upper...
As part of a research program for a new cholesterol​ drug, a pharmaceutical company would like...
As part of a research program for a new cholesterol​ drug, a pharmaceutical company would like to investigate the relationship between the ages and LDL​ (low-density lipoprotein) cholesterol of men. The following data set shows the ages and LDL cholesterol levels of seven randomly selected men. Construct a​ 95% confidence interval to estimate the average LDL cholesterol level of a 33​-year-old man. Age 24 38 25 32 41 31 42 Cholesterol 142 179 158 197 159 142 205
As part of a research program for a new cholesterol​ drug, a pharmaceutical company would like...
As part of a research program for a new cholesterol​ drug, a pharmaceutical company would like to investigate the relationship between the ages and LDL​ (low-density lipoprotein) cholesterol of men. The following data set shows the ages and LDL cholesterol levels of seven randomly selected men. Construct a​ 95% confidence interval to estimate the average LDL cholesterol level of a 31 year old man. Age,Cholesterol 24, 142 36, 180 27, 159 32, 196 43, 157 31, 142 41, 210
Modify the Assignment program from Module 1 to read a user's first and last name read...
Modify the Assignment program from Module 1 to read a user's first and last name read three integer scores, calculate the total and average determine the letter grade based on the following criteria - Average 90-100 grade is A, 80-89.99 grade is B, 70-79.99 grade is C, all others F (use a nested if) Output formatted results consisting of the full name, the three scores, the total, average (to 2 decimal places), and the letter grade go to step 1...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT