ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 103 Weeks Ago, 3 Days Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 25 Apr 2017 My Price 9.00

throws IOException

please finish it correctly thanks :)

please finish it correctly thanks :)

please finish it correctly thanks :)

please finish it correctly thanks :)

 

// Assignment #: 11// Name: Your name// StudentID:// Lecture:// Description: Assignment 11 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.io.*;public class Assignment11{public static void main (String[] args) throws IOException{char input1;String inputInfo;String line = new String();printMenu();InputStreamReader isr = new InputStreamReader(System.in);BufferedReader stdin = new BufferedReader(isr);do// will ask for user input{System.out.println("What action would you like to perform?");line = stdin.readLine();input1 = line.charAt(0);input1 = Character.toUpperCase(input1);if (line.length() == 1){// matches one of the case statementsswitch (input1){case 'P'://Enter StringSystem.out.print("Please enter a string.\n");inputInfo = stdin.readLine().trim();int result = Matching.checking(inputInfo);if (result == 0)System.out.println("Everything is matching");else if (result == 1)System.out.println("right parenthesis does not have itsmatching left parenthesis");else if (result == 2)System.out.println("left parenthesis does not have itsmatching right parenthesis");else if (result == 3)System.out.println("right brace does not have its matchingleft brace");else if (result == 4)System.out.println("left brace does not have its matchingright brace");break;case 'Q'://Quitbreak;case '?'://Display MenuprintMenu();break;default:System.out.print("Unknown action\n");break;}}

 

Attachments:

Answers

(11)
Status NEW Posted 25 Apr 2017 07:04 AM My Price 9.00

-----------

Attachments

file 1493106866-Solutions file 2.docx preview (51 words )
H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly -----------onl-----------ine----------- an-----------d g-----------ive----------- yo-----------u e-----------xac-----------t f-----------ile----------- an-----------d t-----------he -----------sam-----------e f-----------ile----------- is----------- al-----------so -----------sen-----------t t-----------o y-----------our----------- em-----------ail----------- th-----------at -----------is -----------reg-----------ist-----------ere-----------d o-----------n -----------THI-----------S W-----------EBS-----------ITE-----------. ----------- Th-----------ank----------- yo-----------u -----------
Not Rated(0)