SlideShare a Scribd company logo
1 of 2
Download to read offline
Design an C++ algorithm and create a program that will total, grade, and output an unknown
number of test scores for students in a class:
1. Prompt the user as follows:
--- How do you want to process the records? (make a selection) ---
1. Prompt "How many records would you like to input?"
2. Keep entering records until you enter an "q" to exit
3. Prompt "Do you want to input another record (y/n)? "
2. Once the user responds how they want to process records, prompt the user to:
Enter Name:
Enter Midt--m Score:
Enter Final Ex-m Score:
3. Sum the test scores for each student
4. Return the letter grade for each student.
The grade is based on a total of 200 points (90% - A, 80% - B, 70% - C, 60% - D, less than 60% -
F).
5. Output the record
6. Output the total number of students
Requirements:
You must use an if and switch statements for the menu
For the first case in the switch use a while statement
For the second case in the switch use a for statement
For the third case in the switch use a do/while statement
Your output shall match exactly the sample output
Sample Output
--- How do you want to process the records? (make a selection) ---
1. Prompt "How many records would you like to input?"
2. Keep entering records until you enter an "q" to exit
3. Prompt "Do you want to input another record (y/n)? "
1
How many records would you like to input? 3
Enter Name: Azalia Holloway
Enter Midt--m Score: 85
Enter Final Ex-m Score: 93
Enter Name: Reed Moss
Enter Midt--m Score: 80
Enter Final Ex-m Score: 84
Enter Name: Geraldine P. Fleming
Enter Midt--m Score: 93
Enter Final Ex-m Score: 92
Total number of students: 3
Name Mid Final Total Grade
Azalia Holloway . . . . . .
. 85
93 178 B

More Related Content

Similar to Design an C++ algorithm and create a program that will total.pdf

Md university cmis 102 week 4 hands on lab new
Md university cmis 102 week 4 hands on lab newMd university cmis 102 week 4 hands on lab new
Md university cmis 102 week 4 hands on lab newLast7693
 
Md university cmis 102 week 4 hands on lab new
Md university cmis 102 week 4 hands on lab newMd university cmis 102 week 4 hands on lab new
Md university cmis 102 week 4 hands on lab newscottbrownnn
 
Software testing lab manual
Software testing lab manualSoftware testing lab manual
Software testing lab manualTanzeem Syed
 
Important C program of Balagurusamy Book
Important C program of Balagurusamy BookImportant C program of Balagurusamy Book
Important C program of Balagurusamy BookAbir Hossain
 
C programming assignment presentation file
C programming assignment presentation fileC programming assignment presentation file
C programming assignment presentation filesantoshkumarhpu
 
Devry cis 170 c i lab 3 of 7 looping
Devry cis 170 c i lab 3 of 7 loopingDevry cis 170 c i lab 3 of 7 looping
Devry cis 170 c i lab 3 of 7 loopingash52393
 
Devry cis 170 c i lab 3 of 7 looping
Devry cis 170 c i lab 3 of 7 loopingDevry cis 170 c i lab 3 of 7 looping
Devry cis 170 c i lab 3 of 7 loopingshyaminfo04
 
Cs141 mid termexam2_fall2017_v1.1
Cs141 mid termexam2_fall2017_v1.1Cs141 mid termexam2_fall2017_v1.1
Cs141 mid termexam2_fall2017_v1.1Fahadaio
 
Design Test Case Technique (Equivalence partitioning And Boundary value analy...
Design Test Case Technique (Equivalence partitioning And Boundary value analy...Design Test Case Technique (Equivalence partitioning And Boundary value analy...
Design Test Case Technique (Equivalence partitioning And Boundary value analy...Ryan Tran
 
C - Programming Assignment 1 and 2
C - Programming Assignment 1 and 2C - Programming Assignment 1 and 2
C - Programming Assignment 1 and 2Animesh Chaturvedi
 

Similar to Design an C++ algorithm and create a program that will total.pdf (15)

Md university cmis 102 week 4 hands on lab new
Md university cmis 102 week 4 hands on lab newMd university cmis 102 week 4 hands on lab new
Md university cmis 102 week 4 hands on lab new
 
Md university cmis 102 week 4 hands on lab new
Md university cmis 102 week 4 hands on lab newMd university cmis 102 week 4 hands on lab new
Md university cmis 102 week 4 hands on lab new
 
Software testing lab manual
Software testing lab manualSoftware testing lab manual
Software testing lab manual
 
online test system
online test systemonline test system
online test system
 
Important C program of Balagurusamy Book
Important C program of Balagurusamy BookImportant C program of Balagurusamy Book
Important C program of Balagurusamy Book
 
Java Practice Set
Java Practice SetJava Practice Set
Java Practice Set
 
C programming assignment presentation file
C programming assignment presentation fileC programming assignment presentation file
C programming assignment presentation file
 
Dbms record
Dbms recordDbms record
Dbms record
 
09. Methods
09. Methods09. Methods
09. Methods
 
Devry cis 170 c i lab 3 of 7 looping
Devry cis 170 c i lab 3 of 7 loopingDevry cis 170 c i lab 3 of 7 looping
Devry cis 170 c i lab 3 of 7 looping
 
Devry cis 170 c i lab 3 of 7 looping
Devry cis 170 c i lab 3 of 7 loopingDevry cis 170 c i lab 3 of 7 looping
Devry cis 170 c i lab 3 of 7 looping
 
Cs141 mid termexam2_fall2017_v1.1
Cs141 mid termexam2_fall2017_v1.1Cs141 mid termexam2_fall2017_v1.1
Cs141 mid termexam2_fall2017_v1.1
 
Design Test Case Technique (Equivalence partitioning And Boundary value analy...
Design Test Case Technique (Equivalence partitioning And Boundary value analy...Design Test Case Technique (Equivalence partitioning And Boundary value analy...
Design Test Case Technique (Equivalence partitioning And Boundary value analy...
 
C - Programming Assignment 1 and 2
C - Programming Assignment 1 and 2C - Programming Assignment 1 and 2
C - Programming Assignment 1 and 2
 
Touchtyping Skills Worksheet A (v1)
Touchtyping Skills Worksheet A (v1)Touchtyping Skills Worksheet A (v1)
Touchtyping Skills Worksheet A (v1)
 

More from adcrates2010

Determine si las afirmaciones pertenecen a una poblacin o a.pdf
Determine si las afirmaciones pertenecen a una poblacin o a.pdfDetermine si las afirmaciones pertenecen a una poblacin o a.pdf
Determine si las afirmaciones pertenecen a una poblacin o a.pdfadcrates2010
 
Determine Gales income tax each year from through assumin.pdf
Determine Gales income tax each year from through  assumin.pdfDetermine Gales income tax each year from through  assumin.pdf
Determine Gales income tax each year from through assumin.pdfadcrates2010
 
Depo Ynetim Sistemi depo ynetim sistemi kontrol etmek ii.pdf
Depo Ynetim Sistemi depo ynetim sistemi kontrol etmek ii.pdfDepo Ynetim Sistemi depo ynetim sistemi kontrol etmek ii.pdf
Depo Ynetim Sistemi depo ynetim sistemi kontrol etmek ii.pdfadcrates2010
 
Despus de leer el artculo responda las preguntas que sigu.pdf
Despus de leer el artculo responda las preguntas que sigu.pdfDespus de leer el artculo responda las preguntas que sigu.pdf
Despus de leer el artculo responda las preguntas que sigu.pdfadcrates2010
 
Description of the project Purpose To implement a simple au.pdf
Description of the project Purpose To implement a simple au.pdfDescription of the project Purpose To implement a simple au.pdf
Description of the project Purpose To implement a simple au.pdfadcrates2010
 
Design Patterns Java An Internet Service Provider ISP no.pdf
Design Patterns Java  An Internet Service Provider ISP no.pdfDesign Patterns Java  An Internet Service Provider ISP no.pdf
Design Patterns Java An Internet Service Provider ISP no.pdfadcrates2010
 
Describe what you think the company is doing right in regard.pdf
Describe what you think the company is doing right in regard.pdfDescribe what you think the company is doing right in regard.pdf
Describe what you think the company is doing right in regard.pdfadcrates2010
 
Describe what is meant by a graded river At steady state i.pdf
Describe what is meant by a graded river At steady state i.pdfDescribe what is meant by a graded river At steady state i.pdf
Describe what is meant by a graded river At steady state i.pdfadcrates2010
 
Describe the properties of a neutron star Density Neutro.pdf
Describe the properties of a neutron star  Density Neutro.pdfDescribe the properties of a neutron star  Density Neutro.pdf
Describe the properties of a neutron star Density Neutro.pdfadcrates2010
 
Design a project document for a Ddos attack detection projec.pdf
Design a project document for a Ddos attack detection projec.pdfDesign a project document for a Ddos attack detection projec.pdf
Design a project document for a Ddos attack detection projec.pdfadcrates2010
 
Describe what a balance sheet tells about a business in your.pdf
Describe what a balance sheet tells about a business in your.pdfDescribe what a balance sheet tells about a business in your.pdf
Describe what a balance sheet tells about a business in your.pdfadcrates2010
 
Design a Data Base many to many each house can have many .pdf
Design a Data Base many to many each house can have many .pdfDesign a Data Base many to many each house can have many .pdf
Design a Data Base many to many each house can have many .pdfadcrates2010
 
Desea revisar las dependencias de tareas en su programa ante.pdf
Desea revisar las dependencias de tareas en su programa ante.pdfDesea revisar las dependencias de tareas en su programa ante.pdf
Desea revisar las dependencias de tareas en su programa ante.pdfadcrates2010
 
Desde una perspectiva muy bsica la respiracincombustin .pdf
Desde una perspectiva muy bsica la respiracincombustin .pdfDesde una perspectiva muy bsica la respiracincombustin .pdf
Desde una perspectiva muy bsica la respiracincombustin .pdfadcrates2010
 
Describe how Nanoporebased nucleic acid sequencing takes ad.pdf
Describe how Nanoporebased nucleic acid sequencing takes ad.pdfDescribe how Nanoporebased nucleic acid sequencing takes ad.pdf
Describe how Nanoporebased nucleic acid sequencing takes ad.pdfadcrates2010
 
Description Find a cybersecurity incident that has recently .pdf
Description Find a cybersecurity incident that has recently .pdfDescription Find a cybersecurity incident that has recently .pdf
Description Find a cybersecurity incident that has recently .pdfadcrates2010
 
Describe a time when you were able to achieve something that.pdf
Describe a time when you were able to achieve something that.pdfDescribe a time when you were able to achieve something that.pdf
Describe a time when you were able to achieve something that.pdfadcrates2010
 
Describe a leader with whom you are familiar You can choose.pdf
Describe a leader with whom you are familiar You can choose.pdfDescribe a leader with whom you are familiar You can choose.pdf
Describe a leader with whom you are familiar You can choose.pdfadcrates2010
 
Description 1 Imagine a young person recently graduated fr.pdf
Description 1 Imagine a young person recently graduated fr.pdfDescription 1 Imagine a young person recently graduated fr.pdf
Description 1 Imagine a young person recently graduated fr.pdfadcrates2010
 
Describe the two escalator model that economists Case and .pdf
Describe the two escalator model that economists Case and .pdfDescribe the two escalator model that economists Case and .pdf
Describe the two escalator model that economists Case and .pdfadcrates2010
 

More from adcrates2010 (20)

Determine si las afirmaciones pertenecen a una poblacin o a.pdf
Determine si las afirmaciones pertenecen a una poblacin o a.pdfDetermine si las afirmaciones pertenecen a una poblacin o a.pdf
Determine si las afirmaciones pertenecen a una poblacin o a.pdf
 
Determine Gales income tax each year from through assumin.pdf
Determine Gales income tax each year from through  assumin.pdfDetermine Gales income tax each year from through  assumin.pdf
Determine Gales income tax each year from through assumin.pdf
 
Depo Ynetim Sistemi depo ynetim sistemi kontrol etmek ii.pdf
Depo Ynetim Sistemi depo ynetim sistemi kontrol etmek ii.pdfDepo Ynetim Sistemi depo ynetim sistemi kontrol etmek ii.pdf
Depo Ynetim Sistemi depo ynetim sistemi kontrol etmek ii.pdf
 
Despus de leer el artculo responda las preguntas que sigu.pdf
Despus de leer el artculo responda las preguntas que sigu.pdfDespus de leer el artculo responda las preguntas que sigu.pdf
Despus de leer el artculo responda las preguntas que sigu.pdf
 
Description of the project Purpose To implement a simple au.pdf
Description of the project Purpose To implement a simple au.pdfDescription of the project Purpose To implement a simple au.pdf
Description of the project Purpose To implement a simple au.pdf
 
Design Patterns Java An Internet Service Provider ISP no.pdf
Design Patterns Java  An Internet Service Provider ISP no.pdfDesign Patterns Java  An Internet Service Provider ISP no.pdf
Design Patterns Java An Internet Service Provider ISP no.pdf
 
Describe what you think the company is doing right in regard.pdf
Describe what you think the company is doing right in regard.pdfDescribe what you think the company is doing right in regard.pdf
Describe what you think the company is doing right in regard.pdf
 
Describe what is meant by a graded river At steady state i.pdf
Describe what is meant by a graded river At steady state i.pdfDescribe what is meant by a graded river At steady state i.pdf
Describe what is meant by a graded river At steady state i.pdf
 
Describe the properties of a neutron star Density Neutro.pdf
Describe the properties of a neutron star  Density Neutro.pdfDescribe the properties of a neutron star  Density Neutro.pdf
Describe the properties of a neutron star Density Neutro.pdf
 
Design a project document for a Ddos attack detection projec.pdf
Design a project document for a Ddos attack detection projec.pdfDesign a project document for a Ddos attack detection projec.pdf
Design a project document for a Ddos attack detection projec.pdf
 
Describe what a balance sheet tells about a business in your.pdf
Describe what a balance sheet tells about a business in your.pdfDescribe what a balance sheet tells about a business in your.pdf
Describe what a balance sheet tells about a business in your.pdf
 
Design a Data Base many to many each house can have many .pdf
Design a Data Base many to many each house can have many .pdfDesign a Data Base many to many each house can have many .pdf
Design a Data Base many to many each house can have many .pdf
 
Desea revisar las dependencias de tareas en su programa ante.pdf
Desea revisar las dependencias de tareas en su programa ante.pdfDesea revisar las dependencias de tareas en su programa ante.pdf
Desea revisar las dependencias de tareas en su programa ante.pdf
 
Desde una perspectiva muy bsica la respiracincombustin .pdf
Desde una perspectiva muy bsica la respiracincombustin .pdfDesde una perspectiva muy bsica la respiracincombustin .pdf
Desde una perspectiva muy bsica la respiracincombustin .pdf
 
Describe how Nanoporebased nucleic acid sequencing takes ad.pdf
Describe how Nanoporebased nucleic acid sequencing takes ad.pdfDescribe how Nanoporebased nucleic acid sequencing takes ad.pdf
Describe how Nanoporebased nucleic acid sequencing takes ad.pdf
 
Description Find a cybersecurity incident that has recently .pdf
Description Find a cybersecurity incident that has recently .pdfDescription Find a cybersecurity incident that has recently .pdf
Description Find a cybersecurity incident that has recently .pdf
 
Describe a time when you were able to achieve something that.pdf
Describe a time when you were able to achieve something that.pdfDescribe a time when you were able to achieve something that.pdf
Describe a time when you were able to achieve something that.pdf
 
Describe a leader with whom you are familiar You can choose.pdf
Describe a leader with whom you are familiar You can choose.pdfDescribe a leader with whom you are familiar You can choose.pdf
Describe a leader with whom you are familiar You can choose.pdf
 
Description 1 Imagine a young person recently graduated fr.pdf
Description 1 Imagine a young person recently graduated fr.pdfDescription 1 Imagine a young person recently graduated fr.pdf
Description 1 Imagine a young person recently graduated fr.pdf
 
Describe the two escalator model that economists Case and .pdf
Describe the two escalator model that economists Case and .pdfDescribe the two escalator model that economists Case and .pdf
Describe the two escalator model that economists Case and .pdf
 

Recently uploaded

Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationRosabel UA
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Seán Kennedy
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management SystemChristalin Nelson
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxlancelewisportillo
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
Food processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsFood processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsManeerUddin
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)cama23
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 

Recently uploaded (20)

Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translation
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management System
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
Food processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsFood processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture hons
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 

Design an C++ algorithm and create a program that will total.pdf

  • 1. Design an C++ algorithm and create a program that will total, grade, and output an unknown number of test scores for students in a class: 1. Prompt the user as follows: --- How do you want to process the records? (make a selection) --- 1. Prompt "How many records would you like to input?" 2. Keep entering records until you enter an "q" to exit 3. Prompt "Do you want to input another record (y/n)? " 2. Once the user responds how they want to process records, prompt the user to: Enter Name: Enter Midt--m Score: Enter Final Ex-m Score: 3. Sum the test scores for each student 4. Return the letter grade for each student. The grade is based on a total of 200 points (90% - A, 80% - B, 70% - C, 60% - D, less than 60% - F). 5. Output the record 6. Output the total number of students Requirements: You must use an if and switch statements for the menu For the first case in the switch use a while statement For the second case in the switch use a for statement For the third case in the switch use a do/while statement Your output shall match exactly the sample output Sample Output --- How do you want to process the records? (make a selection) --- 1. Prompt "How many records would you like to input?" 2. Keep entering records until you enter an "q" to exit 3. Prompt "Do you want to input another record (y/n)? " 1 How many records would you like to input? 3 Enter Name: Azalia Holloway Enter Midt--m Score: 85 Enter Final Ex-m Score: 93 Enter Name: Reed Moss Enter Midt--m Score: 80 Enter Final Ex-m Score: 84 Enter Name: Geraldine P. Fleming Enter Midt--m Score: 93 Enter Final Ex-m Score: 92 Total number of students: 3 Name Mid Final Total Grade
  • 2. Azalia Holloway . . . . . . . 85 93 178 B