Write a program in c++ programming language that ask the user to input a positive number,n case the user inputs anything except for a positive number.C++ Programming

Write a program in c++ programming language that will do the following:

1. Ask the user to input a positive number 

(2 points)

2. In case the user inputs anything except for a positive number, the program should print the message "Invalid input"

(2 points)

3. In one column print consecutive numbers from 1 to the number entered by the user (2 points). However, instead of every 3rd number program should print "aaa" (2 points). Instead of every 5th number the program should  print "bbb" (2 points). Instead of every 15th number it should print "ccc" (2 points).

4. Sum of all the printed NUMBERS should be calculated and displayed below 

(2 points)

5. Average value of all the printed NUMBERS should be calculated and displayed below 

(2 points)

6. Total number of "aaa" elements should be displayed below 

(2 points)

7. Total number of "bbb" elements should be displayed below 

(2 points)

7. Total number of "ccc" elements should be displayed below 

(2 points)

Attachments:

Instructions Files

C++ Programming Experts

expert
Dinh Hong P.
C++ Programming

20 Answers

expert
Eric Bell
C++ Programming

88 Answers

View More Experts
Disclaimer

The ready solutions purchased from Library are already used solutions. Please do not submit them directly as it may lead to plagiarism. Once paid, the solution file download link will be sent to your provided email. Please either use them for learning purpose or re-write them in your own language. In case if you haven't get the email, do let us know via chat support.

Get Free Quote!

261 Experts Online