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: 84% (13 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...
-
A bank has a duration of 12 years for its assets and a duration of 18 years for its liabilities. Further, the leverage ratio (k) is 0.75. What will be the effect of rising interest rates on the...
-
Why did Congress pass the Health Care Quality Improvement Act of 1986?
-
Refer to the Golf Haven inventory data in Exercise 6-17. Assume that Golf Haven uses the average-cost method. Requirements 1. Prepare Golf Havens perpetual inventory record for the putters on the...
-
Bonus: The angle of depression of the top of Billings Building from the roof of the Wolcott Building (in the same vertical plane) is 33.10, and from the 15th floor it is 21.50. If the distance...
-
In an IPv4 packet, the size of the payload in the first fragment, in octets, is equal to Total Length - (4 IHL). If this value is less than the required minimum (8 octets for TCP), then this...
-
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...
-
Aztec Corporation uses a periodic inventory system and the retail inventory method to estimate ending inventory and cost of goods sold. The following data are available for the month of September:...
-
A horizontal force of 100 N is required to push a box across a floor at a constant velocity. (a) Show that the net force acting on the box is zero. (b) Show that the friction force that acts on the...
-
How can you be at rest and also moving at 100,000 km>h at the same time?
-
Under what circumstances is each type of riskstand-alone, corporate, and marketmost relevant?
-
The business risk of a particular company is most accurately measured by the companys: A. debt-to-equity ratio. B. efficiency in using assets to generate sales. C. operating leverage and level of...
-
How is the beta of a portfolio related to the betas of the components?
-
Rainy Day Umbrella Corporation had the following balances at December 31, 2016 (all amounts in thousands): preferred shares, $3,375; common shares, $8,903; contributed surplus, $3,744; retained...
-
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
-
1 Mandatory requirement: Students are required to complete Budget on the provided Excel 2 3 4 5 5 B spreadsheet template. (For the purpose of Budget calculation in the assessment, ignore all GST...
-
A company has Rs 4 per year carrying cost on each unit of inventory, an annual usage of 50,000 units and an ordering cost of Rs 100 per order. Calculate the economic order quantity. What shall be the...
-
The company decided to make some changes to its operations based on the actual results and the variance analysis. The plan is to maintain the selling price of the product at RM100 per unit and the...
Study smarter with the SolutionInn App