(01) 5. Danielle, Edward, and Francis are three salespeople at Holiday Homes. Write an application named HomeSales that prompts the user for a salesperson initial (D, E, or F). Either uppercase or lowercase initials are valid. While the user does not type Z, continue by prompting for the amount of a sale. Issue an error message initials entered. Keep a running total of the amounts sold by each salesperson. After for any invalid the user types Z or z for an initial, display each salesperson's total, a grand total for all sales, and the name of the salesperson with the highest total. Write on
(01) 5. Danielle, Edward, and Francis are three salespeople at Holiday Homes. Write an application named HomeSales that prompts the user for a salesperson initial (D, E, or F). Either uppercase or lowercase initials are valid. While the user does not type Z, continue by prompting for the amount of a sale. Issue an error message initials entered. Keep a running total of the amounts sold by each salesperson. After for any invalid the user types Z or z for an initial, display each salesperson's total, a grand total for all sales, and the name of the salesperson with the highest total. Write on
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
Question 5. How do I put the total amount of sales and salesperson initial in output? It's not showing it on mine.
![6.
220
4.
CHAPTER 5 Looping
3.
Exercises
1.
2.
wollei sit sobad
Programming Exercises
Write an application named SumFiveInts that allows the user to enter five integers
and displays their sum.
Write an application named SumInts that allows the user to enter any number of
integers continuously until the user enters 999. Display the sum of the values entered,
not including 999.
Write an application named EnterUppercase Letters that asks the user to type an
uppercase letter from the keyboard. If the character entered is an uppercase letter,
display OK; if it is not an uppercase letter, display an error message. The program
continues until the user types an exclamation point.
Write an application named DailyTemps that continuously prompts a user for a series
of daily high temperatures until the user enters a sentinel value. Valid temperatures
range from -20 through 130 Fahrenheit. When the user enters a valid temperature,
add it to a total; when the user enters an invalid temperature, display an error message.
temperature.
Before the program ends, display the number of temperatures entered and the
average
5. Danielle, Edward, and Francis are three salespeople at Holiday Homes. Write an
application named HomeSales that prompts the user for a salesperson initial (D, E,
or F). Either uppercase or lowercase initials are valid. While the user does not type Z,
continue by prompting for the amount of a sale. Issue an error message for any
invalid
initials entered. Keep a running total of the amounts sold by each salesperson. After
the user types Z or z for an initial, display each salesperson's total, a grand total for all
sales, and the name of the salesperson with the highest total.
Write an application named DisplayMultiplicationTable that displays a table of the
products of every combination of two integers from 1 through 10.
7. Write an application named Multiplication Table that prompts the user for an integer
value, for example 7. Then display the product of every integer from 1 through 10
when multiplied by the entered value. For example, the first three lines of the table
might read 1 × 7 = 7,2 × 7 = 14, and 3 X 7 = 21₁
10](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fb9f0bdf4-572f-4133-8b3a-121eaba2f02a%2F37a156c5-c571-4563-a567-a2722f9d703e%2Fbzu9fnk_processed.jpeg&w=3840&q=75)
Transcribed Image Text:6.
220
4.
CHAPTER 5 Looping
3.
Exercises
1.
2.
wollei sit sobad
Programming Exercises
Write an application named SumFiveInts that allows the user to enter five integers
and displays their sum.
Write an application named SumInts that allows the user to enter any number of
integers continuously until the user enters 999. Display the sum of the values entered,
not including 999.
Write an application named EnterUppercase Letters that asks the user to type an
uppercase letter from the keyboard. If the character entered is an uppercase letter,
display OK; if it is not an uppercase letter, display an error message. The program
continues until the user types an exclamation point.
Write an application named DailyTemps that continuously prompts a user for a series
of daily high temperatures until the user enters a sentinel value. Valid temperatures
range from -20 through 130 Fahrenheit. When the user enters a valid temperature,
add it to a total; when the user enters an invalid temperature, display an error message.
temperature.
Before the program ends, display the number of temperatures entered and the
average
5. Danielle, Edward, and Francis are three salespeople at Holiday Homes. Write an
application named HomeSales that prompts the user for a salesperson initial (D, E,
or F). Either uppercase or lowercase initials are valid. While the user does not type Z,
continue by prompting for the amount of a sale. Issue an error message for any
invalid
initials entered. Keep a running total of the amounts sold by each salesperson. After
the user types Z or z for an initial, display each salesperson's total, a grand total for all
sales, and the name of the salesperson with the highest total.
Write an application named DisplayMultiplicationTable that displays a table of the
products of every combination of two integers from 1 through 10.
7. Write an application named Multiplication Table that prompts the user for an integer
value, for example 7. Then display the product of every integer from 1 through 10
when multiplied by the entered value. For example, the first three lines of the table
might read 1 × 7 = 7,2 × 7 = 14, and 3 X 7 = 21₁
10
![File
What's New?
C#HomeSales
K
>1
Green of D
100%
esc
Edit View Git Project Build Debug Test Analyze Tools Extensions Window Help Search (Ctrl+Q)
-882-C
D-4
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
2
11
1
Program.cs+ X Form1.cs [Design]
75°F
Sunny
1
E
1
?
Q
No issues found
Enter a salesperson initial:
Enter amount of sales
C# Interactive Error List Output
Ready
}
else
{
Enter a salesperson initial:
Enter amount of sales
HomeSales.Program
if (dSale> eSale && dSale> fSale)
{
Console.WriteLine("Danielle sold the most");
}
else if (eSale > dSale && eSale > fSale)
Console.WriteLine("Edward sold the most");
else if (fSale > dSale && fSale > eSale)
{
Console.WriteLine("Francis sold the most");
}
Enter a salesperson initial;
Caton
CATAL
7
2
Output
Show output from: Debug
(CLR v4.0.30319: DefaultDomain): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0b77a5c561934e089\mscorlib.c
'HomeSales.exe
'HomeSales.exe (CLR v4.0.30319: DefaultDomain): Loaded 'C:\Users\conle\source\repos\HomeSales\HomeSales\HomeSales\bin\Debug\HomeSales.exe'. Symbol:
Enter a salesperson initial:
Enter amount of sales
Enter a salesperson initial:
Enter amount of sales
Debug
W
S
Any CPU
Console.WriteLine("There is a tie");
#
*
3
E
f4
$
Start W
R
f5
%
LL
5
f6
T
G
react to Panthe
&
M ? F
hp
Y
7
Main()
H
ผสมผ -
*
U
00
fg 144
A HomeSales
J
Ln: 67 Ch: 17 SPC CRLF
f10
K
O
↑ Add to Source
f11
DAI
P](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fb9f0bdf4-572f-4133-8b3a-121eaba2f02a%2F37a156c5-c571-4563-a567-a2722f9d703e%2Fav7uqr_processed.jpeg&w=3840&q=75)
Transcribed Image Text:File
What's New?
C#HomeSales
K
>1
Green of D
100%
esc
Edit View Git Project Build Debug Test Analyze Tools Extensions Window Help Search (Ctrl+Q)
-882-C
D-4
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
2
11
1
Program.cs+ X Form1.cs [Design]
75°F
Sunny
1
E
1
?
Q
No issues found
Enter a salesperson initial:
Enter amount of sales
C# Interactive Error List Output
Ready
}
else
{
Enter a salesperson initial:
Enter amount of sales
HomeSales.Program
if (dSale> eSale && dSale> fSale)
{
Console.WriteLine("Danielle sold the most");
}
else if (eSale > dSale && eSale > fSale)
Console.WriteLine("Edward sold the most");
else if (fSale > dSale && fSale > eSale)
{
Console.WriteLine("Francis sold the most");
}
Enter a salesperson initial;
Caton
CATAL
7
2
Output
Show output from: Debug
(CLR v4.0.30319: DefaultDomain): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0b77a5c561934e089\mscorlib.c
'HomeSales.exe
'HomeSales.exe (CLR v4.0.30319: DefaultDomain): Loaded 'C:\Users\conle\source\repos\HomeSales\HomeSales\HomeSales\bin\Debug\HomeSales.exe'. Symbol:
Enter a salesperson initial:
Enter amount of sales
Enter a salesperson initial:
Enter amount of sales
Debug
W
S
Any CPU
Console.WriteLine("There is a tie");
#
*
3
E
f4
$
Start W
R
f5
%
LL
5
f6
T
G
react to Panthe
&
M ? F
hp
Y
7
Main()
H
ผสมผ -
*
U
00
fg 144
A HomeSales
J
Ln: 67 Ch: 17 SPC CRLF
f10
K
O
↑ Add to Source
f11
DAI
P
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Recommended textbooks for you
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
![Concepts of Database Management](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY