// 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: Solve the following discrete structure equation, without explanation please.
Q: Q)A 3-phase line delivers 3600 kW at a p.f. 0.8 lagging to a load. If the sending end voltage is 33…
Q: Suppose that the price of a share of a particular stock listed on the New York Stock Exchange is…
Q: The synthesis of methanol from carbon monoxide and hydrogen is carried out in a continuous reactor…
Q: Calculate the dielectric constant of the medium for the zone between a metal and the OHP layer from…
Q: Accounts Balances Cash $5,400 Salaries expense 2,200 Accounts payable 3,400 Retained earnings 3,900…
Q: 8. How would you carry out the following transformations? More than one step is required. (7) Ph O₂H
Q: Quantity of output (# of cookies per hour) Total product curve Quantity of Input (# of workers) .…
Q: wild horse is a fast growing company whose management expects it to grow at a rate of 30 percent…
Q: Use hand written solution. Nscp 2015 steel design ty
Q: Exercise 2 A shunt generator delivers 14A at 270V and the resistance of the shunt field and armature…
Q: 4- A May 8, 2008, report on National Public Radio (www.npr.org) noted that the average age of first-…
Q: 6:31 م DIZV Bartleby solution 1 hypothesis Asiacell 3- A manufacture of prosthesis knee claim that…
Q: ٦:٣٠م DIZVAN Bartleby solution 1 hypothesis Asiacell 2- It is found that the average of net cost of…
Q: ٦:٢٧ م DIZVA &G Bartleby solution hypothesis 1 Asiacell 1- At ottobock company I used an average of…
Q: 25. A firm produces the output y using two inputs x₁ and x2 in non-negative quantities through the…
Q: Create me a simplified cash flow diagram for the project starting from initial development until the…
Q: Need help on all please and thanks
Q: Part 2. Please do “f through d”
Q: Part 1. Please do “a through f” Part 2 was posted at the same time if you can follow on please.
Q: Don't use chat gpt plz Chatgpt means downvote