Update your UML diagram to include an overridden method, computeSales(), for computing total sold for each account type.
Need help with this assignment?Get an original answer from a qualified tutor — from $10/page.
Get it written →Description
Primary Task Response: Within the Discussion Board area, write 400–600 words that respond to the following questions with your thoughts, ideas, and comments. This will be the foundation for future discussions by your classmates. Be substantive and clear, and use examples to reinforce your ideas.
UML Diagram:
Update your UML diagram to include an overridden method, computeSales(), for computing total sold for each account type. Update the explanation for your UML diagram accordingly.
Your application will use the Accounts inheritance hierarchy designed previously to compute the total of goods sold.
There are 3 types of sales accounts that track sales for your company: supplies, services, and paper. Each has their own formula for computing the current sales:
Supplies = dollar amount of office supplies sold + dollar amount of books sold + dollar amount of apparel sold
Services = number of hours * rate per hour
Paper = number of pounds * price per pound
You decide if default behavior for computing sales should be provided by the Account superclass. Be sure to explain your decision in your notes for your UML class diagram.
Pseudocode for Application:
It is time to design the sales tracker application that will use objects of type account.
Create the pseudocode for an application that provides the following functional requirements:
F1: Accept a sales person’s entry for the dollar amount of office supplies sold, books sold, and apparel sold. The sum of these three categories will be the total of their supplies sold.
F2: Accept a sales person’s entry for the number of service hours sold and rate per hour.
F3: Accept a sales person’s entry for the number of pounds of paper sold and the price per pound.
Displays the total current sales to date in all 3 categories for the sales person: supplies, books, and paper.
Post your updated UML class diagram and pseudocode to the discussion area.
Responses to Other Students: Respond to at least 2 of your fellow classmates with a reply of at least 100 words about their primary task response regarding items you found to be compelling and enlightening. To help you with your discussion, please consider the following questions:
What did you learn from your classmate’s posting?
What additional questions do you have after reading the posting?
What clarification do you need regarding the posting?
What differences or similarities do you see between your posting and other classmates’ postings?
Get a plagiarism-free answer to this question
Send us your instructions and we’ll match you with the best writer in your subject.
- 100% human-written, zero AI
- Turnitin report included
- Confidential — we never share your data
- Free revisions & refunds