Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A text file contains a set of 5 natural numbers from 1 to 69 randomly selected. There are set of 5 natural numbers in fifty

A text file contains a set of 5 natural numbers from 1 to 69 randomly selected. There are set of 5 natural numbers in fifty rows. No row contains identical numbers. Study these numbers carefully. Ensure you understand the basis of difference between the numbers.

You are required to write a c++ program to display the next set of ten rows of 5 natural numbers. Each row will contain five natural numbers like in the text file. The beginning of the new ten rows should start with a message: The next set of 10 likely rows are:

NOTE: The numbers in each row must be distinct. Not identical. For example, you cannot have two 5s or three 7s in the same row.

Also, DO NOT repeat any of the same set of numbers in the given 50 rows as your next 10 likely set of numbers.

Ranum.txt file

28 - 36 - 41 - 51 - 58

3 - 9 - 16 - 56 - 60

1 - 3 - 13 - 15 - 44

1 - 20 - 61 - 64 - 69

9 - 35 - 37 - 50 - 63

2 - 24 - 28 - 51 - 58

25 - 36 - 37 - 55 - 60

19 - 20 - 50 - 55 - 62

28 - 30 - 32 - 36 - 58

24 - 26 - 28 - 59 - 63

8 - 13 - 27 - 53 - 54

35 - 37 - 46 - 51 - 61

17 - 28 - 31 - 32 - 39

23 - 32 - 44 - 48 - 50

4 - 6 - 16 - 30 - 56

12 - 14 - 20 - 21 - 34

12 - 14 - 26 - 48 - 51

3 - 6 - 19 - 26 - 44

27 - 35 - 38 - 57 - 66

18 - 22 - 29 - 54 - 57

14 - 41 - 42 - 45 - 69

30 - 49 - 54 - 66 - 69

32 - 37 - 56 - 66 - 69

1 - 3 - 13 - 19 - 69

10 - 49 - 61 - 63 - 65

22 - 23 - 62 - 63 - 66

8 - 12 - 25 - 41 - 64

8 - 10 - 21 - 23 - 25

24 - 45 - 55 - 56 - 57

39 - 48 - 53 - 67 - 68

17 - 18 - 24 - 25 - 31

17 - 24 - 35 - 57 - 63

6 - 20 - 29 - 57 - 59

8 - 14 - 32 - 58 - 67

6 - 21 - 41 - 52 - 62

19 - 28 - 43 - 67 - 69

7 - 15 - 32 - 38 - 66

6 - 7 - 16 - 23 - 26

17 - 19 - 39 - 43 - 68

9 - 15 - 43 - 60 - 64

20 - 24 - 26 - 35 - 49

12 - 30 - 36 - 47 - 62

11 - 21 - 28 - 33 - 45

1 - 16 - 54 - 63 - 69

1 - 28 - 40 - 45 - 48

7 - 19 - 21 - 42 - 69

5 - 32 - 44 - 53 - 60

50 - 51 - 59 - 61 - 63

9 - 40 - 63 - 64 - 66

1 - 2 - 18 - 23 - 61

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

Students also viewed these Databases questions