Can you find the reason that the following pseudocode function does not return the value indicated in
Question:
Can you find the reason that the following pseudocode function does not return the value indicated in the comments?
Transcribed Image Text:
// The calcDiscount Price function accepts an item's price and // the discount percentage as arguments. It uses those // values to calculate and return the discounted price. Function Real calcDiscount Price (Real price, Real percentage) // Calculate the discount. Declare Real discount = price * percentage // Subtract the discount from the price. Declare Real discount Price = price // Return the discount price. Return discount End Function - discount
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 100% (4 reviews)
The calcDiscountPrice function does not return the discounted price because it is returning the d...View the full answer
Answered By
Aysha Ali
my name is ayesha ali. i have done my matriculation in science topics with a+ . then i got admission in the field of computer science and technology in punjab college, lahore. i have passed my final examination of college with a+ also. after that, i got admission in the biggest university of pakistan which is university of the punjab. i am studying business and information technology in my university. i always stand first in my class. i am very brilliant client. my experts always appreciate my work. my projects are very popular in my university because i always complete my work with extreme devotion. i have a great knowledge about all major science topics. science topics always remain my favorite topics. i am also a home expert. i teach many clients at my home ranging from pre-school level to university level. my clients always show excellent result. i am expert in writing essays, reports, speeches, researches and all type of projects. i also have a vast knowledge about business, marketing, cost accounting and finance. i am also expert in making presentations on powerpoint and microsoft word. if you need any sort of help in any topic, please dont hesitate to consult with me. i will provide you the best work at a very reasonable price. i am quality oriented and i have 5 year experience in the following field.
matriculation in science topics; inter in computer science; bachelors in business and information technology
_embed src=http://www.clocklink.com/clocks/0018-orange.swf?timezone=usa_albany& width=200 height=200 wmode=transparent type=application/x-shockwave-flash_
4.40+
11+ Reviews
14+ Question Solved
Related Book For
Question Posted:
Students also viewed these Computer science questions
-
Can you find the reason that the following pseudocode does not perform as indicated in the comments? // Find the error in the following pseudocode. Module main () Declare Real value, result // Get a...
-
The site http://virtualpiano.net features an online player piano. If you click on the Key Assist menu just above the piano keyboard, and then Keyboard Keys, you will see that each key is labelled...
-
Write a paragraph on each question. What is leadership? What makes for a great leader? What leadership attributes contribute to strong teamwork or building strong teams? What role will your values...
-
1 30 2 3 4 If A= = -1 2 1,B= 1 23 0 02 -1 1 2 5 9 13 (a) -1 2 4 -12 4 1 24 (C) -1 2 4 -2 24 then AB= 5 (b) -1 9 13 24 -2 2 4 (d) None of these
-
The Joliet Manufacturing Company reviewed its year-end inventory and found the following items. Indicate which items should be included in the inventory balance at December 31, 2008. Give your...
-
Based on the translation method being used for Julius, the subsidiary is most likely: A. a sales outlet for Romuluss products. B. a self-contained, independent operating entity. C. using the US...
-
29. Explain why there is such a large number and variety of tax credits.
-
The stockholders equity section of The Seventies Shop is presented here. THE SEVENTIES SHOP Balance Sheet (partial) ($ in thousands) Stockholders equity: Preferred stock, $50 par value ........ $ 0...
-
how do I go about this question in terms of capital budgeting and how is each information treated : Incorporating taxation in capital budgeting Mallo Mallo limited intends to introduce a new product,...
-
The accounting staff of Best Company has assembled the following information for the year ended December 31, 2011: Cash sales . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ....
-
The following pseudocode statement calls a function named half, which returns a value that is half that of the argument. (Assume both the result and number variables are Real.) Write pseudocode for...
-
What three characteristics of a function are described in an IPO chart?
-
Using a 13 per cent discount rate find the NPV of a project with the following cash flows: Why would this project be difficult to evaluate using IRR? Points in time (yearly intervals) to t Cash flow...
-
A steady flow of 20 m3/s of moist air at TDB = 35iC, TWB = 25iC, 100 kPa (state 1) is dehumidified by first cooling it and condensing out moisture (state 2), then reheating it to 20iC and 50% R.H....
-
Question 37 Plantito Inc., produces potted plants. For next year, Pietro predicts that 45,000 units will be produced, with the following total costs: Direct materials Direct labor ? 80,000 Variable...
-
When you are to design a data transmission system, you have two key considerations to work with: data rate and distance, with emphasis placed on achieving the highest data rates over the longest...
-
How much work does a supermarket checkout attendant do on a can of soup he pushes 0.600 m horizontally with a force of 5.00 N? Express your answer in joules and kilocalories. 3 . (a) Calculate the...
-
Suppose in its income statement for the year ended June 30, 2022, The Clorox Company reported the following condensed data (dollars in millions). Salaries and wages expenses$460 Research and...
-
Refer to the charging network of Fig. 17.13. a. Determine the dc level of the full-wave rectified signal if a 1: 1 transformer is employed. b. If the battery in its uncharged state is sitting at 11...
-
A statistical study shows that the fraction of television sets of a certain brand that are still in service after x years is given by f (x) = e-0.15x. (a) What fraction of the sets are still in...
-
Write a GUI application that allows the user to look up an employee in the Personnel database you created in Programming Challenge 6. The user should be able to change any of the employees...
-
What is metadata? What is result set metadata? When is result set metadata useful?
-
Write a SELECT statement that will return the TradingSymbol column only from the rows where SellingPrice is greater than PurchasePrice, and NumShares is greater than 100.
-
SkyChefs, Incorporated, prepares in-flight meals for a number of major airlines. One of the company's products is grilled salmon with new potatoes and mixed vegetables. During the most recent week,...
-
Tentacle Television Antenna Company provided the following manufacturing costs for the month of June. Direct labor cost $132,000 Direct materials cost 84,000 Equipment depreciation (straight-line)...
-
At the beginning of the year, Vendors, Inc., had owners' equity of $48,875. During the year, net income was $5,275 and the company paid dividends of $3,775. The company also repurchased $7,625 in...
Study smarter with the SolutionInn App