Sale!

COSC6000 Homework 01

$30.00 $18.00

Category: You will Instantly receive a download link for .zip solution file upon Payment || To Order Original Work Click Custom Order?

Description

5/5 - (6 votes)

1. Setup IDE (Xcode, Visual Studio, etc.) on your personal computer.
2. Write a C++ program that reads in the price of a pen and the number of it, and then output total price in
dollar, like $3.20
use cin to get numbers and use cout to output result.
use double to store the price of a pen, and use int to store the number of pen.
State your name in a comment line.
3. Write a C++ program that takes five whole numbers as input, and that outputs the average of them.
use cin to get numbers and use cout to output result.
use int to store each number.
The average is rounded off to the first decimal place. (use ‘precision(1)’)
State your name in a comment line.
If you have question, email me.
Upload your code to the Canvas site. If I find some mistake, I will let you know so that you can fix.
4/23/2018 Homework 01
https://tulane.instructure.com/courses/2165899/assignments/13459048 2/2