Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need every question answered CS 110 Computer Science I Assignment 3-Scanner Class Assigned: March S,2018 Due: March 9th, 2018 30 Points Write a program

I need every question answered
image text in transcribed
CS 110 Computer Science I Assignment 3-Scanner Class Assigned: March S,2018 Due: March 9th, 2018 30 Points Write a program that will ask the user to enter the amount of a purchase. The program should then compute the state and county sales tax. Assume the state sales tax is 4 percent and the county sales tax is 2 percent. The program should display the amount of the purchase, the state sales tax, the county sales tax, the total sales tax, and the total of the sale (which is the sum of the amount of purchase plus the total sales tax). Hint: Use the value 0.02 to represent 2 percent, and 0.04 to represent 4 percent I. Write a program that asks the user to enter three test scores. The program should display each test score, as well as the average o f the scores. 2. An electronics company sells circuit boards at a 40 percent profit. If you know the retail price of a circuit board, you can calculate its profit with the following formula: 3. Profit- Retail price x 0.4 Write a program that asks the user for the retail price o fa circuit board, calculates the amount of profit earned for that product, and displays the results on the screen Write a program that computes the tax and tip on a restaurant bill. The program should ask the user to enter the charge for the meal. The tax should be 6.75 percent of the meal charge. 4. The tip should be 15 percent of the total after adding the tax. Display the meal charge, tax amount, tip amount, and total bill on the screen 5. A soft drink company recently surveyed 12,467 of its customers and found that approximately 14 percent of those surveyed purchase one or more energy drinks per week. Of those customers who purchase energy drinks, approximately 64 percent of them prefer citrus flavored energy drinks. Write a program that displays the following: . The approximate drinks per weck The approximate number o f customers in the survey who prefer citrus-flavored energy drinks. number of customers in the survey who purchase one or more energy

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DB2 11 The Database For Big Data And Analytics

Authors: Cristian Molaro, Surekha Parekh, Terry Purcell, Julian Stuhler

1st Edition

1583473858, 978-1583473856

More Books

Students also viewed these Databases questions

Question

a sin(2x) x Let f(x)=2x+1 In(be)

Answered: 1 week ago