PDA

View Full Version : Programming codes


andyhaus1057
Jul 9, 2009, 08:04 PM
1) A college wants me to write a program for them that will calculate the average number of wins for their football team over the past 5 years. The program user should be able to enter the number of wins each year. The program will calculate the average number of wins during that five year period and display that info to the screen


2) A dietitian wants me to write a program that will calculate the number of calories a person can use by walking at a slow pace for a mile. She only has the distance on the pedometer, which is measured in steps and not miles. Each mile a person walks equals 2000 steps. For every mile, a person uses 65 calories. Allow the program user to enter the number...


3) If the user program types Bill Jones to the question in Step 1, what can I expect the output to the screen to be when the following line of code processes?

Print 'The student's name is', studentName

Perito
Jul 9, 2009, 08:25 PM
1) A college wants me to write a program for them that will calculate the average number of wins for their football team over the past 5 years. The program user should be able to enter the number of wins each year. The program will calculate the average number of wins during that five year period and display that info to the screen

2) A dietitian wants me to write a program that will calculate the number of calories a person can use by walking at a slow pace for a mile. She only has the distance on the pedometer, which is measured in steps and not miles. Each mile a person walks equals 2000 steps. For every mile, a person uses 65 calories. Allow the program user to enter the number...

3) If the user program types Bill Jones to the question in Step 1, what can I expect the output to the screen to be when the following line of code processes?

print 'The student's name is', studentName



So, what's your question? These are pretty simple programs. #3, for example, you'd expect it to print "The student's name is Joseph" or something like that on the screen. That's a no-brainer.

Certainly you don't want me to write it for you. If I did that, you'd have to pay me -- and I don't work cheap. :D

Also, this should be put under "Programming". Not just willy-nilly anywhere. {Mod Note: moved-<>}