Lab 4 If you have any questions during this lab, do not hesitate to

Lab 4
If you have any questions during this lab, do not hesitate to ask your lab demonstrator, and that
is what you should do – questions related to the lab sent through emails will not be answered.
This lab is to be completed and submitted before your lab period ends. You will need to put
your name and student # in the comments of both programs.
1. Use the “switch” structure to implement a lookup for UW grades A+(4.5), A(4.25), A-(4.0), B+, B,
C+, C, D, F (similar to the example in Listing 3.17). Your program must prompt the user for a single
grade and then display the corresponding grade point value.
2. Exercise 22 in Chapter 3 on the textbook (using the “for” structure).
3. Exercise 35 in Chapter 3 on the textbook (using the “do … while” structure).
Submit your lab work via email to [email protected]
Subject is 1903-07X (where X is 3 or 4 based on your lab section) lab 2 Student # Your
Name. You must attach the source files (.java files) for above programs.
1