Project #45240 - c++

1.

Write a program that generates a random number between 1 and 100 and asks the user toguess what the number is. If the user’s guess is higher than the random number, theprogram should display “Too high. Try again.” If the user’s guess is lower than the randomnumber, the program should display “Too low. Try again.”  The program should use aloop that repeats until the user correctly guesses the random number. Then the programshould display “Congratulations. You figured out my number.” 

2. 

Use the for loop to calculate the average sales among several stores. Ask the user to enter the number of stores before running the loop. After the loop, display the average sales number to the user.

 

Note: I attach the CodeSample.

Subject Computer
Due By (Pacific Time) 10/30/2014 12:00 am
Report DMCA
TutorRating
pallavi

Chat Now!

out of 1971 reviews
More..
amosmm

Chat Now!

out of 766 reviews
More..
PhyzKyd

Chat Now!

out of 1164 reviews
More..
rajdeep77

Chat Now!

out of 721 reviews
More..
sctys

Chat Now!

out of 1600 reviews
More..
sharadgreen

Chat Now!

out of 770 reviews
More..
topnotcher

Chat Now!

out of 766 reviews
More..
XXXIAO

Chat Now!

out of 680 reviews
More..
All Rights Reserved. Copyright by AceMyHW.com - Copyright Policy