Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Question 3 Only.... Visit www.myprogramminglab.com to complete many of these pro

ID: 3635223 • Letter: Q

Question

Question 3 Only....

Visit www.myprogramminglab.com to complete many of these programming Projects online and get instant feedback. Repeat Programming Project 4 of Chapter 3, but use a loop that reads and processes sentences until the user says to end the program. Write a program that implements your algorithm from Exercise 2. Repeat Programming Project 5 of Chapter 3, but use a loop so the user can convert other temperatures. If the user enters a letter other than C or E-in either uppercase or lowercase-after a temperature, print an error message and ask the user to reenter a valid selection. Do not ask the user to reenter the numeric portion of the temperature again, however. After each conversion loop and perform another conversion. Repeat the previous project, but use optionpane windows for input and output. Offer the user Yes and No buttons to end execution instead of asking for character input of Q or q. Optionpane is described in the graphics supplements of Chapters 2 and 3. Write a program to read a list of nonnegative integers and to display the largest integer, and the average of all the integers. The user indicates the end of the input by entering a negative value that is

Explanation / Answer

create a loop to allow a user to convert as many temperatures from C to F or vice versa Split numerical and f/c? q or Q to quit I'm going to assume your program is already parsing the input into variables Number and FarenCel. You'll also want to put the parts where you convert from celcius to farenheit and vice versa into two functions, toCelcius(float temp) and toFarenheit(float temp) String line = new String(); boolean continue = true; boolean prompt = false; while (continue) { // Your Existing Reading Program if FarenCel.toUpperCase() == "C" { System.out.println(ToCel(Temp)); prompt = true; } else if FarenCel.toUpperCase() == "F" { System.out.println(ToFaren(Temp)); prompt = true; } else { System.out.println("Enter either F or C for Conversion"); } if (prompt) { System.out.println("Perform another conversion? (Y/N)"); //read a character if (CharRead == 'q' || CharRead == 'Q') { continue = false; } prompt = false; } } You'll have to do some work to make it work with your previous project, but that is the idea of the thing.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote