Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is a C++ code please for this code do not accept negative number The output should look like this Write a program that dynamically

This is a C++ code
image text in transcribed
please for this code do not accept negative number
The output should look like this
image text in transcribed
Write a program that dynamically allocates an array large enough to hold a user-defined number of test scores. Once all the scores are entered, the array should be passed to a function that sorts them in ascending order. Another function should be called that calculates the average score. The program should display the sorted list of scores and averages with appropriate headings, Use pointer notation rather than array notation whenever possible. Input Volidation: Do not accept negative numbers for test scores. General Restrictions For All Quizzes, Midterm And Final Exam 1. No global variables 2. No labels or go-to statements 3. No infinite loops, examples include: for(:) while(1) while(true) dol//code/while(1); 4. No break statements to exit loops C:\Users floresta\Downloads\chapter 9x.exe Negative scores are not allowed. Enter another score for this test: Negative scores are not allowed. Enter another score for this test: -19 Negative scores are not allowed. Enter another score for this test: 99 Enter test score 2: 65 Enter test score 3: 86 Enter test score 4: 12 Enter test score 5: 22 The test scores in ascending order, and their average, are: Score 12.00 65.90 10 " *22.44 86.30 99. ti Average Score: 67.80 Preto any key to continue

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_2

Step: 3

blur-text-image_3

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 And Expert Systems Applications 19th International Conference Dexa 2008 Turin Italy September 2008 Proceedings Lncs 5181

Authors: Sourav S. Bhowmick ,Josef Kung ,Roland Wagner

2008th Edition

3540856536, 978-3540856535

More Books

Students also viewed these Databases questions