The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
Hi! I need some help with this assignment. I've attached a blank document and need for it to be filled out. The only thing I've included is my name at the top. Thank you for your help in advance!
Â
Name: Samuel GastelWeek 7 iLab—Sales TaxTCO 3: Given a simple problem, design and desk-check a solution algorithm requiring a modulardesign that is expressed in terms of pseudocode or program notes, input-process-output (IPO) analysis,and flow chart.TCO 7:Given a program with logic errors that is intended as a soluTon to a simple problem, employdebugging diagnosTcs to remove and correct the errors.TCO 8: Given a more complex problem, develop a complete solution that includes a comprehensivestatement of the problem, complete program design, and program documentation.ScenarioYour algorithm will write two functions called ComputeTotal( ) and ComputeTax( ).ComputeTotal( ) will receive the quantity of items purchased, and the unit price of each item.It will return the total sales (quantity times price).ComputeTax( ) will receive total sales as a number and the state as a string and return theamount of tax depending on the state.NJrequires 7% tax,FLrequires 6% tax, andNYhas 4% tax.The main program will ask for the name of the customer and read the name in a variablecalledname.It will also ask for one of the three states listed above. It will ask for the numberof items sold and the unit price of the item.Main will then call ComputeTotal( ), passing the quantity and unit price. Main will then callComputeTax( ), passing the state and the amount of sales and receive back the tax. FinallyMain( ) will print out the total sales, the tax amount, and the total with taxes. For example, seebelow.Enter the name of the customer:JackIn which state (NY / NJ / FL) ?NJHow many items were purchased?:3What was the unit price of the items?:1.50The total sales for Jack are $4.50The total with taxes is $4.82Make sure you save the return values into an appropriate variable. Use formattedoutput to make the program more user friendly.Be sure to think about the logic and design first (IPO chart, pseudocode, and flowchart), thencode the C# program.
Â
Attachments:
-----------