Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

it was a big question so I put it in a frame! please solve thanks Question) You are asked to write a FORTRAN program making

image text in transcribed

it was a big question so I put it in a frame! please solve thanks

Question) You are asked to write a FORTRAN program making a discount promotion chart for a souvenir store in Niagara-on-the Lake, Ontario. Your discount chart should have three columns. The first column lists the items' original price tag in CAD, and the second & third column provide the discounted prices after tax respectively in CAD and USD. All original price tags of the store are ended in .49 or .99. Your program should recelve the maximum and minimum price tags, discount percentage (should be applied to original price tag), and CAD to USD exchange rate via keyboard entry. Hint intrinsic functions abs and mod could be helpful. Look at the following sample run: by running your program, the following sentences, questions, and results should be printed accordingly on the screen (Green is keyboard entry). Extra spaces in your output. are fine. Those are due to the use of free formatting for print command. Output formatting will be covered in the future lectures. Note: Your program should be smart enough to: 1. Check whether the minimum and maximum price tags are valid. In case of a wrong entry program should ask for a correct entry repeatedly, see the provided example below for the error massages. 2. Check Whether the entered discount percentage is valid or not. In case of a wrong entry program should ask for a correct entry repeatedly. see the provided example below for the error massages. 3. Oheck Whether the entered exchange rate is valid or not. In case of a wrong entry program should ask for a correct entry repeatedly. see the provided example below for the error massages. 4- It is ok if the number of decimal places in your table is less/more than the provided sample results This program creates n discount chart Cor the store. HSItGsI is accounted 134. You can copy-b-paste the chart from the sereen to print and post. One or both price-tags are not valid values. You should provide the store price range, and most curtent CAD to USD exchange rate It you are not ready yet press controltC to exit. Enter the title (maximum 85 chazactezs between quocations) of the discount chart. Dlease enter the minimum and maximum price tags in store using comea. (Hote: price-tags must end in 49 or 99 , Tor exarple: 1.95,14,99 ) One or boch price-tags are not valid values. Note that price-tags must be poritive and end in .49 or 99 Please re-enter the minimum and maximue price sags in store. One or both price-tags are not valid values. Mote that ptice-tags must be positsve and end in .49 or .99. Please re-enter the minimur and maximum price tags in store. Please enter the discount percentage (a value between 0 to 100 ) Note do not use i symbol otherwite execucton exits. The discount percentage is not a valid value Please te-enter a value becueen 0 to 100 Dlease entez the most current CAD to 03D exchange zate The exchange tate is not a valad value Wote that exchange zate nust be a positive value Please re-enter the nost eurrent CHD to USD exchange race. copy-b-paste the chart (provided between the dash-1ines) Note that price-tags must be positive and end in .49 or .59. Please re-enter the minimum and maximum price tags in store. One or both price-tags are not valid values. Hote that price-tags must be positive and end in 49 or 99. Please re-enter the miniman and maximun price tags in store. Please enter the discount percentage (a value between 0 to 100 ) Hote do not use 4 symbol otherwife execution exits. The discount percentage is not a valid value. Please te-enter a value between 0 to 100 Please enter the most current CAD to USD exchange rate: The exchange rate is not a valid value Note that exchange rate must be a positive value Please re-enter the most current CAD to DSD exchange rate. copy-b-paste the chart (provided between the dash-1ines)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

=+employee to take on the international assignment?

Answered: 1 week ago

Question

=+differences in home- and host-country costs of living?

Answered: 1 week ago