SlideShare a Scribd company logo
1 of 1
Download to read offline
5. (Student Major and Status) Write a C + + program that prompts the user to enter two
characters and displays the major and status represented in the characters. The first character
indicates the major and the second is number character 1 , 2 , 3 , 4 , which indicates whether a
student is a freshman, sophomore, junior, or senior. Suppose the following characters are used to
denote the majors: M: Mathematics C: Computer Science I: Information Technology Here are
sample runs: Enter two characters: M1 Mathematics Freshman Enter two characters: C3
Computer Science Junior Enter two characters: T3 Invalid major code Enter two characters: M7
Invalid status code

More Related Content

More from aksbanu

5- (10 points) Factor the following expression to obtain a product-of-.pdf
5- (10 points) Factor the following expression to obtain a product-of-.pdf5- (10 points) Factor the following expression to obtain a product-of-.pdf
5- (10 points) Factor the following expression to obtain a product-of-.pdfaksbanu
 
5- Which of the following statements is not true regarding trends in.pdf
5-   Which of the following statements is not true regarding trends in.pdf5-   Which of the following statements is not true regarding trends in.pdf
5- Which of the following statements is not true regarding trends in.pdfaksbanu
 
5) These images above are showing the same type of cellular tissue- wh.pdf
5) These images above are showing the same type of cellular tissue- wh.pdf5) These images above are showing the same type of cellular tissue- wh.pdf
5) These images above are showing the same type of cellular tissue- wh.pdfaksbanu
 
5) True or false- (4) Fermentation is used by organisms who typically.pdf
5) True or false- (4) Fermentation is used by organisms who typically.pdf5) True or false- (4) Fermentation is used by organisms who typically.pdf
5) True or false- (4) Fermentation is used by organisms who typically.pdfaksbanu
 
5) The another hardware protocol does a fine job of moving data from o.pdf
5) The another hardware protocol does a fine job of moving data from o.pdf5) The another hardware protocol does a fine job of moving data from o.pdf
5) The another hardware protocol does a fine job of moving data from o.pdfaksbanu
 
5) Describe the use of pro forma statements in business combinations-.pdf
5) Describe the use of pro forma statements in business combinations-.pdf5) Describe the use of pro forma statements in business combinations-.pdf
5) Describe the use of pro forma statements in business combinations-.pdfaksbanu
 
5) (4 pts) Assume that D- E- F- G- H- and I are autosomal genes on dif.pdf
5) (4 pts) Assume that D- E- F- G- H- and I are autosomal genes on dif.pdf5) (4 pts) Assume that D- E- F- G- H- and I are autosomal genes on dif.pdf
5) (4 pts) Assume that D- E- F- G- H- and I are autosomal genes on dif.pdfaksbanu
 
47-'My mom has a decreased level of consciousness because the blood cl.pdf
47-'My mom has a decreased level of consciousness because the blood cl.pdf47-'My mom has a decreased level of consciousness because the blood cl.pdf
47-'My mom has a decreased level of consciousness because the blood cl.pdfaksbanu
 
45- On average the renal blood flow declines by between the ages of 40.pdf
45- On average the renal blood flow declines by between the ages of 40.pdf45- On average the renal blood flow declines by between the ages of 40.pdf
45- On average the renal blood flow declines by between the ages of 40.pdfaksbanu
 
5) PersonList is an ArrayList in which Person objects are stored- We w.pdf
5) PersonList is an ArrayList in which Person objects are stored- We w.pdf5) PersonList is an ArrayList in which Person objects are stored- We w.pdf
5) PersonList is an ArrayList in which Person objects are stored- We w.pdfaksbanu
 
42- Based on the following information fill in the cladogram and expla.pdf
42- Based on the following information fill in the cladogram and expla.pdf42- Based on the following information fill in the cladogram and expla.pdf
42- Based on the following information fill in the cladogram and expla.pdfaksbanu
 
40- The genetie code of most ofganisms is composed of which molecule-.pdf
40- The genetie code of most ofganisms is composed of which molecule-.pdf40- The genetie code of most ofganisms is composed of which molecule-.pdf
40- The genetie code of most ofganisms is composed of which molecule-.pdfaksbanu
 
41- As one ages the average length of a mammalian telomere A- Lengthen.pdf
41- As one ages the average length of a mammalian telomere A- Lengthen.pdf41- As one ages the average length of a mammalian telomere A- Lengthen.pdf
41- As one ages the average length of a mammalian telomere A- Lengthen.pdfaksbanu
 
42- (3 points) Assume nitrogen drains from the watershed of the Missis.pdf
42- (3 points) Assume nitrogen drains from the watershed of the Missis.pdf42- (3 points) Assume nitrogen drains from the watershed of the Missis.pdf
42- (3 points) Assume nitrogen drains from the watershed of the Missis.pdfaksbanu
 
403041040S12070403s+udents1ike1ike1ikechoco5+raw60+h.pdf
403041040S12070403s+udents1ike1ike1ikechoco5+raw60+h.pdf403041040S12070403s+udents1ike1ike1ikechoco5+raw60+h.pdf
403041040S12070403s+udents1ike1ike1ikechoco5+raw60+h.pdfaksbanu
 
40- Describe the process by which homologous behaviors are derived and.pdf
40- Describe the process by which homologous behaviors are derived and.pdf40- Describe the process by which homologous behaviors are derived and.pdf
40- Describe the process by which homologous behaviors are derived and.pdfaksbanu
 
4-The theory of Plate Tectonics was met with a lot of resistance when.pdf
4-The theory of Plate Tectonics was met with a lot of resistance when.pdf4-The theory of Plate Tectonics was met with a lot of resistance when.pdf
4-The theory of Plate Tectonics was met with a lot of resistance when.pdfaksbanu
 
5- Don and Lane are a married couple- Don enters a nursing home and ap.pdf
5- Don and Lane are a married couple- Don enters a nursing home and ap.pdf5- Don and Lane are a married couple- Don enters a nursing home and ap.pdf
5- Don and Lane are a married couple- Don enters a nursing home and ap.pdfaksbanu
 
4-4-- $-.pdf
4-4-- $-.pdf4-4-- $-.pdf
4-4-- $-.pdfaksbanu
 
5- Determine whether the media listed below are selective and-or diffe.pdf
5- Determine whether the media listed below are selective and-or diffe.pdf5- Determine whether the media listed below are selective and-or diffe.pdf
5- Determine whether the media listed below are selective and-or diffe.pdfaksbanu
 

More from aksbanu (20)

5- (10 points) Factor the following expression to obtain a product-of-.pdf
5- (10 points) Factor the following expression to obtain a product-of-.pdf5- (10 points) Factor the following expression to obtain a product-of-.pdf
5- (10 points) Factor the following expression to obtain a product-of-.pdf
 
5- Which of the following statements is not true regarding trends in.pdf
5-   Which of the following statements is not true regarding trends in.pdf5-   Which of the following statements is not true regarding trends in.pdf
5- Which of the following statements is not true regarding trends in.pdf
 
5) These images above are showing the same type of cellular tissue- wh.pdf
5) These images above are showing the same type of cellular tissue- wh.pdf5) These images above are showing the same type of cellular tissue- wh.pdf
5) These images above are showing the same type of cellular tissue- wh.pdf
 
5) True or false- (4) Fermentation is used by organisms who typically.pdf
5) True or false- (4) Fermentation is used by organisms who typically.pdf5) True or false- (4) Fermentation is used by organisms who typically.pdf
5) True or false- (4) Fermentation is used by organisms who typically.pdf
 
5) The another hardware protocol does a fine job of moving data from o.pdf
5) The another hardware protocol does a fine job of moving data from o.pdf5) The another hardware protocol does a fine job of moving data from o.pdf
5) The another hardware protocol does a fine job of moving data from o.pdf
 
5) Describe the use of pro forma statements in business combinations-.pdf
5) Describe the use of pro forma statements in business combinations-.pdf5) Describe the use of pro forma statements in business combinations-.pdf
5) Describe the use of pro forma statements in business combinations-.pdf
 
5) (4 pts) Assume that D- E- F- G- H- and I are autosomal genes on dif.pdf
5) (4 pts) Assume that D- E- F- G- H- and I are autosomal genes on dif.pdf5) (4 pts) Assume that D- E- F- G- H- and I are autosomal genes on dif.pdf
5) (4 pts) Assume that D- E- F- G- H- and I are autosomal genes on dif.pdf
 
47-'My mom has a decreased level of consciousness because the blood cl.pdf
47-'My mom has a decreased level of consciousness because the blood cl.pdf47-'My mom has a decreased level of consciousness because the blood cl.pdf
47-'My mom has a decreased level of consciousness because the blood cl.pdf
 
45- On average the renal blood flow declines by between the ages of 40.pdf
45- On average the renal blood flow declines by between the ages of 40.pdf45- On average the renal blood flow declines by between the ages of 40.pdf
45- On average the renal blood flow declines by between the ages of 40.pdf
 
5) PersonList is an ArrayList in which Person objects are stored- We w.pdf
5) PersonList is an ArrayList in which Person objects are stored- We w.pdf5) PersonList is an ArrayList in which Person objects are stored- We w.pdf
5) PersonList is an ArrayList in which Person objects are stored- We w.pdf
 
42- Based on the following information fill in the cladogram and expla.pdf
42- Based on the following information fill in the cladogram and expla.pdf42- Based on the following information fill in the cladogram and expla.pdf
42- Based on the following information fill in the cladogram and expla.pdf
 
40- The genetie code of most ofganisms is composed of which molecule-.pdf
40- The genetie code of most ofganisms is composed of which molecule-.pdf40- The genetie code of most ofganisms is composed of which molecule-.pdf
40- The genetie code of most ofganisms is composed of which molecule-.pdf
 
41- As one ages the average length of a mammalian telomere A- Lengthen.pdf
41- As one ages the average length of a mammalian telomere A- Lengthen.pdf41- As one ages the average length of a mammalian telomere A- Lengthen.pdf
41- As one ages the average length of a mammalian telomere A- Lengthen.pdf
 
42- (3 points) Assume nitrogen drains from the watershed of the Missis.pdf
42- (3 points) Assume nitrogen drains from the watershed of the Missis.pdf42- (3 points) Assume nitrogen drains from the watershed of the Missis.pdf
42- (3 points) Assume nitrogen drains from the watershed of the Missis.pdf
 
403041040S12070403s+udents1ike1ike1ikechoco5+raw60+h.pdf
403041040S12070403s+udents1ike1ike1ikechoco5+raw60+h.pdf403041040S12070403s+udents1ike1ike1ikechoco5+raw60+h.pdf
403041040S12070403s+udents1ike1ike1ikechoco5+raw60+h.pdf
 
40- Describe the process by which homologous behaviors are derived and.pdf
40- Describe the process by which homologous behaviors are derived and.pdf40- Describe the process by which homologous behaviors are derived and.pdf
40- Describe the process by which homologous behaviors are derived and.pdf
 
4-The theory of Plate Tectonics was met with a lot of resistance when.pdf
4-The theory of Plate Tectonics was met with a lot of resistance when.pdf4-The theory of Plate Tectonics was met with a lot of resistance when.pdf
4-The theory of Plate Tectonics was met with a lot of resistance when.pdf
 
5- Don and Lane are a married couple- Don enters a nursing home and ap.pdf
5- Don and Lane are a married couple- Don enters a nursing home and ap.pdf5- Don and Lane are a married couple- Don enters a nursing home and ap.pdf
5- Don and Lane are a married couple- Don enters a nursing home and ap.pdf
 
4-4-- $-.pdf
4-4-- $-.pdf4-4-- $-.pdf
4-4-- $-.pdf
 
5- Determine whether the media listed below are selective and-or diffe.pdf
5- Determine whether the media listed below are selective and-or diffe.pdf5- Determine whether the media listed below are selective and-or diffe.pdf
5- Determine whether the media listed below are selective and-or diffe.pdf
 

Recently uploaded

A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
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
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
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
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
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
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
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
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 

Recently uploaded (20)

A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
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...
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
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
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
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
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 

5- (Student Major and Status) Write a C++ program that prompts the use.pdf

  • 1. 5. (Student Major and Status) Write a C + + program that prompts the user to enter two characters and displays the major and status represented in the characters. The first character indicates the major and the second is number character 1 , 2 , 3 , 4 , which indicates whether a student is a freshman, sophomore, junior, or senior. Suppose the following characters are used to denote the majors: M: Mathematics C: Computer Science I: Information Technology Here are sample runs: Enter two characters: M1 Mathematics Freshman Enter two characters: C3 Computer Science Junior Enter two characters: T3 Invalid major code Enter two characters: M7 Invalid status code