Question: Using flowgorithm, complete a flowchart that is equivalent to the pseudocode program 6-7. Program 6-7 1 I Global constant for the discount percentage 2 Conetant

Using flowgorithm, complete a flowchart that is equivalent to the pseudocode program 6-7.
 Using flowgorithm, complete a flowchart that is equivalent to the pseudocode

Program 6-7 1 I Global constant for the discount percentage 2 Conetant Real DISCOUNT PERCENTAGE 0.20 // The nain module 1s the program'e etarting point 5 Hodule main() II Local variablee to hold regular and sale prices. Declare Real regularPrice. salePrice 9 Cet the 1tom's regular price 10 Set regularPrice -gotRegularPrice() 12 1 Calculate the sale price 13 Set salePrice regularPrice discount(regularPrice) 14 15 / Display the sale price. 16 Dsplay "The sale price s ,salePrice 17 End Hodule 18 19 The getRegularPrice functlon prompts the 20 uer to enter an item's regular price and 21 11 returns that value a a Real 22 Function Real get.RegularPrice) 23 Local vartable to hold the price. 24 Declare Real prico 25 26 Cet the regular price 2 Daplay "Enter the 1tom'a regular price- 28 Iput price 29 30 I Roturn tho rogular price 31 Return price 32 End Function 34 1 The discount functlon accepts an 1tem's price 35 // as an argunent and returns the amount of the 36 I1 discount specified by DISCOUNT PERCENTAGE 37 Function Real discount(Real price) 38 Return price DISCOUNT PERCENTAGE 39 End Function Program Output (with Input Shown in Bold) Enter the itom's regular price 100.00 [Enter The sale price 1s $80

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!