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:
![A store sells all items for $1. Customers buying 10 or more items receive a 5% discount. Additionally, there](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2023/09/651540f994f13_1695891698128.jpg)
![Write a program that prompts the user for their height (in inches) and weight (in pounds). The program should](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2023/09/651541097a555_1695891713519.jpg)
![An intercampus shuttle can take one of two routes. For each run, a dispatcher checks what the current traffic](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2023/09/651541188b0b2_1695891729363.jpg)
![A store sells items priced according to the following table: # of items 1-19 20-49 50-99 100 or more Cost per](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2023/09/6515412f02361_1695891751822.jpg)
![US federal income tax is based on a schedule of tax rates depending on income. For example, for those with a](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2023/09/6515414f3e009_1695891784033.jpg)
![A hotel charges a standard rate of $100 per night. For platinum members (customers who have previously stayed](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2023/09/6515416ce6fe9_1695891813695.jpg)
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
-
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 )....
-
How would the following factors affect equilibrium in the market for labor? a. An increase in the demand for the product that a firm is producing b. The use of a new technology that halves the time...
-
Create the fictional healthcare enterprise. You can choose any healthcare service. Examples are a dental service, doctor's office, healthcare technical support, or a hospital organization. describing...
-
The technique of standard costing may not be applicable in the case of (a) Large concerns (b) Small concerns (c) Transport (d) Education
-
One item is omitted in each of the following summaries of balance sheet and income statement data for four different corporations, East, North, South, and West. Determine the missing amounts,...
-
Otool Incorporated is considering using stocks of an old raw material in a special project. The special project would require all 150 kilograms of the raw material that are in stock and that...
-
Watershed is a media services company that provides online streaming movie and television content. As a result of the competitive market of streaming service providers, Watershed is interested in...
-
Your firm needs a machine which costs $250,000, and requires $40,000 in maintenance for each year of its 3 year life. After 3 years, this machine will be replaced. The machine falls into the MACRS...
-
Why do you think diversity is important to organizations and what can a do to increase diversity in leadership? What is Servant Leadership? How can you apply this in your life? What is effective team...
-
How do you envision overcoming any potential resistance or skepticism from your colleagues in the vet tech field as you introduce these transformative strategies, and what steps do you think will be...
-
Managers encourage employees to do misleading activities such as speak falsehood and deceive customers which is clearly visible in the statement in the case " Sales are everything" wherein an...
-
Your Topic is "Why do you think there are so few people who succeed at both management and leadership? Is it reasonable to believe someone can be good at both?" Locate two to three articles about...
-
Explain the various benefits associated with professional networking. Also, expand on your answers how those would benefit you personally. PLEASE DO FAST AND CORRECT need correct answer
-
Factor 1 Factor 2 Factor 3 Period 1 2 Portfolio A 1.06% 7.66 0.01% -0.93% -1.70% Portfolio B 0.00% 6.67 5.99 6.87 0.33 -1.24 3 4.93 4.76 1.88 -1.47 0.38 4 1.21 0.34 0.59 0.18 5 -1.99 -3.70 4.21 -1.66...
-
The Dow Jones Industrial Average reached a high of $ 7801.63 on December 29, 1997. Recall from Example 18.4 that it reached a high of $ 1003 on November 14, 1972. The Consumer Price Index for...
-
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....
-
The efficient market hypothesis suggests that it is difficult to outperform the market on a consistent basis. Are there possible exceptions to the hypothesis that concern the valuation of common...
-
How might a Daily Spending Diary result in wiser consumer buying and more saving for the future?
-
Jamie Lee sat down with a salesperson to discuss a new vehicle and its $24,000 purchase price. Jamie Lee has heard that no one really pays the vehicle sticker price. What guidelines may be suggested...
![Mobile App Logo](https://dsd5zvtm8ll6.cloudfront.net/includes/images/mobile/finalLogo.png)
Study smarter with the SolutionInn App