Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

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

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions