Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

c++ please read the tasks and get a program for it ( show a picture of work with whatever code app or dev-c++ software you

c++ please read the tasks and get a program for it ( show a picture of work with whatever code app or dev-c++ software you use please ) thank you
image text in transcribed
image text in transcribed
1 1. Keypoints 1) get familiar with array declaration, initialization 2) be familiar with the bubble sorting algorithm 3) be able to define functions that accept arrays as parameters 2. Tools Operating system: Windows 7 Programming language: C++ Textbook: Starting out with C++ early Objects 3. Tasks( After finishing the following tasks, hand in lab reports, all source code and snapshots of the output of the programs in an archived file) 3.1 Task One Write a modular program that analyzes the exam score of Program Design A. (1) In addition to the main function, the program should design a ReadData(.....) function to get the exam scores of all 20 students from a file called "scores.txt". (2) After having got these data, the program then displays all these data on screen (3) Design the function void Score Analysis(.....) that finds out the average score, the max, and the minimum scores. By calling this function, the main should these results on the screen Program Execution would be like the following: =======Exam Analysis of PD 2020==== 73 85 46 76 60 82 65 66 60 85 87 83 49 90 95 57 65 61 96 90 Average score : 73.55 Maximum score : 96 Mininum score: 46 Task 3.2. Define a function called show_array that displays the contents in the array on the terminal window. You then use this function to display the contents of the array you created in the previous task by passing it to the function. Task 3.3 Write a program that applies the bubble sorting algorithm to sort the previously obtained array in order. The following figure illustrates the idea of bubble sorting, and a pseudo algorithm for implementing bubble sorting is also given. Illustration of Bubble Sorting Algorithm n7 2 0 1 2 S 8724 J=1 = 1 i=1 GB28724 1-2 12 12 n-6 3 4 6 31562 478 1366 242 113 5 6 24 1 25 62420 35264 78 1-3 123 53 067243 35 67240 3166724 3156724 56 30502743 1-3 124 5 316724 14 om 14 3 1 2 6 j=5 1 5 15 16 53167264 7 nes 1=1 -1 2 0352 4628 1362462 13 5246 1325 4678 13124667 1024667 123456 1-2 123OGG1 12345678 = 2 13 =3 1 = 4 n-2 3 4 5 6 7 0 1 2 23 1 = 1

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

Database Marketing The Ultimate Marketing Tool

Authors: Edward L. Nash

1st Edition

0070460639, 978-0070460638

More Books

Students also viewed these Databases questions

Question

What is Accounting?

Answered: 1 week ago

Question

Define organisation chart

Answered: 1 week ago

Question

What are the advantages of planning ?

Answered: 1 week ago

Question

b. Explain how you initially felt about the communication.

Answered: 1 week ago

Question

3. Identify the methods used within each of the three approaches.

Answered: 1 week ago

Question

a. When did your ancestors come to the United States?

Answered: 1 week ago