A store sells all items for $1. Customers buying 10 or more items receive a 5%...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
A store sells all items for $1. Customers buying 10 or more items receive a 5% discount. Additionally, there is 7.5% sales tax. a) Write a program that prompts the user for the number of items purchased and calculates the total cost before and after tax. Here is an example run: Enter number of items: 11 Gross cost: 11.0 Discount: 0.55 Net cost: 10.45 Tax: After tax: 0.78 11.23 Write a program that prompts the user for their height (in inches) and weight (in pounds). The program should calculate BMI and then display one of three messages: • the user is within the healthy BMI range (if their BMI is between 18.5 and 24.9) • the number of pounds needed to lose in order to be at the top of the healthy BMI range (if their BMI is above 24.9) • the number of pounds needed to gain in order to be at the bottom of the healthy range (if their BMI is below 18.5) Here is an example run: Enter your height: 68 Enter your weight: 165 Weight to lose for healthy BMI: 7 pounds An intercampus shuttle can take one of two routes. For each run, a dispatcher checks what the current traffic conditions are to find out the average speed on each route and determine which route the shuttle driver should take. Write a program that: • prompts for four inputs: route 1's distance in miles and speed in miles per hour as well as route 2's distance and speed. • calculates the time each route would take • determines and displays which route is faster and how long it will take in minutes A store sells items priced according to the following table: # of items 1-19 20-49 50-99 100 or more Cost per item $4.75 $4.50 $4.25 $4.00 For example, an order for 25 items would cost (25 x $4.50) = $112.50 Write a program that takes as input the number of items, determines the cost per item, and displays the cost per item and total order cost. US federal income tax is based on a schedule of tax rates depending on income. For example, for those with a filing status of single, the following table applies: Income Up to $9,875 $9,876-$40,125 $40,126-$85,525 Income Tax 10% of income $986 +12% of income over $9,875 $518,401 or more $4,618 + 22% of income over $40,125 $85,526-$163,300 $14,606 + 24% of income over $85,525 $163,301-$207,350 $33,272 + 32% of income over $163,300 $207,351-$518,400 $47,368 + 35% of income over $207,350 $156,235 +37% of income over $518,400 The marginal tax rates are the percentages in the table above. The effective tax rate is the income tax divided by the income. Write a program that prompts for income and calculates and displays the marginal tax rate, effective tax rate, and income tax. A hotel charges a standard rate of $100 per night. For platinum members (customers who have previously stayed 20 nights or more), the hotel offers a discounted price of $90 per night. Also, for platinum members staying 5 or more nights, 1 night is free. For example, a platinum member staying 5 nights would be charged $90 for 4 nights ($360). Write a program that prompts the user for the number of nights for their stay and whether they are a platinum status member and then determines the cost for their stay. Also, if they are a platinum member and their stay is 5 or more nights, indicate this in a note. Additionally, if the customer is not a platinum member and their stay was 3 or more nights, display a note asking them to consider becoming a platinum member. Here is an example run: # of nights: 5 Platinum member (y/n)? y Charge = $ 360 Note: charges discounted for one free night A store sells all items for $1. Customers buying 10 or more items receive a 5% discount. Additionally, there is 7.5% sales tax. a) Write a program that prompts the user for the number of items purchased and calculates the total cost before and after tax. Here is an example run: Enter number of items: 11 Gross cost: 11.0 Discount: 0.55 Net cost: 10.45 Tax: After tax: 0.78 11.23 Write a program that prompts the user for their height (in inches) and weight (in pounds). The program should calculate BMI and then display one of three messages: • the user is within the healthy BMI range (if their BMI is between 18.5 and 24.9) • the number of pounds needed to lose in order to be at the top of the healthy BMI range (if their BMI is above 24.9) • the number of pounds needed to gain in order to be at the bottom of the healthy range (if their BMI is below 18.5) Here is an example run: Enter your height: 68 Enter your weight: 165 Weight to lose for healthy BMI: 7 pounds An intercampus shuttle can take one of two routes. For each run, a dispatcher checks what the current traffic conditions are to find out the average speed on each route and determine which route the shuttle driver should take. Write a program that: • prompts for four inputs: route 1's distance in miles and speed in miles per hour as well as route 2's distance and speed. • calculates the time each route would take • determines and displays which route is faster and how long it will take in minutes A store sells items priced according to the following table: # of items 1-19 20-49 50-99 100 or more Cost per item $4.75 $4.50 $4.25 $4.00 For example, an order for 25 items would cost (25 x $4.50) = $112.50 Write a program that takes as input the number of items, determines the cost per item, and displays the cost per item and total order cost. US federal income tax is based on a schedule of tax rates depending on income. For example, for those with a filing status of single, the following table applies: Income Up to $9,875 $9,876-$40,125 Income Tax 10% of income $986 +12% of income over $9,875 $40,126-$85,525 $4,618 + 22% of income over $40,125 $85,526-$163,300 $14,606 +24% of income over $85,525 $518,401 or more $163,301-$207,350 $33,272 + 32% of income over $163,300 $207,351-$518,400 $47,368 + 35% of income over $207,350 $156,235 +37% of income over $518,400 The marginal tax rates are the percentages in the table above. The effective tax rate is the income tax divided by the income. Write a program that prompts for income and calculates and displays the marginal tax rate, effective tax rate, and income tax. A hotel charges a standard rate of $100 per night. For platinum members (customers who have previously stayed 20 nights or more), the hotel offers a discounted price of $90 per night. Also, for platinum members staying 5 or more nights, 1 night is free. For example, a platinum member staying 5 nights would be charged $90 for 4 nights ($360). Write a program that prompts the user for the number of nights for their stay and whether they are a platinum status member and then determines the cost for their stay. Also, if they are a platinum member and their stay is 5 or more nights, indicate this in a note. Additionally, if the customer is not a platinum member and their stay was 3 or more nights, display a note asking them to consider becoming a platinum member. Here is an example run: # of nights: 5 Platinum member (y/n)? y Charge = $ 360 Note: charges discounted for one free night A store sells all items for $1. Customers buying 10 or more items receive a 5% discount. Additionally, there is 7.5% sales tax. a) Write a program that prompts the user for the number of items purchased and calculates the total cost before and after tax. Here is an example run: Enter number of items: 11 Gross cost: 11.0 Discount: 0.55 Net cost: 10.45 Tax: After tax: 0.78 11.23 Write a program that prompts the user for their height (in inches) and weight (in pounds). The program should calculate BMI and then display one of three messages: • the user is within the healthy BMI range (if their BMI is between 18.5 and 24.9) • the number of pounds needed to lose in order to be at the top of the healthy BMI range (if their BMI is above 24.9) • the number of pounds needed to gain in order to be at the bottom of the healthy range (if their BMI is below 18.5) Here is an example run: Enter your height: 68 Enter your weight: 165 Weight to lose for healthy BMI: 7 pounds An intercampus shuttle can take one of two routes. For each run, a dispatcher checks what the current traffic conditions are to find out the average speed on each route and determine which route the shuttle driver should take. Write a program that: • prompts for four inputs: route 1's distance in miles and speed in miles per hour as well as route 2's distance and speed. • calculates the time each route would take • determines and displays which route is faster and how long it will take in minutes A store sells items priced according to the following table: # of items 1-19 20-49 50-99 100 or more Cost per item $4.75 $4.50 $4.25 $4.00 For example, an order for 25 items would cost (25 x $4.50) = $112.50 Write a program that takes as input the number of items, determines the cost per item, and displays the cost per item and total order cost. US federal income tax is based on a schedule of tax rates depending on income. For example, for those with a filing status of single, the following table applies: Income Up to $9,875 $9,876-$40,125 $40,126-$85,525 Income Tax 10% of income $986 +12% of income over $9,875 $518,401 or more $4,618 + 22% of income over $40,125 $85,526-$163,300 $14,606 + 24% of income over $85,525 $163,301-$207,350 $33,272 + 32% of income over $163,300 $207,351-$518,400 $47,368 + 35% of income over $207,350 $156,235 +37% of income over $518,400 The marginal tax rates are the percentages in the table above. The effective tax rate is the income tax divided by the income. Write a program that prompts for income and calculates and displays the marginal tax rate, effective tax rate, and income tax. A hotel charges a standard rate of $100 per night. For platinum members (customers who have previously stayed 20 nights or more), the hotel offers a discounted price of $90 per night. Also, for platinum members staying 5 or more nights, 1 night is free. For example, a platinum member staying 5 nights would be charged $90 for 4 nights ($360). Write a program that prompts the user for the number of nights for their stay and whether they are a platinum status member and then determines the cost for their stay. Also, if they are a platinum member and their stay is 5 or more nights, indicate this in a note. Additionally, if the customer is not a platinum member and their stay was 3 or more nights, display a note asking them to consider becoming a platinum member. Here is an example run: # of nights: 5 Platinum member (y/n)? y Charge = $ 360 Note: charges discounted for one free night A store sells all items for $1. Customers buying 10 or more items receive a 5% discount. Additionally, there is 7.5% sales tax. a) Write a program that prompts the user for the number of items purchased and calculates the total cost before and after tax. Here is an example run: Enter number of items: 11 Gross cost: 11.0 Discount: 0.55 Net cost: 10.45 Tax: After tax: 0.78 11.23 Write a program that prompts the user for their height (in inches) and weight (in pounds). The program should calculate BMI and then display one of three messages: • the user is within the healthy BMI range (if their BMI is between 18.5 and 24.9) • the number of pounds needed to lose in order to be at the top of the healthy BMI range (if their BMI is above 24.9) • the number of pounds needed to gain in order to be at the bottom of the healthy range (if their BMI is below 18.5) Here is an example run: Enter your height: 68 Enter your weight: 165 Weight to lose for healthy BMI: 7 pounds An intercampus shuttle can take one of two routes. For each run, a dispatcher checks what the current traffic conditions are to find out the average speed on each route and determine which route the shuttle driver should take. Write a program that: • prompts for four inputs: route 1's distance in miles and speed in miles per hour as well as route 2's distance and speed. • calculates the time each route would take • determines and displays which route is faster and how long it will take in minutes A store sells items priced according to the following table: # of items 1-19 20-49 50-99 100 or more Cost per item $4.75 $4.50 $4.25 $4.00 For example, an order for 25 items would cost (25 x $4.50) = $112.50 Write a program that takes as input the number of items, determines the cost per item, and displays the cost per item and total order cost. US federal income tax is based on a schedule of tax rates depending on income. For example, for those with a filing status of single, the following table applies: Income Up to $9,875 $9,876-$40,125 Income Tax 10% of income $986 +12% of income over $9,875 $40,126-$85,525 $4,618 + 22% of income over $40,125 $85,526-$163,300 $14,606 +24% of income over $85,525 $518,401 or more $163,301-$207,350 $33,272 + 32% of income over $163,300 $207,351-$518,400 $47,368 + 35% of income over $207,350 $156,235 +37% of income over $518,400 The marginal tax rates are the percentages in the table above. The effective tax rate is the income tax divided by the income. Write a program that prompts for income and calculates and displays the marginal tax rate, effective tax rate, and income tax. A hotel charges a standard rate of $100 per night. For platinum members (customers who have previously stayed 20 nights or more), the hotel offers a discounted price of $90 per night. Also, for platinum members staying 5 or more nights, 1 night is free. For example, a platinum member staying 5 nights would be charged $90 for 4 nights ($360). Write a program that prompts the user for the number of nights for their stay and whether they are a platinum status member and then determines the cost for their stay. Also, if they are a platinum member and their stay is 5 or more nights, indicate this in a note. Additionally, if the customer is not a platinum member and their stay was 3 or more nights, display a note asking them to consider becoming a platinum member. Here is an example run: # of nights: 5 Platinum member (y/n)? y Charge = $ 360 Note: charges discounted for one free night
Expert Answer:
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
Solve the equation. (Hint: Use the substitution of variable method.) K 2(x-1)2-3(x-1)-9=0
-
31% of American adults surveyed stated that giving up their phone for a day would be more difficult than giving up their significant other. In 2012, the United States population over the age of 18...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
Consider the case of J polluters and with abatement cost functions C j (e j ) and one pollution victim. Abatement costs are ordered from highest to lowest such that C 1 (e 1 )>C 2 (e 2 )>>C J (e J )....
-
Use the information from Exercise 16 to estimate cos 69o correct to five decimal places.
-
The final set of questions will deal with the automobile exposures in the household, including information about all licensed drivers, vehicles, and their uses. parts should also contain an...
-
Table B. 11 presents 38 observations on wine quality. a. Select four observations at random from this data set, then delete these observations and fit a model involving only the regressor flavor and...
-
The following is an alphabetical list of Tse's Tater Tots' adjusted account balances at the end of the company's fiscal year on December 31, 2014: Additional information: 1. Tse's Tater Tots uses a...
-
16 ! Required information 2.77 points eBook Print References [The following information applies to the questions displayed below.] Chuck Wagon Grills, Incorporated, makes a single product-a handmade...
-
Lunatics, an e-commerce sports company wants to buy Rowdy Trading Cards at a cost of $504 million. Rowdy will operate for 20 years. They expect annual cash flows from operations to be $70.1 million...
-
The critical path for a project is: a. the sum of the shortest path of project activities b. the sum of the longest path of project activities c. an accumulation of random project activities d. the...
-
How do you convince teams and leadership to think in terms of revenue growth and not pure costs?
-
Who oversees developing the value engineering mindset when most of the work is very technical in nature?
-
What are the trends in digital transformations?
-
What are some of the challenges born of organizational culture that you can think of?
-
How prepared are organizations in regard to market segmentation in light of digital transformation on industrial markets to determine the potential acquisition of novel industrial smart services?
-
[8 points.] Find the solutions for the following differential equations and initial value problems. If a problem can be solved both by methods for linear equations and for separable equations, solve...
-
After looking at the resources, explain what a spirit image is. Why might looking at a god and/or a human in terms of their spirit be helpful if you want to eliminate some of the divisions between...
-
During the 2012 tax year, Irma incurred the following expenses: Union dues..............................................................$275 Tax return preparation...
-
In 2012, Margaret and John Murphy are married taxpayers who file a joint tax return with AGl of $25,000. During the year they incurred the following expenses: Hospitalization insurance...
-
Matthew borrows $250,000 to invest in bonds. During 2012, his interest on the loan is $30,000. Matthew's interest income from the bonds is $10,000. This is Matthew's only investment income. a....
-
Use the Internet to access Home Depot's most recent annual report. a. What evidence did you find that Home Depot continues to rely on present worth analysis in its corporate decision making? b. Does...
-
Reconsider the results you obtained for the Allister Company in Problem 4. Assume that Allister's uses the WACC for MARR. a. For each case (a through e), use the estimation equation given in Equation...
-
GeoWorld Systems uses a subset of the following questions during the interview process for new engineers. For each of the following cases, determine if "the project" or "do nothing" is preferred. The...
Study smarter with the SolutionInn App