Write a program that allows the user to input a total dollar amount for an online shopping
Question:
Write a program that allows the user to input a total dollar amount for an online shopping order and computes and outputs the shipping cost based on the following schedule:
Transcribed Image Text:
Order Total Ship within USA Ship to Canada Less than $50.00 $6.00 $8.00 $50.01-$100.00 $9.00 $12.00 $100.01-$150.00 $12.00 $15.00 Over $150.00 Free Free
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 75% (12 reviews)
include using namespace std int main inttotalCost cout Enter total cost cin tota...View the full answer
Related Book For
Question Posted:
Students also viewed these Computer science questions
-
Write a program that allows the user to enter time in seconds in the text field and press the Enter key to count down the seconds, as shown in Figure 16.45d. The remaining seconds are redisplayed...
-
Create a program that allows the user to input a list of first names into one array and last names into a parallel array. Input should be terminated when the user enters a sentinel character. The...
-
Write a program that allows the user to enter his or her name. The program should output a username for entry into a website. The user should be prompted to enter a first name, middle initial, and...
-
How would one do the following in excel? PROJECT STEPS Donnie Cruz is a finance assistant for Oval Lake Hospital in south Florida. His current project is to format departmental data for the years...
-
The steering control of a modern ship may be represented by the system shown in Figure P4.15 [16, 20]. (a) Find the steady-state effect of a constant wind force represented by Td(s) = 1/s for K = 10...
-
Question 1 : 02/DevelopmentalMilestonesEYLFandNQS.pdf research the 5 areas of development in early access the following link https://www.acecqa.gov.au/sites/default/files/2018- childhood and write...
-
The journal entry for the purchase of $900 of inventory on account is as follows: DATE ACCOUNTS POST REF. DR. CR. a. Cost of Goods Sold 900 900 9 b. C. Accounts Payable Inventory Accounts Payable...
-
Jan, Kim, and Lee announce plans to liquidate their partnership immediately. The assets, equities, and profit and loss sharing ratios are summarized as follows. The other assets are sold for...
-
-2 20 3 6 Use the horizontal and vertical line tests to determine if the graph is of a one-to-one function: -3-2 -2 -1 1 2 2 3 4 5 6 3
-
T-Mobile is a mobile network operator headquartered in Bonn, Germany. The company has enlisted your help as a consultant to develop and test a model on the determinants of subscriber churn in the...
-
Replace the blank with one of the following words: arithmetic, relational, or logical. OR is a(n) __________ operator
-
Replace the blank with one of the following words: arithmetic, relational, or logical. NOT is a(n) __________ operator
-
Explain what an increase in the depreciation rate, d, means. Using a graph like Figure 11-3, explain the effect of an increase in the depreciation rate on the steady-state capital-labor ratio and...
-
What legal and ethical considerations must be taken into account when writing memos? Discuss how to handle confidential information and the implications of record-keeping.
-
Suppose that Betty's Beads is a typical firm operating in a perfectly competitive market. Currently Betty's MR = $12, MC = $12, ATC = $15, and AVC = $8. Based on this information, we can conclude that
-
How can cultural sensitivity be demonstrated in memos, especially when dealing with a diverse workforce or international colleagues? Provide guidelines for respectful and inclusive language and...
-
1. A 0.25-kg snowball moving at 15 m/s [E] collides and sticks with a 1.9-kg toy truck travelling at 2.8 m/s [W]. Calculate the velocity of the snowball-truck system after the collision. [3 marks] 2....
-
Discuss the reason(s) the Fed uses the discount window and why the Fed does not use the discount window as a tool to affect the money supply.
-
In Figure 10-2, if the economy acquires a larger amount of capital goods in the current year, does a larger or smaller onward shift in the production possibilities curve result? Does the LRAS curve...
-
An investor sells a European call on a share for $4. The stock price is $47 and the strike price is $50. Under what circumstances does the investor make a profit? Under what circumstances will the...
-
We send a voice signal from a microphone to a recorder. Is this baseband or broadband transmission?
-
A periodic composite signal contains frequencies from 10 to 30 KHz, each with an amplitude of 10 V. Draw the frequency spectrum.
-
Is the frequency domain plot of an alarm system discrete or continuous?
-
What is Preferred Stock? Discuss the characteristics of Preferred Stock over Common Stock. MINIMUM ONE PAGE REQUIREMENT. 2. What are Stock Options? Discuss the TWO primary reasons why corporations...
-
If your organization was given $10,000 for digital marketing for a quarter (3 months), how would you spend it?
-
For the following function, list the intervals where f(x) is concave up and where it is concave down. Find any points of inflection. Do NOT use a graph to answer the question. f(x)=3x+2x-12x+5
Study smarter with the SolutionInn App