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

1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...anjaliyadav012327
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 

Recently uploaded (20)

1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 

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