Write your first Miracle algorithm demonstrating your mastery of variable input, output, and conversion. The important part of the program is the algorithm, although you will test it by implementing it in the Miracle environment.
Write a program that asks the user his or her name. It then asks for two numeric values. It returns the sum, difference, product, and quotient of these two variables. The program then thanks the user for playing by name. Here's a sample run (computer output in bold):
Welcome to the calculator! What is your name? Andy Nice to meet you, Andy! Please enter a number 8 Please enter another number 4 8 + 4 = 12 8-4 = 4 8 * 4 = 24 8 / 4 = 2 Thanks for playing, Andy!
The purpose of this assignment is to create an algorithm. A working program is a great way to test that your algorithm is correct, but it's not really the main point of the exercise. A good project will have these characteristics: