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...
-
Kimbell Manufacturing began operations five years ago. On August 13, 2008, a fire broke out in the warehouse destroying all inventory and many accounting records relating to the inventory. The...
-
On December 31, 2020, Millers Grocery Inc. had a 10 -year, \(7 \%\) note payable balance of \(\$ 100,000\). The note payable was originally issued on June 30, 2011. The company will issue its...
-
Matlock Company uses a perpetual inventory system. Its beginning inventory consists of 50 units that cost $34 each. During June, the company purchased 150 units at $34 each, returned 6 units for...
-
Problem 8-5 (IAS 1) 1. The major financial statements include all, except a. Statement of financial position b. Statement of changes in financial position c. Statement of comprehensive income d....
-
A store maintains data on customers, products and purchase records in three tables: CUSTOMER, PRODUCT, PURCHASE. The store manager wants to know which product is on its maximum discount for each...
-
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
-
The taking of someones property against that persons will under threat of bodily harm. a. arson b. bribery c. burglary d. extortion e. felony f. forgery g. misdemeanor h. perjury i. robbery j....
-
Early in 2022, Marigold Corp. switched to a just-in-time inventory system. Its sales and inventory amounts for 2021 and 2022 are shown below. 2021 2022 Sales revenue $3,330,000 $3,850,000 Cost of...
-
CVP analysis is useful in examining total costs, along with fixed and variable costs. CVP analysis illuminates how changes in assumptions about cost behavior and the relevant range in which those...
-
Discuss Ritzter's "McDonaldization of Society." How have you witnessed or experienced this phenomenon? Discuss some benefits and drawbacks of "McDonaldization." In your answer consider, who benefits...
-
Practice Problem 13.1 Let's begin with a simple calculation of the weight of air using density. Find the mass of air and its weight in a living room that has a 3.5m x 4.0m floor and a ceiling 2.7 m...
-
15.1 Consider the following variation on the small-world model. Again we have a ring of n vertices in which each is connected to its c nearest neighbors, where is even. And again a shortcut is added...
-
1. Assuming Anson decided to charge barrel costs (but not warehousing and aging costs) to inventory, what 2012 income statement and balance sheet items would change, and what would the new amounts...
-
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?
-
Ohmic materials have a resistance R that is dependent on current I. Group of answer choices True False
-
Refer to Figure 15: Figure 15: Landing gear circuit. The No. 7 wire is used to Group of answer choices close the UP indicator light circuit when the landing gear is retracted. close the PUSH-TO-TEST...
-
Plan and carry out an investigation using the simulation to determine if the initial speed at which the pumpkin is launched appears to have an affect on the total acceleration. Group of answer...
Study smarter with the SolutionInn App