// This pseudocode should create a list that describes annual profit // statistics for a retail store. Input records contain a department // name (for example, ìCosmeticsî) and profits for each quarter for // the last two years. The program should determine whether // the profit is higher, lower, or the same // for this full year compared to the last full year. start Declarations string department num salesQuarter1ThisYear num salesQuarter2ThisYear num salesQuarter3ThisYear num salesQuarter3ThisYear num salesQuarter1LastYear num salesQuarter2LastYear num salesQuarter3ThisYear num salesQuarter4LastYear num totalThisYear num totalLastYear string status num QUIT = "ZZZZ" housekeeping() while department <> QUIT compareProfit() endwhile finishUp() stop housekeeping()DEBUG04-02.txt output "Enter department name or ", QUIT, " to quit " input dept return compareProfit() getSalesData() sumSalesData() if totalThisYear = totalLastYear then status = "Higher" else if totalThisYear

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter7: File Handling And Applications
Section: Chapter Questions
Problem 1PE
icon
Related questions
icon
Concept explainers
Question
// This pseudocode should create a list that describes annual profit // statistics for a retail store. Input records contain a department // name (for example, ìCosmeticsî) and profits for each quarter for // the last two years. The program should determine whether // the profit is higher, lower, or the same // for this full year compared to the last full year. start Declarations string department num salesQuarter1ThisYear num salesQuarter2ThisYear num salesQuarter3ThisYear num salesQuarter3ThisYear num salesQuarter1LastYear num salesQuarter2LastYear num salesQuarter3ThisYear num salesQuarter4LastYear num totalThisYear num totalLastYear string status num QUIT = "ZZZZ" housekeeping() while department <> QUIT compareProfit() endwhile finishUp() stop housekeeping()DEBUG04-02.txt output "Enter department name or ", QUIT, " to quit " input dept return compareProfit() getSalesData() sumSalesData() if totalThisYear = totalLastYear then status = "Higher" else if totalThisYear
Expert Solution
Step 1

Pseudocode:

Pseudocode is a method of describing algorithms using a combination of natural language and programming language-like constructs. It's a high-level description of a computer program or algorithm, which is written in plain English or another natural language to describe how the program works. Pseudocode is a way to plan and organize code before writing it in a specific programming language, allowing for a better understanding of how the program should function and making it easier to translate into code. It can be useful for collaboration between team members who may have different levels of programming experience or for communication with non-technical stakeholders.

trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Control Structure
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
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr

Expert Answers to Latest Homework Questions

Q: Haas corp has the following machine schedule data: Job Work Days Remaining Job Due Date A 24 days 24…
Q: Choc Full of Good Inc., a producer of powdered hot chocolate, has just received a large order that…
Q: Drag and Drop the following the type of training activity title on their matching descriptions.…
Q: Drag and Drop the following the type of training activity title on their matching descriptions.…
Q: Drag and Drop the following the type of training activity title on their matching descriptions.…
Q: A simplified representation of the Diesel cycle, with just air as the work- ing substance, is as…
Q: A hypothetical engine, with an ideal gas as the working substance, operates in the cycle shown in…
Q: A Carnot engine working on a satellite in outer space has to deliver a fixed amount of power at rate…
Q: Show that the efficiencies of the three Carnot engines, operating between the three reservoirs as…
Q: What is max age work in hospitality in usa as waiter?thank you brother.
Q: A game involves rolling two six-sided dice, followed by rolling a third six-sided die. To win the…
Q: Find the value of k so that the following curves y=(x^4)/k and y=-3x^3-2x^2 intersect at more than…
Q: Sketch the curve N=-t^4+4t^3+125 for 0&lt;=t&lt;=5, showing all critical points.
Q: Please do the following questions with full handwritten working out
Q: Please do the following questions with full handwritten working out
Q: 34. The mean squared error of an estimator Ô is MSE (Ô) = E(ô – ĝ)². If Ô is unbiased, then MSE(Ô) =…
Q: 16. Suppose the true average growth μ of one type of plant during a 1-year period is identical to…
Q: 32. a. Let X., X be a random sample from a uniform distribution on [0, 0]. Then the mle of is = Y =…
Q: 22. Let X denote the proportion of allotted time that a ran- domly selected student spends working…
Q: INCLUDE APA REFERENCes and in text citations NO AI PLEASE Essay about the "With the advent of…
Q: §5. (8 p) Let (4A)¯¹= ( 2/3 2). Get At.