Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use a do-while loop to print out 2 random numbers ranging from 1 to 10. Prompt the user whether they want more random numbers use

Use a do-while loop to print out 2 random numbers ranging from 1 to 10. Prompt the user whether they want more random numbers use String.equals()method to check Yes/No

Here is the message:

First random number is 5 Second random number is 8

Do you want extra random numbers? (Y/N)

First random number is 6 Second random number is 7

image text in transcribed

s. Pay attention to commas. 1. Print the following message with a for loop or Here is the message: 0,0,0,1,2,2,2 2Use a do-while loop to print out 2 random numbers ranging from 1 to 10. / Prompt the user whether they want more random numbers Use string.equals Omethod to check Yes/No String checky" hile check. equas( Here is the message: First Radom number is 5 Second Random number is 8 Do you want extra random numbers? (Y/N) First Radom number is 6 second Random number is 7 3. use a while loop to print 5 even random numbers ranging from 1 to 100 Here is the message: 6,24,12,56,96

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

Logics For Databases And Information Systems

Authors: Jan Chomicki ,Gunter Saake

1st Edition

1461375827, 978-1461375821

More Books

Students also viewed these Databases questions