EBK C   PROGRAMMING:
EBK C PROGRAMMING:
8th Edition
ISBN: 9780357156025
Author: Malik
Publisher: Cengage Learning
bartleby

Concept explainers

Question
Book Icon
Chapter 16, Problem 20PE
Program Plan Intro

Program plan:

  1. The two-dimensional array names of type char is used to hold 10 names.
  2. The array score1 of type int is used to hold scores of first test.
  3. The array score2 of type int is used to hold scores of second test.
  4. The array score3 of type int is used to hold scores of third test.
  5. The array score4 of type int is used to hold scores of fourth test.
  6. The array score5 of type int is used to hold scores of fifth test.
  7. The array avg of type float is used to hold average of all the 5 scores of 10 students.
  8. The array grade of type char is used to hold the grades of 10 students.
  9. A for loop is used to calculate sum of all the scores of 10 students.
  10. Another for loop is used to calculate average and corresponding grade of 10 students.
  11. Another for loop is used to display the name and grade of 10 students.

Program description:

The main purpose of the program is to calculate the grade of 10 students and display them in ascending order of their names.

Blurred answer
Students have asked these similar questions
Student Registration System is an approach that enables colleges and universities to better supervise a growing number of enrollments. Create a menu system for registration program in c++ that asking an input based on the choices below. If the input is A then the program will ask for name and program (course) store in two arrays, if B then the program will display all the data stored on the array and the program will be terminated only if the input is E.   Apply also function on the program:                         Menu System – 1st Way of Function Add Student – 4th Way of Function                                       Example:   REGISTRATION SYSTEM: A - Add Student B - View ALL E - Exit                   Choose: A                   Name: John Lloyd                   Program: CpE                   REGISTRATION SYSTEM:                   A - Add Student                   B - View ALL                   E - Exit             Choose: B             Name                  Program…
Student Registration System is an approach that enables colleges and universities to better supervise a growing number of enrollments. Create a menu system for registration program in c++ that asking an input based on the choices below. If the input is A then the program will ask for name and program (course) store in two arrays, if B then the program will display all the data stored on the array and the program will be terminated only if the input is E.   Apply also function on the program: Menu System – 1st Way of Function Add Student – 4th Way of Function Example:   REGISTRATION SYSTEM: A - Add Student B - View ALL E - Exit                   Choose: A                   Name: Sebastian                   Program: CE                   REGISTRATION SYSTEM:                   A - Add Student                   B - View ALL                   E - Exit             Choose: B             Name                  Program              Carlo     -        CE              Sevi    -       CE
Language C++
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning