Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please i need this solved in all java using SWITCH CASE for question number 3 15%O Safari ..LTE 5:11 PM M3 - L4 - Selection

please i need this solved in all java using SWITCH CASE for question number 3 image text in transcribed
image text in transcribed
15%O Safari ..LTE 5:11 PM M3 - L4 - Selection Structures Lab 4 Selection Structures Exercise 31: Design and implement a program (name it Youth) that reads from the user an integer values repressing age (say, age). The program prints out the entered values followed by a message as follows: If age is less or equal to 21. the message is Youth is wonderful thing. Enjoy. Finally, the program always prints out the message "Age is a state of mind." Format the outputs following the sample runs below. You entered: 20 Youth is a wonderful thing. Enjoy. Age is a state of mind. You entered: 25 Age is a state of mind. You entered: 21 Youth is a wonderful thing. Enjoy. Age is a state of mind. Exercise #2: The weekly pay for an employee is determined based on the following parameters: Standard work hours by week is 40 hours Hourly pay rate is $10.00 per hour Overtime hours are paid at time and a half the rate (that is $15.00 per hour) Design and implement a program (name it WeeklyPay) that read number of hours worked per week (as integer value), prints out the entered hours and then prints out the gross eaming Organized your output following these sample runs You entered 20 hours. Gross Barning is $200 You entered 40 hours. Gross earning is $400 You entered SD hours Gross earning is 5550 Page 1 of 2 Safari .l LTE 5:11 PM 15% Page 1 of 2 Exercise #13: Design and implement a program (name it Grade Report) that uses a switch statement to print out a message that reflect the student grade on a test. The messages are as follows: For a grade of 100 or higher, the message is that grade is a perfect score. Well done.) For a grade 90 to 99, the message is that grade is well above average. Excellent work. For a grade 80 to 89, the message is that grade is above average. Nice job.) For a grade 70 to 79, the message is that grade is average work.) For a grade 60 to 69, the message is that grade is not good, you should seek help! For a grade below 60, the message is that grade is not passing.) Organized your output following these sample runs. Sample run 1: You entered 100 That grade is a perfect score. Well done. Sample run 2 : You entered 75 That grade is average. Samerun You entered 55 That grade is not passing. Instructions: 1. Programs must be working correctly 2. Programs must be completed and checked before working the assignment 3. Programs must be checked by the end of the designated lab session Page 2 of 2

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Relational Database Design A Practical Approach

Authors: Marilyn Campbell

1st Edition

1587193175, 978-1587193170

More Books

Students also viewed these Databases questions