This preview shows page 1. Sign up to view the full content.
Unformatted text preview: Data requirements: Problem input int Fahrenheit Problem output Double Celsius Relevant formula Celsius = 5/9 (Fahrenheit 32) 4. Write a program to take two numbers as input data and to display their sum, difference, product, and their average. Problem Inputs: Double x,y Problem outputs: Double sum, difference, product, and average 5. Write a program that predicts the score needed on a final exam to achieve a desired grade in a course. The program should interact with the user in following manner: Enter Desired grade > B Enter minimum average required > 79.5 Enter current average in course> 74.6 Enter how much the final counts as percentage of the course grade> 25 You need a score of 94.20 on the final to get a B. 6. Write a program that takes the length and width of a rectangle. It computes its area, and displays it....
View Full Document
- Winter '09