Menu

[Solved] C Program Write Program Used Different Faculty Different Courses May Even Extra Credit Re Q37184434

This is a C++ program:

Write a program can be used by different faculty and fordifferent courses (some may even have extra credit). It should readthe scores of each student in each course and do some statistics onthem. It also does all the necessary validations.

Use arrays, not vectors.

You can redo it with vectors if you like in the futureto see what the differences are.a

  1. The program should start by asking what is the max score forthat specific class (the score can be any number strictly more than0 (double).
  2. Then it call a function to load the array of scores making surethat each score is less than the given limit.
    • That function will stop loading elements to the array eitherwhen the array is full or when negative input is given.
    • That function should return to main the logical size of thearray (how many scores where actually loaded).
    • The main will print that number to ensure it is calculatedcorrectly.
  3. Then your program should call a function that prints the valuesstored in the array.
    • That function should be able to print theelements in a different number per row and to a file or themonitor.
    • In your program pass 5 as the value for the perLine elements toprint.
    • Do not have the 5 hardwired in the function body! Use theargument value given!
  4. Then your program should call a function that prints a bunch ofstatistics. That function should also be able to print toboth cout or to an output file.
  5. The statistics you will need to print are:
    • the best score
    • the worst score
    • the average score
  6. Obviously the main will not call the print statistics if thereare no data stored in the array. Instead it will print aninformative message. See sample exe.
  7. The print a line of stars to indicate a new iteration and loopagain (ask for the max possible grade of that course, load thearray of scores for that section, etc

EXAMPLE:

Mini Capstone#1 Partially full arrays of scores-by H. DELTA This program loads an array of doubles with students score using

Select Mini Capstone#1 Partially full arrays of scores-by H. DELTA Invalid Student Score. Please enter a number less than 9.

THANK YOU SO MUCH!

Mini Capstone#1 Partially full arrays of scores-by H. DELTA This program loads an array of doubles with students’ score using a negative value as the loop’s sentinel calculate basic statistics setting physical size to 3 and default per line 5 by H. Delta what is the maximun number of columns that can FIT in your screen?a Invalid input. Please enter a number. Try again: -2 NUMBER OF COLUINS must be a POSITIVE number. Try again: 1e.23 NUMBER OF COLUMNS must be a WHOLE number. Try again: 1e What is the maximum possible student score for this class? 9 Enter the students’ scores. Enter a negative value to stop. Physical size of the array is 3 Enter score for student #1: 12 Invalid Student Score. Please enter a number less than 9. Try again: 2.3 Enter score for student #2: 6.3 Enter score for student #3 : 5.6 Array FULL! Cannot accept any more input. Done loading scores. Logical size is: 3 Select Mini Capstone#1 Partially full arrays of scores-by H. DELTA Invalid Student Score. Please enter a number less than 9. Try again: 2.3 Enter score for student #2: 6.3 Enter score for student #3: 5.6 Array FULL! Cannot accept any more input. Done loading scores Logical size is: 3 I am about to print the scores and statistics Here are the scores that you have stored in your array How many elements do you want to print per line [1-10]? 11 Note that the maximum value in the array should not exceed 9 ELEMENTS PER LINE must be a LESS than 1e number. Try again: 10.36 ELEMENTS PER LINE must be a WHOLE LESS than 1e number. Try again: 9 2.300 6.300 5.600 Here are the score statistics ***The highest score is: The lowest score is: The average score is: 6.30 2.30 4.73 What is the maximum possible student score for this class? Show transcribed image text Mini Capstone#1 Partially full arrays of scores-by H. DELTA This program loads an array of doubles with students’ score using a negative value as the loop’s sentinel calculate basic statistics setting physical size to 3 and default per line 5 by H. Delta what is the maximun number of columns that can FIT in your screen?a Invalid input. Please enter a number. Try again: -2 NUMBER OF COLUINS must be a POSITIVE number. Try again: 1e.23 NUMBER OF COLUMNS must be a WHOLE number. Try again: 1e What is the maximum possible student score for this class? 9 Enter the students’ scores. Enter a negative value to stop. Physical size of the array is 3 Enter score for student #1: 12 Invalid Student Score. Please enter a number less than 9. Try again: 2.3 Enter score for student #2: 6.3 Enter score for student #3 : 5.6 Array FULL! Cannot accept any more input. Done loading scores. Logical size is: 3
Select Mini Capstone#1 Partially full arrays of scores-by H. DELTA Invalid Student Score. Please enter a number less than 9. Try again: 2.3 Enter score for student #2: 6.3 Enter score for student #3: 5.6 Array FULL! Cannot accept any more input. Done loading scores Logical size is: 3 I am about to print the scores and statistics Here are the scores that you have stored in your array How many elements do you want to print per line [1-10]? 11 Note that the maximum value in the array should not exceed 9 ELEMENTS PER LINE must be a LESS than 1e number. Try again: 10.36 ELEMENTS PER LINE must be a WHOLE LESS than 1e number. Try again: 9 2.300 6.300 5.600 Here are the score statistics ***The highest score is: The lowest score is: The average score is: 6.30 2.30 4.73 What is the maximum possible student score for this class?

Expert Answer


Answer to This is a C++ program: Write a program can be used by different faculty and for different courses (some may even have ex… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *