SlideShare a Scribd company logo
Programming Assignment 4: Chapter 5
Write, compile, and test a program in C# called DisplaySales. Mark, Jennifer, and Robin are three
salespeople. Write a program in C# called DisplaySales that asks the user for a salesperson initial
(M, J, R) - Either uppercase or lowercase is accepted. As long as the user hasn't entered the letter
Z, continue asking the amount of a sale. Issue an error message for invalid initials. Keep a running
total of the amounts sold by each salesperson. In the end, when the user types Z, display each
salesperson's total, the final total for all sales, and the name of the salesperson with the highest
total. Formatting should be included. What does X signals? How would your code change if I
asked you to enter a negative number instead of Z? I need to see the outline of the change/code.

More Related Content

More from abibagschennai

Rosewood Hotels amp Resorts Branding para aumentar la ren.pdf
Rosewood Hotels amp Resorts Branding para aumentar la ren.pdfRosewood Hotels amp Resorts Branding para aumentar la ren.pdf
Rosewood Hotels amp Resorts Branding para aumentar la ren.pdf
abibagschennai
 
Let X1Xn be a random sample from the pdf fxex where.pdf
Let X1Xn be a random sample from the pdf fxex where.pdfLet X1Xn be a random sample from the pdf fxex where.pdf
Let X1Xn be a random sample from the pdf fxex where.pdf
abibagschennai
 
Researchers believe that IQ scores may have less to do with .pdf
Researchers believe that IQ scores may have less to do with .pdfResearchers believe that IQ scores may have less to do with .pdf
Researchers believe that IQ scores may have less to do with .pdf
abibagschennai
 
Por qu muestran pinginos y moscas de la fruta Quieren d.pdf
Por qu muestran pinginos y moscas de la fruta  Quieren d.pdfPor qu muestran pinginos y moscas de la fruta  Quieren d.pdf
Por qu muestran pinginos y moscas de la fruta Quieren d.pdf
abibagschennai
 
quickly Fin 1 Fin 4 g33 Nan at the figures Ha2 Provies rip.pdf
quickly  Fin 1 Fin 4 g33 Nan at the figures Ha2 Provies rip.pdfquickly  Fin 1 Fin 4 g33 Nan at the figures Ha2 Provies rip.pdf
quickly Fin 1 Fin 4 g33 Nan at the figures Ha2 Provies rip.pdf
abibagschennai
 
publicationDatatxt.pdf
publicationDatatxt.pdfpublicationDatatxt.pdf
publicationDatatxt.pdf
abibagschennai
 
Oliver is saving for a car At the start of the first month .pdf
Oliver is saving for a car At the start of the first month .pdfOliver is saving for a car At the start of the first month .pdf
Oliver is saving for a car At the start of the first month .pdf
abibagschennai
 
PART 1 What two languages form the basis for medical termi.pdf
PART 1  What two languages form the basis for medical termi.pdfPART 1  What two languages form the basis for medical termi.pdf
PART 1 What two languages form the basis for medical termi.pdf
abibagschennai
 
Over the last decades the rapid spread of digital devices i.pdf
Over the last decades the rapid spread of digital devices i.pdfOver the last decades the rapid spread of digital devices i.pdf
Over the last decades the rapid spread of digital devices i.pdf
abibagschennai
 
Marvin the fly starts at 00 Each step Marvin moves one .pdf
Marvin the fly starts at 00 Each step Marvin moves one .pdfMarvin the fly starts at 00 Each step Marvin moves one .pdf
Marvin the fly starts at 00 Each step Marvin moves one .pdf
abibagschennai
 
If a message of length n bits is sent across a binary symmet.pdf
If a message of length n bits is sent across a binary symmet.pdfIf a message of length n bits is sent across a binary symmet.pdf
If a message of length n bits is sent across a binary symmet.pdf
abibagschennai
 
Look at the following structure declaration struct Containe.pdf
Look at the following structure declaration struct Containe.pdfLook at the following structure declaration struct Containe.pdf
Look at the following structure declaration struct Containe.pdf
abibagschennai
 
kltr ve eitlilik Doru yanl 1 Bilgi herhangi bir klt.pdf
kltr ve eitlilik  Doru yanl  1 Bilgi herhangi bir klt.pdfkltr ve eitlilik  Doru yanl  1 Bilgi herhangi bir klt.pdf
kltr ve eitlilik Doru yanl 1 Bilgi herhangi bir klt.pdf
abibagschennai
 
