// 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: A b. Observe the following reaction shown below. With aid of a mechanism, justify the…
Q: From the following data for the first-order gas- phase isomerization of CH3 NC at 215 °C, calculate…
Q: Draw the predominant product(s) of the following reactions including stereochemistry when it is…
Q: Knowledge Check 01 Use the drop-down menus to indicate whether each of the following events would be…
Q: 5. A train of mass 180t is moving at 90km/h. 5.1. Calculate the kinetic energy of the train. 5.2.…
Q: What is astrochemistry? a) The study of chemical reactions on Earth b) The study of chemical…
Q: Independent: They type of metal Dependent: Specific heat Control: According specific heat of the…
Q: Based on this model, households earn income when purchase in factor markets. Suppose Yvette earns…
Q: Find a polynomial function p which satisfies the following criteria: as x-x, p(x) - 88 The graph of…
Q: Please correct answer and don't use hend raiting and don't use AI solution
Q: in text form with proper workings and explanation for each and every part and steps with concept and…
Q: I need answer typing clear urjent no chatgpt used i will give upvotes
Q: Find Vx in this circuit and simplify the circuit by doing series/parallel connections.
Q: Dont use chat gpt to answer this question
Q:
Q: need all as
Q: Resource specialization and division of labor cause the marginal product of labor to increase, but…
Q: E2-20 (Algo) Recording Manufacturing Costs [LO 2-3, 2-4, 2-5] Reyes Manufacturing Company uses a job…
Q: ONLY ANSWER NUMBER 5 the other questions are there in case you need information and the data is…
Q: Please break this question down for me and draw the peptide too…….
Q: It has to be your own thoughts to answer this question.