Using only the instructions shown in Figure 1-12, write two versions of an algorithm that displays the
Question:
Using only the instructions shown in Figure 1-12, write two versions of an algorithm that displays the total amount each customer owes for concert tickets. Be sure to indent the instructions appropriately.
Transcribed Image Text:
calculate the amount owed by multiplying the number of tickets by $35 display the amount owed display the message "You can purchase up to 4 tickets only." else end if end repeat enter the number of tickets if (the number of tickets is greater than 4) if (the number of tíckets is less than or equal to 4) repeat for (each customer) Figure 1-12
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 85% (14 reviews)
Version 1 repeat for each customer enter the number of tickets ...View the full answer
Answered By
Sheikh Muhammad Ibrahim
During the course of my study, I have worked as a private tutor. I have taught Maths and Physics to O'Level and A'Level students, as well as I have also taught basic engineering courses to my juniors in the university. Engineering intrigues me alot because it a world full of ideas. I have passionately taught students and this made me learn alot. Teaching algebra and basic calculus, from the very basics of it made me very patient. Therefore, I know many tricks to make your work easier for you. I believe that every student has a potential to work himself. I am just here to polish your skills. I am a bright student in my university. My juniors are always happy from me because I help in their assignments and they are never late.
4.90+
14+ Reviews
24+ Question Solved
Related Book For
Microsoft Visual C# An Introduction to Object-Oriented Programming
ISBN: 978-1337102100
7th edition
Authors: Joyce Farrell
Question Posted:
Students also viewed these Computer science questions
-
Using only the instructions shown in Figure 1-10, create an algorithm that displays the average of four numbers. Be sure to indent the instructions appropriately. calculate the average by dividing...
-
Write, compile, and test a class that displays the pattern shown in Figure 1-26. Save the class as Triangle.java. TTT TTTTTTI T T TIT
-
Write, compile, and test a class that displays the pattern shown in Figure 1-25. Save the class as TableAndChairs.java. XXXXXXXXXX XXXX X XXXXX
-
Examine the major components of a marketing plan.
-
Contrast rational and non-rational models of managers as decision makers. Think of a recent non-programmed decision situation you have seen handled in an organisation (perhaps a student group or...
-
Decrease in end of year receivables of a firm will the operating cycle. A- increase B- decrease C- has no effect. If Nico Corporation has cost of goods sold of $300,000 and average inventory of...
-
6. Craig Hare offered computers and related equipment for sale on various Internet auction Web sites. He accepted payment but not responsibility-he never shipped the goods. Both the FTC and the U.S....
-
Kenseth Corp. has the following beginning-of-the-year present values for its projected benefit obligation and market-related values for its pension plan assets. The average remaining service life per...
-
This document doesn't answer this required information at whether Pinkman is the principal or agent. It also doesn't state if revenue should be on the net or gross basis. ASC 606 is the codification...
-
We project unit sales for a new household-use laser-guided cockroach search and destroy system as follows: The new system will be priced to sell at $380 each. The cockroach eradicator project will...
-
You have just purchased a new personal computer system. Before putting the system components together, you read the instruction booklet that came with the system. The booklet contains a list of the...
-
Harold is standing in front of a flowerbed that contains six flowers, as illustrated in Figure 1-13. Create an algorithm that directs Harold to pick the flowers as he walks to the other side of the...
-
Determine the impedance for the circuit in Figure 1069. 10 V FIGURE 10-69 R 1.2 Xc 2.2
-
Determining mixed costs the high - low method The manager of Loyal Cat Inspection reviewed the monthly operating costs for the past year. The costs ranged from $ 4 , 0 0 0 for 1 , 0 0 0 inspections...
-
Solve for f(x) f(x) = f'(x) = 20x + x > 0, f(1) = 2
-
You are given the following information: Stockholders' equity = $700,000 Price/Earnings ratio = 2.70x Common shares outstanding = 350,000 Market/Book ratio = 3.70x Calculate the price of a share of...
-
What is the significance of leaders building trust in followers. How does building trust positive impact business results. Any examples to identify the topic better ?
-
You are trying to prepare fi nancial statements for Bartlett Pickle Company, but seem to be missing its balance sheet. You have Bartlett s income statement, which shows sales last year were $ 5 2 0...
-
Write a research paper/presentation on Application and web security, and also describe the recent attacks on application and web security that were mentioned in the last 6 months. Present your...
-
Research corporate acquisitions using Web resources and then answer the following questions: Why do firms purchase other corporations? Do firms pay too much for the acquired corporation? Why do so...
-
An escape sequence always begins with a(n) _____________. a. e b. Forward slash c. Backslash d. Equal sign
-
Which Java statement produces w on one line and xyz on the next line? a. System.out.println(wxyz); b. System.out.println(w + xyz); c. System.out.println(w xyz); d. System.out.println(w x y z);
-
The remainder operator _____________. a. Is represented by a forward slash b. Must follow a division operation c. Provides the quotient of integer division d. Is none of the above
-
fflush(fp); fsync(fileno(fp));
-
Behavior analysts are responsible for (select all that apply) A. Establishing baseline data collection B. Always carrying out the treatment C. Upholding the highest ethical standards to avoid harming...
-
_______ conflict is when two people disagree on some matter. A. Interpersonal B. Intergroup C. Interorganizational D. Intrinsic
Study smarter with the SolutionInn App