Keep in mind I am completely new to this. The output should look something like the following: Product Total Information (Values will have to be passed and returned). Main will then display this information on the screen like the sample below. Sales tax is only based on the subtotal and not on shipping or handling. The third function calculates sales tax at 6% and returns this information to main. Handling is a flat rate of $2 for orders less than $100. For example, the shipping for a $10 order is $1. The second function calculates the shipping cost and handling cost then returns this information to main. Subtotal must be at least $1 and no more than $9,999. The first function asks the user to enter the subtotal of their order and returns this information to main. This should have 3 functions in addition to main. Here's the description: Write an application that calculates the total cost for a product including shipping, handling and tax. I am trying to make a shipping and handling program that uses functions but I am stuck. I've written 4 basic programs and now I am learning functions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |