Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can anybody help me to solve this assignment5.java? The first three photos are Assignment5.java! The 4-7th photos are input1.txt-input4.txt! The 8th is output1.txt, 9-10th is

Can anybody help me to solve this assignment5.java? The first three photos are Assignment5.java! The 4-7th photos are input1.txt-input4.txt! The 8th is output1.txt, 9-10th is output2.txt, 11-12th is output3.txt and 13-14th is output4.txt! Start from the 15th, all of them are HW5 instructions! Please show all of steps! Thanks a lot!

image text in transcribed

image text in transcribedimage 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

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

I / assignment is 5 I/ Arizona State University - cSE205 II Name Yournace I/ Student ID: Your id Lecture: Your lecture time (for instance, MGF 10:40am) Description: The Assignment 5 class displays a mena of choices (add fluorescent lamp, LBD lamp, search lamp , list lamps, , quit, display menu ) to a user and performs the chosen task. It will keep asking a user to enter the next choice until the choice of "o" (Ouit) is II entered. n import import 3 Javating ava.io ., to to use InputstreamReader and BufferedReader use ArrayList public class assignments public static void main (string arge ) char input 1; string inputInfo - new string ); string line - new string(0) boolean operation; UI ArrayList object is used to store and object ArrayList <. lamp lampliot new arraylotlamp> (I try printMenu (): II print out menu I create a BufferedReader object to read input from a keyboard InputStreamReader isr - new InputstreamReader (System, in ); BufferedReader stdin - new BufferedReader (ier ); do system.out.print in what action would you like to perfora? "); line - stdin.readLine().tria (O input1 - line.charAto ) inputi - Character. to uppercase input! ) iE (line.length ( 1) switch (input) case 'A' : /Add Lamp I / assignment is 5 I/ Arizona State University - cSE205 II Name Yournace I/ Student ID: Your id Lecture: Your lecture time (for instance, MGF 10:40am) Description: The Assignment 5 class displays a mena of choices (add fluorescent lamp, LBD lamp, search lamp , list lamps, , quit, display menu ) to a user and performs the chosen task. It will keep asking a user to enter the next choice until the choice of "o" (Ouit) is II entered. n import import 3 Javating ava.io ., to to use InputstreamReader and BufferedReader use ArrayList public class assignments public static void main (string arge ) char input 1; string inputInfo - new string ); string line - new string(0) boolean operation; UI ArrayList object is used to store and object ArrayList <. lamp lampliot new arraylotlamp> (I try printMenu (): II print out menu I create a BufferedReader object to read input from a keyboard InputStreamReader isr - new InputstreamReader (System, in ); BufferedReader stdin - new BufferedReader (ier ); do system.out.print in what action would you like to perfora? "); line - stdin.readLine().tria (O input1 - line.charAto ) inputi - Character. to uppercase input! ) iE (line.length ( 1) switch (input) case 'A' : /Add Lamp

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

More Books

Students also viewed these Databases questions