Wk08_Lab_For_While_Loops_ASSIGNMENT

Wk08_Lab_For_While_Loops_ASSIGNMENT - Programming I Loops...

This preview shows pages 1–2. Sign up to view the full content.

Programming I Loops Practice: 1-6 (Solve using all three loops) Assignment: 7-11 (Solve using a for and a while loop). Demonstration is due at the beginning of your next-next class Simple Loop 1. Write a program to print the numbers 2 to 10 in increments of two. The output of your program should be 2 4 6 8 10 2. Write a Program to compute the sum of eight numbers that will be provided by the user. 3. Write a Program to compute the average of ten numbers which will be entered by the user. 4. Write a C# program that displays a conversion table from gallons to liters. The program should display gallons from 10 to 20 in one-gallon increments and the corresponding liter equivalents. Use the relationship that 1 gallon contains 3.785 liters. 5. Write a C# program that converts feet to meters. The program should display feet from 3 to 30 in three-foot increments and the corresponding meter equivalents. Use the relationship that 1 meter is equivalent to 3.28 feet. 6. Write a program that displays a conversion table from Fahrenheit to Celsius. The program must request the starting Fahrenheit value, the ending Fahrenheit value, and the increment. Thus, instead of the condition checking for a fixed count, the condition checks for the ending Fahrenheit value 7.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern