write a c++ program to do this: 1-read 2 values x and y from user input and x must be smaller than y 2-generate a random number between x and y 3-print that generated number 4-print the square root of that number

Systems Architecture
7th Edition
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Stephen D. Burd
Chapter10: Application Development
Section: Chapter Questions
Problem 5VE
icon
Related questions
Question

write a c++ program to do this:

1-read 2 values x and y from user input and x must be smaller than y

2-generate a random number between x and y

3-print that generated number

4-print the square root of that number

Constraints
5 Input Format
E» Output Format
Sample #1
Input
1
10
Output
4
2
Transcribed Image Text:Constraints 5 Input Format E» Output Format Sample #1 Input 1 10 Output 4 2
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Algebraic Expressions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning