Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please help me to solve this java project! The first three photos are Assignment4.java! And last ten photos are 4 Input cases and 4 Output
Please help me to solve this java project! The first three photos are Assignment4.java! And last ten photos are 4 Input cases and 4 Output cases! Thanks a lot!
// Assignment #: 4 // Name: Your name // StudentID: // Lecture: I/ Description: Assignment 4 class displays a menu of choices to a user and performs the chosen task. It will keep asking a user to enter the next choice until the choice of 'Q' (Quit) is entered. import java.util.*; public class Assignment4 public static void main (String[] args) // local variables, can be accessed anywhere from the main method char input 1 = 'z'; String inputInfo; String projTitle, projLocation, first, last, projNumStr, deptNumStr; int projNumber, deptNum; String line = new String(); // instantiate a Project object Project project = new Project(); printMenu( ) //Create a Scanner object to read user input Scanner scan = new Scanner (System.in); do // will ask for user input System.out.println("What action would you like to perform?") line = scan. nextLine(); if (line.length)1) input1 input1 = line . charAt (0); = Character . toUpperCase (input1); // matches one of the case statement switch (inputl)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started