Hello, I am trying to learn java and c++, I have watched a lot of videos how to start off. Here is what I need to know how to create. Write a program that simulates a simple calculator. The calculator has the ability to have two real numbers input and then: multiply the two numbers divide the first number by the second number (be sure to check for division by 0 and provide an error message if this occurs) add the two numbers together subtract the second number from the first number find the modulus of the first number by the second number. Create a method for each of the five tasks as well as the numeric entry. The main method should call the method to enter the numbers and then display a menu that lets the user decide which calculator operation they wish to execute. The main method menu should have the five calculator operations and an option to exit the program. Please if someone can give me a start that would be nice. Thanks a lot
This is the Javascript forum. Java and C++ are strongly-typed, compiled languages that usually run on the server. They have almost nothing in common with the loosely-typed interpreted client-side programming language called Javascript. It's pretty unclear if you really meant Java or Javascript, esp when you say you're also learning C++. I suppose most of the time we can assume people mean "Javascript" but your case is particularly confusing. On top of that, this looks a lot like HomeWork. If you're learning these languages, then you must have started some code and tried some things out. Post that code, even if it didn't work. Someone would be able to see where you're going wrong (if it's Javascript) and show you how to get where you want to go.