Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program that generates a random number between 1 and 3 0 . The program should then generate a sum of the sequence from

Write a program that generates a random number between 1 and 30. The program should then generate a sum of the sequence from 1 up to the random number. For example, if randomly generated number was 12, than the program should generate the following sequence.
This program will a sequence of numbers up to: 12
1/12=0.08
2/11=0.18
3/10=0.30
4/9=0.44
5/8=0.62
6/7=0.86
7/6=1.17
8/5=1.60
9/4=2.25
10/3=3.33
11/2=5.50
12/1=12.00

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

Records And Database Management

Authors: Jeffrey R Stewart Ed D, Judith S Greene, Judith A Hickey

4th Edition

0070614741, 9780070614741

More Books

Students also viewed these Databases questions

Question

Define Management or What is Management?

Answered: 1 week ago

Question

What do you understand by MBO?

Answered: 1 week ago

Question

3. Write a policy statement to address these issues.

Answered: 1 week ago

Question

2. Why has the conflict escalated?

Answered: 1 week ago