Lab Exercise 4
Lab Exercise 4
1. Suppose your instructor gives three exams during the semester and you want to
write a program that calculates your average exam score. Answer the following:
a. What items of input must the user enter?
b. Once the input has been entered, how will the program determine the average?
c. What output will the program display?
Design a C#.Net program for the above scenario.
2. Tip, Tax and Total
Create an application that lets the user enter the food charge for a meal at a
restaurant. When a button is clicked, the application should calculate and display
the amount of a 15 percent tip, 7 percent sales tax and the total of all three
amounts.
3. Distance Traveled
Assuming there are no accidents or delays, the distance that a car travels down an
interstate highway can be calculated with the following formula:
Distance = Speed X Time
Create an application that allows the user to enter a cars speed in miles per hour.
The application should have buttons that display the following:
A button that reads Convert to Fahrenheit. If the user clicks this button, the
application should treat the temperature that is entered as a Celsius
temperature and convert it to Fahrenheit.
A button that reads Convert to Celsius. If the user clicks this button, the
application should treat the temperature that is entered as a Fahrenheit
temperature, and convert it to Celsius.