Two small labs using (1. rand() srand() functions) 2. (2D Array)

User Generated

znavcheon

Computer Science

Description

Hi, i need two labs coding (two .cpp files NOT .txt)

1.) Using rand() and srand() functions
lab8.1 Data Analysis
there is base code given. in addition to that code. i need 20 randomly created numbers put in 10 intervals.

For example rand[] = (23, 26, 78, 79, 10,)
after assigning numbers into 10 intervals
0-9: 0
10-19: 1
20-29: 2
.....
70-79: 2

Lab8.2
Designing code containing following mechanism;
a) 3 x 4 two dimensional array
b) Initialize with 0 value.
c) Update with random values
d) Show all random values assigned to each item
e) Add user input to retrieve a student index and an exam index.
f) Add a loop for another run.

I have included .pdf file(page 3, 11, 12 is for labs) with more detailed info. Also base code is included in folder. need those two .cpp files before 8PM monday.

User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Explanation & Answer

providing the...


Anonymous
I was stuck on this subject and a friend recommended Studypool. I'm so glad I checked it out!

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4

Similar Content

Related Tags