Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In C ++ Description Write a C++ program using the Dev-Cpp IDE that prompts the user for some data, performs some calculations on the data,

In C ++

Description Write a C++ program using the Dev-Cpp IDE that prompts the user for some data, performs some calculations on the data, and prints the results of the calculations. Instructions Create a new source code file called Homework1.cpp This program should read two integers from the user. It should then add, subtract, and multiply the integers, and display each result. Always use the first integer in the first position of the equation, and the second integer in the second position. You do NOT have to handle division by zero. You can assume I will not test your program with bad data. To Submit: 1. Locate the Homework1.cpp file on disk. Right-click and Send To... Compressed Folder. Use the default name for the zip or name it whatever you like. 2. Submit only the zipped file to the dropbox on Canvas. Do not submit any other file except Homework1.cpp, within a zip. General Requirements For complete credit, you must: 1. MEET ALL REQUIREMENTS ACCORDING TO THE INSTRUCTIONS Follow the instructions as written for completing this project, even if you [think you] know a better way to do something. I will deduct points for not following instructions as written. 2. INCLUDE COMMENTS Include comments in your code. There must be a comment at the top of each source code file that includes your name, the program number, and a

description of the program. There must be comments at each important step in your algorithm that describes that step. 3. FOLLOW BEST PRACTICES Follow best practices in C++ programming, including, but not limited to, appropriate use of private/public, appropriate use of classes and/or header files, sets & gets, white space, alignment, meaningful variable names, naming conventions, using directives, etc. Points will be deducted for sloppy code that is hard to read, even if it works, so pay attention to these details. 4. SUBMIT ALL FILES BEFORE THE DUE DATE Submit a .zip of ONLY source code files to the dropbox for this assignment on Canvas before the due date. Do not submit anything except .cpp and/or .h, within a zip. Do not submit .exe files. Do not submit project files from an IDE. Sample Run 1 Note that the user should be able to type at the end of the same line as the prompt, NOT on the next line below. Type in an integer: 10 Type in another integer: 20 The sum of these integers is 30. The difference between these integers is -10. The product of these integers is 200. Sample Run 2 Note that the user should be able to type at the end of the same line as the prompt, NOT on the next line below. Type in an integer: 100 Type in another integer: 20 The sum of these integers is 120. The difference between these integers is 80. The product of these integers is 2000.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

OpenStack Trove

Authors: Amrith Kumar, Douglas Shelley

1st Edition

1484212215, 9781484212219

More Books

Students also viewed these Databases questions