The Problem Solver

People Use computers every day to solve problems, so now is your chance to write a program that will do exactly that! Present the user with a list of 10 things that they might want an app to do and write a menu to pick which task they want to do and then perform that task.

For Example:

Welcome to the Problem Solver! What is your problem today?

1) Convert C to F
2) Give Me Directions to the Essar Center from Algoma U
3) How many letter ‘a’s are in this sentence?
4) is this number odd or even?
5) …
6) …
7) …
8) …
9) …
10) ...

Enter Your Choice: 1[ENTER]

Enter your temp in C: 30 [ENTER]

30 C is 86 F

For each problem I would like to use an implementation of one of each of the following:

● an if, else..if, else structure
● the switch statement
● an implementation at least 2 different boolean operators (&&, ||, ^)
● Utilizing random numbers
● a printf
● using substrings
● an implementation of the for loop
● an implementation of the while loop
● breaking /continuing in a loop
● Solving a mathematical equation

Solution PreviewSolution Preview

These solutions may offer step-by-step problem-solving explanations or good writing examples that include modern styles of formatting and construction of bibliographies out of text citations and references. Students may use these solutions for personal skill-building and practice. Unethical use is strictly forbidden.

import java.util.Scanner;

public class ProblemSolver {

public static void main(String[] args)
int choice;
boolean cont = true;
Scanner input = new Scanner(;

System.out.println("Welcome to the Problem Solver! What is your problem today?");
System.out.println("1. Count to 100");
System.out.println("2. Convert between meters and feet");
System.out.println("3. Check for the largest of 3 numbers");
System.out.println("4. Get the first name from a full name");
System.out.println("5. How many words in this sentence?");
System.out.println("6. Get your lucky number for the day");
System.out.println("7. Get pi to a 5 digits");
System.out.println("8. Check if a number is 0, negative or positive");
System.out.println("9. Compute powers of 2");
System.out.println("10. Quit the program");
System.out.print("Enter your choice: ");
choice = input.nextInt();

case 1:
for(int i = 0; i < 100; i++)
case 2:
System.out.print("Enter in the number of meters to convert to feet: ");
int meters = input.nextInt();
double feet = meters * 39/12.0;
System.out.printf("%d meters is %.2f feet\n\n", meters, feet);
case 3:...

By purchasing this solution you'll be able to access the following files:

for this solution

or FREE if you
register a new account!

PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

Find A Tutor

View available Java Programming Tutors

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.

Upload a file
Continue without uploading

We couldn't find that subject.
Please select the best match from the list below.

We'll send you an email right away. If it's not in your inbox, check your spam folder.

  • 1
  • 2
  • 3
Live Chats