Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A text contains a set of natural numbers from 1 to 69. Five numbers are randomly selected. The numbers are in Ranum.txt file. They are

A text contains a set of natural numbers from 1 to 69. Five numbers are randomly selected. The numbers are in Ranum.txt file. They are set of 50 natural numbers. Study these numbers carefully. Ensure you understand the basis of difference between the numbers.

You are required to write a c++ program to open and read the numbers in the file. (10marks)

Your program should display the next set of 10 likely natural numbers in a new text file called Ranum1.txt based on the given 50 set of numbers and in the same format. It should start with a message: The next set of 10 likely numbers are: (70marks)

Display of correct numbers (40marks)

Comments on your codes (30marks)

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

Recommended Textbook for

New Trends In Databases And Information Systems Adbis 2019 Short Papers Workshops Bbigap Qauca Sembdm Simpda M2p Madeisd And Doctoral Consortium Bled Slovenia September 8 11 2019 Proceedings

Authors: Tatjana Welzer ,Johann Eder ,Vili Podgorelec ,Robert Wrembel ,Mirjana Ivanovic ,Johann Gamper ,Mikolaj Morzy ,Theodoros Tzouramanis ,Jerome Darmont

1st Edition

3030302776, 978-3030302771

More Books

Students also viewed these Databases questions