Question: For code writing, you will create complete programs. You may assume the user will input the correct type, but not necessarily the correct range of

For code writing, you will create complete programs. You may assume the user will input the correct type, but not necessarily the correct range of values. 1. [24pts] Write a complete main.cpp to do the following: [2pts] Obtain a integer from the user [3pts] If the value is less than or equal to zero simply print "Invalid" then the program ends [12pts] If it is positive, print the words "woo hoo" where the amount of o's is determined by the user. For example if the user input 5, then you would print "wooooo hooooo" o Make sure that the 'w' and 'h' only appear at the beginning of the words! [2pts] Sensible variable names [2pts] Sensible variable types [3pts] Complete main
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