La distancia fsica entre las partes y la formalidad del ent.pdf
La distancia fsica entre las partes y la formalidad del ent.pdfLa distancia fsica entre las partes y la formalidad del ent.pdf
La distancia fsica entre las partes y la formalidad del ent.pdf
abibagschennai
 
Javier asked his brothers Mario and Luis to keep the books a.pdf
Javier asked his brothers Mario and Luis to keep the books a.pdfJavier asked his brothers Mario and Luis to keep the books a.pdf
Javier asked his brothers Mario and Luis to keep the books a.pdf
abibagschennai
 
In a small community in Quebec public health professionals .pdf
In a small community in Quebec public health professionals .pdfIn a small community in Quebec public health professionals .pdf
In a small community in Quebec public health professionals .pdf
abibagschennai
 
If the probability density of a random variable is given by .pdf
If the probability density of a random variable is given by .pdfIf the probability density of a random variable is given by .pdf
If the probability density of a random variable is given by .pdf
abibagschennai
 
Exercise 9 Lampetra specimen Erook Lamprey Lampreys are .pdf
Exercise 9 Lampetra specimen Erook Lamprey Lampreys are .pdfExercise 9 Lampetra specimen Erook Lamprey Lampreys are .pdf
Exercise 9 Lampetra specimen Erook Lamprey Lampreys are .pdf
abibagschennai
 
Here are the source code for mapping part Mappingh pragma .pdf
Here are the source code for mapping part Mappingh pragma .pdfHere are the source code for mapping part Mappingh pragma .pdf
Here are the source code for mapping part Mappingh pragma .pdf
abibagschennai
 
Help Please Im so confused lm formula zdiffzlag1+1+zdif.pdf
Help Please Im so confused lm formula zdiffzlag1+1+zdif.pdfHelp Please Im so confused lm formula zdiffzlag1+1+zdif.pdf
Help Please Im so confused lm formula zdiffzlag1+1+zdif.pdf
abibagschennai
 

More from abibagschennai (20)

Rosewood Hotels amp Resorts Branding para aumentar la ren.pdf
Rosewood Hotels amp Resorts Branding para aumentar la ren.pdfRosewood Hotels amp Resorts Branding para aumentar la ren.pdf
Rosewood Hotels amp Resorts Branding para aumentar la ren.pdf
 
Let X1Xn be a random sample from the pdf fxex where.pdf
Let X1Xn be a random sample from the pdf fxex where.pdfLet X1Xn be a random sample from the pdf fxex where.pdf
Let X1Xn be a random sample from the pdf fxex where.pdf
 
Researchers believe that IQ scores may have less to do with .pdf
Researchers believe that IQ scores may have less to do with .pdfResearchers believe that IQ scores may have less to do with .pdf
Researchers believe that IQ scores may have less to do with .pdf
 
Por qu muestran pinginos y moscas de la fruta Quieren d.pdf
Por qu muestran pinginos y moscas de la fruta  Quieren d.pdfPor qu muestran pinginos y moscas de la fruta  Quieren d.pdf
Por qu muestran pinginos y moscas de la fruta Quieren d.pdf
 
quickly Fin 1 Fin 4 g33 Nan at the figures Ha2 Provies rip.pdf
quickly  Fin 1 Fin 4 g33 Nan at the figures Ha2 Provies rip.pdfquickly  Fin 1 Fin 4 g33 Nan at the figures Ha2 Provies rip.pdf
quickly Fin 1 Fin 4 g33 Nan at the figures Ha2 Provies rip.pdf
 
publicationDatatxt.pdf
publicationDatatxt.pdfpublicationDatatxt.pdf
publicationDatatxt.pdf
 
Oliver is saving for a car At the start of the first month .pdf
Oliver is saving for a car At the start of the first month .pdfOliver is saving for a car At the start of the first month .pdf
Oliver is saving for a car At the start of the first month .pdf
 
PART 1 What two languages form the basis for medical termi.pdf
PART 1  What two languages form the basis for medical termi.pdfPART 1  What two languages form the basis for medical termi.pdf
PART 1 What two languages form the basis for medical termi.pdf
 
Over the last decades the rapid spread of digital devices i.pdf
Over the last decades the rapid spread of digital devices i.pdfOver the last decades the rapid spread of digital devices i.pdf
Over the last decades the rapid spread of digital devices i.pdf
 
