Question: This is for Java. Q1) Write a program that prompts the user to enter a whole number (integer) and then checks to see whether that


This is for Java.
Q1) Write a program that prompts the user to enter a whole number (integer) and then checks to see whether that number is even or odd. Print out a message to the screen whether the number the user entered was even or odd. Hint: Use an if...else statement and the % function! Q2) Write a program that prompts the user to enter a whole number (integer) within the range of 1 through 5. The program should display the Roman numeral version of that number. If the number is outside the range 1-5, the program should display an error message. Q3) The area of a rectangle is the rectangle's length times its width. Write a program that asks for the length and width of two rectangles. The program should tell the user which rectangle has the greater area, or if the areas are the same. Q4) Write a program that has variables to hold three test scores. The program should ask the user to enter three test scores and then assign the values entered to the variables. The program should display the average of the test scores and the letter grade that is assigned for the test score average. Use the grading scheme in the following table: Letter Grade: Test Score Average: 90-100 80-89 70-79 60-69 Below 60
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
