Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C++ for visual studio 1. Ask the user for their favorite color. Create a variable named COLOR to store they choose blue output Great choice
C++ for visual studio
1. Ask the user for their favorite color. Create a variable named COLOR to store they choose blue output "Great choice they choose red, output "Poor choice they choose green, output "Not a bad choice. :f they choose anything else, say "Sorry, that's not a primary number Use an eise-idelse statement 2. Create a random number between 1 and 100, it is less than 50 output "you chose a number less than 50. It is more than 50, output "you chose a number more than 50." 3. Create a random number between 1 and 6. If it is even output to a file the number and it is even"; if it is odd, output to a file the number and it is odd". 4. Create 2 random numbers between 1 and 6. W when the two numbers are added together their sum is less than 5 or greater than 12, output to the console: "you win" 5. Use the conditional operator for this problem. PAY RATE is 50. Let the user put in their HOURS WORKED. If the hours worked is greater than 10, output to a fle the pay pay rate hours worked otherwise output o 6. Create a random number between 50 and 100. If the number is between 50-70 output "C"; if it is between 70-90 output 'B', otherwise output "A" 7. Ask the user for an 'a' or 'b'. Output to a file their letter B. Ask the user for the length and with of two rectangles. Tell the user the area of the rectangle with the greater width Ask the user for the length and with of two rectangles. Tel the user the wes of the rectangle with the lesser width Sunday, February 23, 2020 11:59 PM Please answer all questions and save as a txt file that you upload to blackboard. 1. Ask the user for their favorite color. Create a variable named COLOR to store it. If they choose blue output "Great choice if they choose red, output "Poor choice"; if they choose green, output "Not a bad choice. If they choose anything else, say "Sorry, that's not a primary number. Use an illelse-it/else statement. 2. Create a random number between 1 and 100. If it is less than 50 output "you chose a number oss than 50. if it is more than 50, output "you chose a number more than 0." 3. Create a random number between 1 and 6. it is even output to a file the number and it is even if it is odd, output to a file the number and is odd". 4. Create 2 random numbers between 1 and 6. If when the two numbers are added together their sum is less than 5 or greater than 12. output to the console: "you win 5. Use the conditional operator for this problem. PAY_RATE IS 50. Let the user put in their HOURS WORKED. If the hours worked is greater than 10, output toate the pay (pay rata" hours_worked) otherwise output. 6. Create a random number between 50 and 100. If the number is between 50-70 output "C":f it is between 70-90 output 'B', otherwise output 'A'. 7. Ask the user for an 'a' or 'b'. Output to a file their letter. B. Ask the user for the length and width of two rectangles. Tell the user the area of the rectangle with the greater width 9. Ask the user for the length and width of two rectangles. Tell the user the area of the rectangle with the lessor width Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started