Marvin the fly starts at 00 Each step Marvin moves one .pdf
Marvin the fly starts at 00 Each step Marvin moves one .pdfMarvin the fly starts at 00 Each step Marvin moves one .pdf
Marvin the fly starts at 00 Each step Marvin moves one .pdf
 
If a message of length n bits is sent across a binary symmet.pdf
If a message of length n bits is sent across a binary symmet.pdfIf a message of length n bits is sent across a binary symmet.pdf
If a message of length n bits is sent across a binary symmet.pdf
 
Look at the following structure declaration struct Containe.pdf
Look at the following structure declaration struct Containe.pdfLook at the following structure declaration struct Containe.pdf
Look at the following structure declaration struct Containe.pdf
 
kltr ve eitlilik Doru yanl 1 Bilgi herhangi bir klt.pdf
kltr ve eitlilik  Doru yanl  1 Bilgi herhangi bir klt.pdfkltr ve eitlilik  Doru yanl  1 Bilgi herhangi bir klt.pdf
kltr ve eitlilik Doru yanl 1 Bilgi herhangi bir klt.pdf
 
La distancia fsica entre las partes y la formalidad del ent.pdf
La distancia fsica entre las partes y la formalidad del ent.pdfLa distancia fsica entre las partes y la formalidad del ent.pdf
La distancia fsica entre las partes y la formalidad del ent.pdf
 
Javier asked his brothers Mario and Luis to keep the books a.pdf
Javier asked his brothers Mario and Luis to keep the books a.pdfJavier asked his brothers Mario and Luis to keep the books a.pdf
Javier asked his brothers Mario and Luis to keep the books a.pdf
 
In a small community in Quebec public health professionals .pdf
In a small community in Quebec public health professionals .pdfIn a small community in Quebec public health professionals .pdf
In a small community in Quebec public health professionals .pdf
 
If the probability density of a random variable is given by .pdf
If the probability density of a random variable is given by .pdfIf the probability density of a random variable is given by .pdf
If the probability density of a random variable is given by .pdf
 
Exercise 9 Lampetra specimen Erook Lamprey Lampreys are .pdf
Exercise 9 Lampetra specimen Erook Lamprey Lampreys are .pdfExercise 9 Lampetra specimen Erook Lamprey Lampreys are .pdf
Exercise 9 Lampetra specimen Erook Lamprey Lampreys are .pdf
 
Here are the source code for mapping part Mappingh pragma .pdf
Here are the source code for mapping part Mappingh pragma .pdfHere are the source code for mapping part Mappingh pragma .pdf
Here are the source code for mapping part Mappingh pragma .pdf
 
Help Please Im so confused lm formula zdiffzlag1+1+zdif.pdf
Help Please Im so confused lm formula zdiffzlag1+1+zdif.pdfHelp Please Im so confused lm formula zdiffzlag1+1+zdif.pdf
Help Please Im so confused lm formula zdiffzlag1+1+zdif.pdf
 

Recently uploaded

Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
deeptiverma2406
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
Celine George
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
ak6969907
 
Group Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana BuscigliopptxGroup Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana Buscigliopptx
ArianaBusciglio
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
Advantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO PerspectiveAdvantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO Perspective
Krisztián Száraz
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdfMASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
goswamiyash170123
 
Assignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docxAssignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docx
ArianaBusciglio
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
TechSoup
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
RitikBhardwaj56
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
Celine George
 

Recently uploaded (20)

Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
 
Group Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana BuscigliopptxGroup Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana Buscigliopptx
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
Advantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO PerspectiveAdvantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO Perspective
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdfMASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
 
Assignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docxAssignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docx
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
 

Programming Assignment 4 Chapter 5 Write compile and test.pdf

  • 1. Programming Assignment 4: Chapter 5 Write, compile, and test a program in C# called DisplaySales. Mark, Jennifer, and Robin are three salespeople. Write a program in C# called DisplaySales that asks the user for a salesperson initial (M, J, R) - Either uppercase or lowercase is accepted. As long as the user hasn't entered the letter Z, continue asking the amount of a sale. Issue an error message for invalid initials. Keep a running total of the amounts sold by each salesperson. In the end, when the user types Z, display each salesperson's total, the final total for all sales, and the name of the salesperson with the highest total. Formatting should be included. What does X signals? How would your code change if I asked you to enter a negative number instead of Z? I need to see the outline of the change/code.