Question
I have started this assignment already. I just need help with a few methods and with cleaning up my code so ot can operate. Please
I have started this assignment already. I just need help with a few methods and with cleaning up my code so ot can operate. Please if anyone can help I would appreciate it. I was provided a shell for the code which I will include at the bottom of this qiestion. Also My code that I attempted will be at the bottom, after all the images and the shell.
----------------------------------------------------------------
HERE IS A SHELL THAT I WAS PROVIDED
import java.util.Scanner; public class CaculatorShell { // the code for the main method is complete. once you implement all other methdos you can the program public static void main(String[] args) { Scanner kb = new Scanner(System.in); System.out.print("Welcome to my calculator website"); description(); for(int count =1; count
---------------------------------------------------------------
HERE IS THE CODE THAT I ATTEMPTED:
1 import java.util.Scanner; 2 public class CaculatorShell 3 { 4 // the code for the main method is complete. once you implement all other methdos you can the program 5 public static void main(String[] args) 6 { 7 8 9 Scanner kb = new Scanner(System.in); 10 System.out.print("Welcome to my calculator website"); 11 12 description(); 13 for(int count =1; count = zero && (int)op
Grading policies: you will be graded based on 1. How well your program runs 2. Proper variable names, meaningful names 3. Proper indentation 4. Comments, you must provide a block comments for your program, explaining what the program does, also you must provide comments before each method explaining what the method does. 5. Implementing all the methods properly, you cannot add any more methods to your program. 6. Your program must work with any data 7. Test your program with the expressions provided at the bottom HW#1: Problem: Make a simple English calculator that does the following: 1. Takes one string from the keyboard, containing two single digits (0 to 9), a char representing one of the five operations and one The operations are +(addition), subtraction) /(division), *(multiplication), n(exponentiation) 2. The user will enter all the information on one line, you need to use the nextLine() method to read the input. Once you read the input, you need to use the methods form the String class to separate the tokens to two operands one operation as String data type. Awe need to convert the String operands to integer value. You can use the available Integer class in java to convert a string to its equivalent integer value. For example Integer.paresInt("3") will return the integer value 3. 3. Once you have the two operands and the operation, Output the description of the operation in plain English, as well as the numeric result
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started