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 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