lab01hw-arith - . 2. Copy and paste the code into this new...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Homework Program: C++ Arithmetic Key Concepts: double variables, basic C++ arithmetic In this program, you'll practice using C++ arithmetic operators. 1. Create a new project. 2. Declare two variables to hold numbers with decimals. 3. Prompt the user to enter each of these numbers. You'll need two prompts. 4. Display the sum, difference, product, and quotient of these numbers, each with a good label. See the sample interaction below. Make sure the user can read what's going on on the screen. Sample Interaction Enter a number: 7 Enter another number: 5 7 + 5 = 12 7 - 5 = 2 7 * 5 = 35 7 / 5 = 1.4 Completing Your Assignment Compile and run your program. When your program runs successfully, 1. Open a copy of the provided lab report template
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: . 2. Copy and paste the code into this new file. 3. Run your program three times to test the program. Use different kinds of inputs. Copy the output from these sample runs into the Sample Runs section of the lab report template. 4. Delete Output Files section. No Discussion necessary; however, this would be a good place to record notes for yourself on errors you encountered and how you resolved them. Print a copy of this homework and keep it in your notebook. (Ideally, you'll have a section of your notebook where you're storing all of your labs and other programs. You can use this as you go for reference and you could use it in the end as a portfolio showing what you learned in the course.)...
View Full Document

Ask a homework question - tutors are online