Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In this exercise, you will generate 3 random numbers and find the lowest number - Remove all code added between the II Your lab exercise

image text in transcribed
image text in transcribed
In this exercise, you will generate 3 random numbers and find the lowest number - Remove all code added between the II Your lab exercise ... comment lines - Copy/paste the following between the comment lines int Num1,Num2,Num3,Low; srand(time(0)); II Generate a random numbes from 0 through 9 . Assign to Num1 aaa II Generate a random numbes from -2 through 11. Assign to Num2 bb II Generate a random numbes from 3 through 8 . Assign to Num3 cc II Display the numbers as shown in the example ddd II Using IF-ELSE, compare Num1 to Num2. Assign lowest number to Low eee II Using IF, compare Num3 to Low. Save lowest number to Low fff II Diplay the lowest number as shown in the example ggg - You may find these slides in Random Numbers.pptx helpful Range of random numbers - You may find these slides in Simple IF.pptx helpful IF statement example Integer Comparison Examples IF IF-ELSE statement example Integer Comparison Examples IF-ELSE - Click on Run. The program should compile successfully - RUN UNTIL YOU HAVE 3 DIFFERENT RSULTS WHERE THE LOWEST RANDOM NUMBER IS THE 1ST, 2ND, AND 3RD NUMBER OR YOU WILL LOSE POINTS - WARNING: FOR EACH RUN, ALL 3 NUMBERS MUST BE DIFFERENT OR YOU WILL LOSE POINTS - Although the random numbers will be different, the 3 Result panes should show like below - Take a screenshot of each My name is John Doe The date is 10-29-2022 10:14 Num1, Num2, Num 3 are 1113 The lowest number is 1 My name is John Doe The date is 10-29-2022 10:13 Num1, Num2, Num 3 are 226 The lowest number is 2 My name is John Doe The date is 10-29-2022 10:11 Num1, Num2, Num3 are 8105

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_2

Step: 3

blur-text-image_3

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

Structured Search For Big Data From Keywords To Key-objects

Authors: Mikhail Gilula

1st Edition

012804652X, 9780128046524

More Books

Students also viewed these Databases questions

Question

Describe some variables used to measure the value added of HRM

Answered: 1 week ago