Design, using an IPO chart, a flow chart, pseudocode, or any reasonable combination of these techniques,...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Design, using an IPO chart, a flow chart, pseudocode, or any reasonable combination of these techniques, a module called checkGuess that accepts 2 string inputs. The first input will be the user's guess and the second input will be a secret letter chosen at random. No Python code is expected or required for this solution. If the first input is alphabetically after the second input, return a value of 1. If the first input is alphabetically before the second input, return a value of -1. If the two inputs are equal return a value of 0. Do not take upper or lower case into consideration. Use your module as part of a design, using an IPO chart, flow chart, pseudocode, or any reasonable combination of these techniques, to solve the following problem. Call your module using pseudocode like CALL checkGuess( op1, op2 ) AS val. Your pseudocode should use your own variable names instead of op1, op2, and val. Be sure to document any assumptions you make along the way in your design. Problem: A person is playing a guessing game in which they have 3 guesses to figure out the computer's secret letter. which will be between A and Z inclusive. If they guess the letter correctly on the first guess the program should stop making them guess and they should get 26 points. If they guess the letter correctly on the second guess the program should stop making them guess and they should get 13 points. If they guess the letter correctly on the third guess, they should get 7 points. After an incorrect guess tell the user if their guess was too high or too low based on the results of checkGuess. If they fail to guess the letter correctly after 3 guesses they get 0 points. Be sure to tell them what score they got. I Design, using an IPO chart, a flow chart, pseudocode, or any reasonable combination of these techniques, a module called checkGuess that accepts 2 string inputs. The first input will be the user's guess and the second input will be a secret letter chosen at random. No Python code is expected or required for this solution. If the first input is alphabetically after the second input, return a value of 1. If the first input is alphabetically before the second input, return a value of -1. If the two inputs are equal return a value of 0. Do not take upper or lower case into consideration. Use your module as part of a design, using an IPO chart, flow chart, pseudocode, or any reasonable combination of these techniques, to solve the following problem. Call your module using pseudocode like CALL checkGuess( op1, op2 ) AS val. Your pseudocode should use your own variable names instead of op1, op2, and val. Be sure to document any assumptions you make along the way in your design. Problem: A person is playing a guessing game in which they have 3 guesses to figure out the computer's secret letter. which will be between A and Z inclusive. If they guess the letter correctly on the first guess the program should stop making them guess and they should get 26 points. If they guess the letter correctly on the second guess the program should stop making them guess and they should get 13 points. If they guess the letter correctly on the third guess, they should get 7 points. After an incorrect guess tell the user if their guess was too high or too low based on the results of checkGuess. If they fail to guess the letter correctly after 3 guesses they get 0 points. Be sure to tell them what score they got. I
Expert Answer:
Answer rating: 100% (QA)
Heres a design for the checkGuess module using pseudocode along with a description of how to use it ... View the full answer
Related Book For
Fundamentals of Financial Management
ISBN: 978-1337395250
15th edition
Authors: Eugene F. Brigham, Joel F. Houston
Posted Date:
Students also viewed these programming questions
-
Cross-cultural communication was briefly covered earlier in the course. This type of communication focuses on the elements that impact communication across different cultures and how messages can be...
-
Case Study: Quick Fix Dental Practice Technology requirements Application must be built using Visual Studio 2019 or Visual Studio 2017, professional or enterprise. The community edition is not...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
discusses how a reseller can service both a consumer and an industrial market from the same store location. Provide an example of a retailer and detail the differences in their marketing activities.
-
Do you think establishing the Tripartite Free Trade Area (TFTA) is a good plan for Africa? Why or why not?
-
If a business is overtrading, do you think the following ratios would be higher or lower than normally expected? 1. Current ratio 2. Average inventories turnover period 3. Average settlement period...
-
Determine if 1,477 is prime.
-
(Pension Expense, Journal Entries) The following information is available for the pension plan of Brady Company for the year 2010. (a) Compute pension expense for the year 2010. (b) Prepare the...
-
Weighted Average Cost of Capital (WACC) is the required rate o return that a firm needs to earn to pay interest for the capital it raised. WACC = (E/V * Re) + (D/V * Rd * (1-Tc)) Therefore, let's...
-
Kelly Consulting Post-Closing Trial Balance April 30, 20Y8 Account number Debit Credit Money 11 22,100 accounts receivable 12 3,400 supplies 14 1,350 prepaid rent 15 3,200 prepaid insurance sixteen...
-
IAS 37 focuses on Provisions, Contingent Liabilities & Contingent Assets alongwith their recognition and measurement criteria. Keeping those criteria in mind, draft the following: a) Assume a...
-
Under the perpetual inventory system, what entries are made to record sales, sales returns and allowances, and discount allowed?
-
When auditing an electronic data processing system, the CPA must be aware of the different types of controls. The controls include those incorporated in application programs and those built into the...
-
What types of transactions might appear in a QuickZoom report created from an Accounts Payable Aging report?
-
In recording GST transactions, a business can use the following accounts GST clearing, GST paid, GST collected. Explain the nature of each account and how it is used to record collections and...
-
In recording GST transactions, a business can use the following accounts: GST clearing, GST paid and GST collected. Explain the nature of each account and how it is used to record collections and...
-
What is the primary reason that users of financial information demand audited financial statements? Select answer from the options below to guarantee a company is a going concern to reduce...
-
Modify the counter from Exercise 5.44 such that the counter will either increment by 4 or load a new 32-bit value, D, on each clock edge, depending on a control signal Load. When Load = 1, the...
-
This chapter discusses the discounted dividend and corporate valuation models for valuing common stocks. Three alternative approaches, the P/E multiple, Enterprise Values, and EVA approaches, were...
-
McEwan Industries sells on terms of 3/10, net 30. Total sales for the year are $1,921,000; 40% of the customers pay on the 10th day and take discounts,while the other 60% pay, on average, 70 days...
-
Suppose the exchange rate between the U.S. dollar and the Swedish krona was 7.97 krona 5 $1, and the exchange rate between the dollar and the British pound was1 5 $1.29. What would be the exchange...
-
Turbo Corporation had net income of \(\$ 30,000\) and other comprehensive income of \(\$ 0\) prior to the following two adjustments: Turbo Corporation discovered it has an unrealized holding loss of...
-
Lance Co. purchased 100 shares of Mallard common stock at \$20 per share on March 15, 2020. Mallard declared and paid a dividend of \(\$ 1.50\) per share in 2020. The market price on December 31,...
-
An investor purchased 100 shares of Mallard common stock at \(\$ 20\) per share on March 15, 2020. On December 31, 2020, the stock was quoted at \(\$ 19\) per share and declared and paid a dividend...
Study smarter with the SolutionInn App