Course Solutions Uncategorized (Solved) : Java Assignment Problem T Get Menu Return User Selection Time User Makes Invalid Choice Pa Q26520543 . . . .

(Solved) : Java Assignment Problem T Get Menu Return User Selection Time User Makes Invalid Choice Pa Q26520543 . . . .

 

Java Assignment, The problem I am having is that I can’t get themenu to return after each user selection. The only time it doesthat is when a user makes an invalid choice. That part workscorrectly. It also needs to close if the person makes threeincorrect selections in a row.

import java.util.Random;

import java.util.Scanner;

public class CalculatorWithMethods {

// scanner object creation

static Scanner input = new Scanner(System.in);

boolean mainloop = true;

public static void main(String[] args) {

//Declaring variables

double res;

int choice = (int) getMenuOption();

switch (choice) {

case 1:

{

//calling the method to get the operands

double operand1 = getOperand(“What is the first number?”);

double operand2 = getOperand(“What is the second number?”);

res =

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

(Solved) : Class Work Greeter Write Function Takes Person S Name Prints Greeting Greeting Must Least Q34314107 . . . .(Solved) : Class Work Greeter Write Function Takes Person S Name Prints Greeting Greeting Must Least Q34314107 . . . .

<p dir="ltr"><img src="https://media.cheggcdn.com/media%2F7df%2F7df821d3-10ea-4572-a6ce-931f3e882b21%2Fimage.png" alt="Class work . Greeter Write a function that takes in a persons name, and prints out a greeting. The greeting must be at least three lines, and