logo Hurry, Grab up to 30% discount on the entire course
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Amit KumarComputer science
(5/5)

708 Answers

Hire Me
expert
Joel HawkinsResume writing
(5/5)

866 Answers

Hire Me
expert
Sandhya SharmaBusiness
(5/5)

972 Answers

Hire Me
expert
Wil AndersonEngineering
(5/5)

696 Answers

Hire Me
C++ Programming

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.

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

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)

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme