

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Instructions for writing a java program that prompts the user for two floating point values, computes their average, and generates a message based on the computed average. The message 'satisfactory' is output if the average is greater than or equal to 70.0, and 'unsatisfactory' otherwise. The program must be written using the joptionpane for input and output operations, and must include the class definition and necessary import statements.
Typology: Quizzes
1 / 3
This page cannot be seen from the preview
Don't miss anything!


CMSC131 Fall 2004 Quiz #
Name (Print last name followed by first name): Student Id: Section time (10am/11am): TA Names:
Write a Java program that prompts the user for two values, computes the average of the values and generates a message based on the computed average. The message “Satisfactory” will be output if the average is greater or equal to 70.0 and “Unsatisfactory” otherwise. The following restrictions/assumptions apply to this problem: