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% (3 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...
-
In deep space, sphere A of mass 20kg is located at the origin of an x axis and sphere B of mass 10 kg is located on the axis at x = 0.80 m. Sphere B is released from rest while sphere A is held at...
-
You need to understand the approach described in question 3 in More Genetic TIPS before answering this question. A muscle-specific gene was cloned and then subjected to promoter bashing. As shown...
-
The financial results for the past two years for Ornamental Iron, a division of Iron Foundry Company, follow: Required 1. Compute the division's profit margin, asset turnover, and return on...
-
Mary, Shannon, and Anika each invested $9,000, $25,000, and $18,000, respectively, into a business. a. Calculate their investment ratio reduced to the lowest terms. 0 : 0 : 0
-
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?
-
During 2011, the following transactions were recorded by the Baton Rouge Community Hospital, a private-sector, not-for-profit institution. 1. Gross charges for patient services, all charged to...
-
The year-end trial balance for Liz's Volleyball Warehouse shows a credit balance of $450,000 for Sales and a debit balance of $8,250 for Sales Returns and Allowances. Based on prior years, Liz has...
-
When a customer returns merchandise and the retailer agrees to give a full refund, a. Sales is debited for the amount of the sale excluding the sales tax. b. Sales Returns and Allowances is debited...
-
Samantha Dickerson is the manager for the cardiac department at Jefferson Medical Center. Every year she must figure out operating expenses for equipment and salaries for the cardiac department's...
-
Rephrase. I am a new member at FWA, and member of the ME committee. The president-elect Albana Theka has forwarded our committee your email with regard to the Financial Literacy workshop. I would...
-
Match the financial term with its proper definition. Question 35 options: A) Budget itemized forecasts of a company's income, expenses, and capital needs B) Financial ratios written report that...
-
Refer to RE6-1. Grider Company also has Division B. For the current year, Division B had revenues of $29,000, profit (pretax) of $9,600, and year-end assets of $53,000. Determine whether Division B...
-
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.
-
Think about some of your own workplace experiences (I worked at a government summer camp) and discuss the extent to which these modern, complex organizations are hierarchical and bureaucratic in...
-
Karin's manager asked that she develop a fishbone diagram regarding the increase in patient falls seen on the unit. What is the fishbone diagram used to demonstrate?
-
Organizations are systems of "control" that each of us will find ourselves engaged with for our entire work life. Even at dear old PSU you see elements of that control everywhere you look. At our...
Study smarter with the SolutionInn App