Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please answer the following using C++ programing Please code and save in a txt or rtf file. Upload your solutions. Code in either Visual Studio

image text in transcribedPlease answer the following using C++ programing

Please code and save in a txt or rtf file. Upload your solutions. Code in either Visual Studio or Xcode and save to Notepad (or the like, but not Word). 1. Create a random number between 1 and 100 . If it is less than or equal to 50 output "you chose a number less than 50. " if it is more than 50 , output "you chose a number more than 50." 2. Create a random number between 1 and 6 . If it is even, output to the console "it is even" if it is even; otherwise, output "it is odd". 3. 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 or equal to12, output to the console: "you win". If it is not, output "You lose" 4. Create a random number between 50 and 100. If the number is between 50-70 output "it's between 50 and 70". 5. Ask the user for an ' a ' or ' b '. If they say a, then you output b. If they say b, then you output a. 6. Ask the user for the length and width of two rectangles. Tell the user the area of the rectangle with the greater area

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Machine Performance Modeling Methodologies And Evaluation Strategies Lncs 257

Authors: Francesca Cesarini ,Silvio Salza

1st Edition

3540179429, 978-3540179429

More Books

Students also viewed these Databases questions

Question

Are cultures comparable?

Answered: 1 week ago

Question

Are there any questions that you want to ask?

Answered: 1 week ago