Using Python The application should provide the sum of all sales totals for each entered department and output the totals. The application should also end and display the total when the user enters “none” for the department. You will need to use both branching and loops in this application. You may assume that there are only 2 department names entered. The interaction might look like the following: Enter department: Sporting goods Enter total: 500 Enter department: Grocery Enter total: 1,000 Enter department: None The total for sporting goods is 500. The total for grocery is 1,000. You need to test the application with a total transaction count of eight and two departments.

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter6: Using Arrays
Section: Chapter Questions
Problem 8E: For each of the following exercises, you may choose to write a console-based or GUI application, or...
icon
Related questions
Question

Using Python

The application should provide the sum of all sales totals for each entered department and output the totals. The application should also end and display the total when the user enters “none” for the department.

You will need to use both branching and loops in this application. You may assume that there are only 2 department names entered. The interaction might look like the following:

Enter department: Sporting goods

Enter total: 500

Enter department: Grocery

Enter total: 1,000

Enter department: None

The total for sporting goods is 500.

The total for grocery is 1,000.

You need to test the application with a total transaction count of eight and two departments.

Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Types of Expressions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT