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

Create a webpage with HTML and JAVA Script that takes a user's 4 inputs (first name,...
Create a webpage with HTML and JAVA Script that takes a user's 4 inputs (first name, last name, phone number, and sex[using checkbox, must set on load and change whenever the checkbox is selected, only 1 box can be selected, selecting the other automatically deselects the latter]) The first button saves all the inputs into LOCAL STORAGE The Second button retrieves all the data in LOCAL STORAGE and displays them on the same page. Alert box to inform the user...
Please write a program in c# that meets the following specifications.   Dominion Gas Corporation would like...
Please write a program in c# that meets the following specifications.   Dominion Gas Corporation would like you to develop an application that helps them calculate the gas consumption bill of their customers. The application would first ask for the customer account number, the customer name and the type of account (residential or commercial). Then the application asks for the gas consumed during the past month by the customer in MCF (the unit used to indicate the amount of gas consumed)....
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
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT