QUESTION2.Energy Drink Consumption 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 number of customers in the survey who purchase one or more energy drinks per week The approximate number of customers in the survey who prefer citrus-flavored energy drinks.
Q: XYZ Company, LC uses a program to manage the information of their employees. The program gets the…
A: IPO model(input process output)---->is used for describing the structure of an information…
Q: Celsius to Fahrenheit: Write a program that converts Celsius temperatures to Fahrenheit…
A: Step 1:- Program Approach:- (i)Include two header file (ii) iomanip header file is used for fixed()…
Q: The company discounted used cars pays their employees according to this chart: 250$ per months plus…
A: given: salary is according to this: 250$ per months plus 50$ per car sold if sales> 10, bonus 5%…
Q: Introduction to Python programming
A: # prompt the user to enter the number of packages purchased. number = int(input("Enter the number of…
Q: QUESTION2.Energy Drink Consumption A soft drink company recently surveyed 12,467 of its customers…
A: public class Main { private double customers; private double thoseThatPurch;…
Q: (Average speed in miles) Assume that a runner runs 15 kilometers in 50 minutesand 30 seconds. Write…
A: code: //class definition public class Main { //main method public static void main(String[] args)…
Q: urbo c++ code for The utilities commission has decided that the electric company overcharged its…
A: Include necessary header file. In main function declare a integer variable kilowatt and float…
Q: Develop a program to ask the user to enter a number, if the user enters a positive integer, then…
A: - The question is to develop a program for the factorial in a unique way with the provided…
Q: Summary During each summer, John and Jessica grow vegetables in their backyard and buy seeds and…
A: The logic errors in the program are: The formula for the price of the fertilizer per pound where…
Q: C++ Please Create a simple program that asks user to enter their name and displays the name with an…
A: The program creates two character array with maximum size of 10. Then the user is asked to input a…
Q: A parking garage charges a $2.00 minimum fee to park for up to three hours and an additional $0.50…
A: As no programming language is mentioned, it is solved using basic C++
Q: The utilities commission has decided that the electric company overcharged its customer for 2 months…
A: Programming Language Used: C Language C code is as follows: #include <stdio.h> int main(){…
Q: 5.9 (Baggage Counter Charges) A baggage counter charges a $0.50 minimum fee to deposit a bag for up…
A: #include<stdio.h> float determineCharge(float hours){ //function to calculate charge per…
Q: Assuming there are no deposits other than the original investment, the balance in a saving account…
A: I give the code in C++ along with code and output screenshot
Q: "### Exercise 1 ###\n", "\n", "The table presented below gives a final grade based on the amount of…
A: Input number of points received from the user. Check if points less than 500, then set grade as 0.…
Q: (Calculating Credit Limits) Collecting money becomes increasingly difficult during periods of…
A: The above problem will make use of Scanner class defined under java.util package. It I used to take…
Q: Suppose that you work for a beverage company. The company wants to know the optimal cost for a…
A: *As no programming language is mentioned writing this program in c++ #include<iostream>…
Q: C++ One acre of land is equivalent to 43,560 square feet. Write a program that asks the user to…
A: PROGRAM: //Header file #include <iostream> //Using namespace using namespace std;…
Q: Assuming there are no deposits other than the original investment, the balance in a saving account…
A: Since you have not mentioned programing language I'm doing this in Python.
Q: "### Exercise 1 ###\n", "\n", "The table presented below gives a final grade based on the amount of…
A: Algorithm: Algorithm for given problem is: Start print("Enter total points at end of the course:")…
Q: Part F: Honors Diploma Students Qualify for the Honors Diploma if their GPA is 3.6 or higher, OR…
A: Code in python is attached as well as a screenshot.
Q: Optimal Cost of a cylindrical container Suppose that you work for a beverage company. The…
A: Given: We are given a problem where the cylinder container is given with user input volume and…
Q: Parking Charges) A parking garage charges a $2.00 minimum fee to park for up to threehours and an…
A: Lets see the solution.
Q: GET THE C++ CODE 1. A student took four quizzes in a term and would like to compute their average.…
A: The c++ code for the given problem is written below: #include <iostream> // header files…
Q: S. A company provides loans to new college graduates based on the following conditions: The…
A: The above question is answered in step 2 :-
Q: C++ Miles per Gallon A car holds 15 gallons of gasoline and can travel 375 miles before refueling.…
A: Task :- Write a C++ program to calculate miles per gallon. C++ Program :- #include…
Q: 2) for both triangle and diamond, first display a triangle of requested size, and then if the choice…
A: #include <bits/stdc++.h> using namespace std; void instructions(){ cout<<"Firstly…
Q: program for the research data. When a Coffee Shop provide clerk asks for the customer's zip Design…
A:
Q: 3.8: Software Sales A software company sells a package that retails for $99. Quantity discounts are…
A: Since the Programming language is not mentioned in the question, we will answer this question in…
Q: Instructions: Circle T if the statement is true. F if the statement is false, or write the best…
A: Answer to the above question is in step2.
Q: A hotel computes the room price as following: Taxed price = total price x ( 1 + tax rate) • Total…
A: Using scanner class to read input from user.
Q: Salary Calculator Develop a program that will determine the gross pay for each of several employees.…
A: logic:- use a infinite loop , while loop read number of hours(-1 to end) if hours==-1 break…
Q: c++ Energy Drink Consumption A soft drink company recently surveyed 16500 of its customers and…
A: #include<iostream> #include<cmath> using namespace std; int main()…
Q: 4-5 A Girl Scout needs to calculate the total dollar amount of her cookie orders. User input should…
A: Given :- 4-5 A Girl Scout needs to calculate the total dollar amount of her cookie orders. User…
Q: c++ Assuming there are no deposits other than the original investment, the balance in a saving…
A: #include<iostream>#include <math.h>using namespace std;int main(){ double amount = 0,…
Q: C++ program Vs Coding please!! General Crates, Inc. builds custom-designed wooden crates.…
A: According to the information given:- We have to write code in C++ for General Crates, Inc. builds…
Q: Answer this question Write a program that calculates and displays a person’s body mass index…
A: Here language is not mention so we C language to fulfill the question requirement:…
Q: Box Office: A movie theater only keeps a percentage (20%) of the revenue earned from ticket sales.…
A: Step 1:- Program Approach:- (i)Include two header file (ii) iomanip header file is used for setw()…
Q: c++ program create a program that wil ask the user to accept a value of hours and minutes. after…
A: As given, I need to write a C++ program that accept a value of hours and minutes and display the…
Q: uring each summer, John and Jessica grow vegetables in their backyard and buy seeds and fertilizer…
A: Required: During each summer, John and Jessica grow vegetables in their backyard and buy seeds and…
Q: Five Star Retro Video rents VHS tapes and DVDs to the same connoisseurs who like to buy LP record…
A: the requirement is to write a program where the customer will enter the number of videos required on…
Q: Sales Prediction The East Coast sales division of a company generates 58 percent of total sales.…
A: Hey there, I am authorised to answer any one question at a time when there are multiple questions…
Q: Assume that a runner runs 15 kilometers in 50 minutes and 30 seconds. Write a program that displays…
A: #include<iostream> using namespace std; int main(){ int distanceTravelledInKMS=15;…
Q: Car sales commission problem - For each used car a salesperson sells, the commission paid is as…
A: As per our policy, we can answer only one question if want an answer for the second question you can…
Q: Computer skills (Engineering) Functions Exercise (Parking Charges) A parking garage charges a $2.00…
A: #include<iostream> #include<conio.h> #include<iomanip> using namespace std; int…
Q: he body mass index (BMI) is calculated as a person's weight (in pounds) mes 720, divided by the…
A: Algorithm Start w, h, bmi Accept weight in pounds in w accept height in inches in h bmi=( w*720)…
Q: • Amount that must be paid back to the bank • Total overall interest that must be paid • Monthly…
A: Algorithm: Step 1: Start Step 2: Declare variables A , r , t Step 3: Read values for A , r, t Step…
Q: (Parking Charges) A parking garage charges a $2.00 minimum fee to park for up to three hours and an…
A: double calculateCharges(double hours) { double charges = 2.00; if(hours > 3) { charges +=…
Q: 3. The formula for determining compound interest is: A represents the amount to earn; P is the…
A: According to bartleby guidelines we need to answer only one question so i have answered first…
Q: 3. Write a program named Admission for a college’s admissions office. The user enters a numeric high…
A: using System.IO; using System; class Program { static void Main() {…
Note: write a program using scanner method
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
- Question: Party budget planning Prompt the user to enter their current budget and the number of people who need to share a meal. You are ordering food from a restaurant that has two menu items: Tacos $4 Empanadas $3 Calculate and print out all the options of meals where the budget is used entirely(where possible) and each person has an equal number of items to eat. They may eat different things, but everyone gets the same number of food items, e.g. 2 tacos or 1 empanada and 1 taco or 2 empanadas. Hints: Here are some things that might help you in your solution. If total items purchased does not equally divide by the number of diners, then abandon that combination. It may help to calculate the max number of empanadas that the budget can buy and also the max number of tacos that the budget could buy. These can be thought of as upper bounds in your loops. In your solution, keep track of items per person Also, keep track of total number of viable solutions, as that might help you…WEEK7 Costway provide a loan scheme to their staffs. The duration payment (year of installment) is 2 years. The maximum loan is RM10,000. The program that can help the Account Department to calculate the monthly installment. The program should be able to receive inputs from the staff: name, year of installment and the amount of loan in RM. Based on these inputs, the program should therefore be able to calculate the monthly installment. Display the staff's name, year of installment, the amount of loan and the installment. The table for the interest calculation is provided as follows: Year of Amount of Loan installment <2 years (RM) <5,000 5,000 - 10,000 <5,000 5.000 10,000 Interest (%) 2.0 2.5 22 years 1.5 2.0 The formulas for the monthly installment calculation are as follows: Total of Interest = Percent of Interest x Amount of Loan Total Loan with Interest = Amount of Loan + Total of Interest Monthly Installment = Total Loan with Interest/(Year of Installment x 12) %3DSOLVE IN C# Canada Government has announced 250 immigration visa lottery for third world countries. Total number of Application collected 10000, starting from application number 1 to 10000. You are required to write a program for Canadian government to select 250 visa for lottery visa, randomly from the pool of 10000 application and print the application number on screen Note: No input required in this program
- A shop collects the following information from its customers: 1. Full name (first name, last name, and optional middle initial) 2. Address (street name and number, city, zip code, and state) 3. Phone number 4. Email 5. First visit/service date 6. Most recent visit/service date 7. Total amount charged 8. Current balance and description of the last service You are to write a program that allow the shop to manage their customers. The shop needs the following functionalities: 1. Search for a customer by:a. Nameb. Phone numberc. Email (The result of the search would have similar option as in the “List all customers” option below) 2. List all customersa. Select and edit a customer b. Delete a customer 3. Add a new customera. Prompt for appropriate data fields 4. Get account consolidation sheet that shows total charges and total balance of all customers 5. Get the records of the biggest 5 spenders (spend the most) 6. Exit and save all changes (all changes to the customers should be stored…18. Tom and Jerry opened a new lawn service. They provide three types of services: mowing, fertilizing, and planting trees. The cost of mowing is $35.00 per 5,000 square yards, fertilizing is $30.00 per application, and planting a tree is $50.00. Write an algorithm that prompts the user to enter the area of the lawn, the number of fertilizing applications, and the number of trees to be planted. The algorithm then determines the billing amount. (Assume that the user orders all three services.) (9)(Statistics) This is the formula for the standard normal deviate, z, used in statistical applications: z=(X)/ X is a single value. refers to an average value. refers to a standard deviation. Using this formula, you need to write a program that calculates and displays the value of the standard normal deviate when X=85.3,=80,and=4. a. For this programming problem, how many outputs are required? b. How many inputs does this problem have? c. Determine a formula for converting input items into output items. d. Test the formula written for Exercise 7c, using the data given in the problem.
- 4. During each summer, John and Jessica grow vegetables in their backyard and buy seeds and fertilizer from a local nursery. The nursery carries different types of vegetable fertilizers in various bag sizes. When buying a particular fertilizer, they want to know the price of the fertilizer per pound and the cost of fertilizing per square foot. The following program prompts the user to enter the size of the fertilizer bag, in pounds, the cost of the bag, and the area, in square feet, that can be covered by the bag. The program should output the desired result. However, the program contains logic errors. Find and correct the logic errors so that the program works properly. // Logic errors. #include #include using namespace std; int main() { double costs double area; double bagsize; cout > bagsize; cout > cost; cout > area; cout << endl; cout << "The cost of the fertilizer per pound is: $" << bagsize / cost << endl; cout << "The cost of fertilizing per square foot is: $" << area / cost << endl; return 0; }When you borrow money to buy a house, a car, or for some other purpose, you repay the loan by making periodic payments over a certain period of time. Of course, the lending company will charge interest on the loan. Every periodic payment consists of the interest on the loan and the payment toward the principal amount. To be specific, suppose that you borrow $1,000 at an interest rate of 7.2% per year and the payments are monthly. Suppose that your monthly payment is $25. Now, the interest is 7.2% per year and the payments are monthly, so the interest rate per month is 7.2/12 = 0.6%. The first months interest on $1,000 is 1000 0.006 = 6. Because the payment is $25 and the interest for the first month is $6, the payment toward the principal amount is 25 6 = 19. This means after making the first payment, the loan amount is 1,000 19 = 981. For the second payment, the interest is calculated on $981. So the interest for the second month is 981 0.006 = 5.886, that is, approximately $5.89. This implies that the payment toward the principal is 25 5.89 = 19.11 and the remaining balance after the second payment is 981 19.11 = 961.89. This process is repeated until the loan is paid. Write a program that accepts as input the loan amount, the interest rate per year, and the monthly payment. (Enter the interest rate as a percentage. For example, if the interest rate is 7.2% per year, then enter 7.2.) The program then outputs the number of months it would take to repay the loan. (Note that if the monthly payment is less than the first months interest, then after each payment, the loan amount will increase. In this case, the program must warn the borrower that the monthly payment is too low, and with this monthly payment, the loan amount could not be repaid.)(Misc. application) a. The data in the following chart was collected on a recent automobile trip: Write a C++ program that accepts a mileage and gallons value and calculates the miles pergallon (mpg) for that segment of the trip. The mpg is obtained as the difference in mileage between fill-ups divided by the number of gallons of gasoline used in the fill-up. b. Modify the program written for Exercise 9a to also compute and display the cumulative mpg after each fill-up. The cumulative mpg is calculated as the difference between the mileage at each fill-up and the mileage at the start of the trip divided by the sum of gallons used to that point in the trip.
- What is the opposite of greater than?CSCI250L Sample Exam 1 Spring 2020-2021 Question1 (50 pts) Write a program that prompts the user to enter the name, the number of children, and the basic salary of an employee. The program will then: Calculate the bonus: bonus = number of children * $25 Calculate the new salary: new salary Apply a tax of 10% and find the paid salary: paid salary = new salary * (1 – tax) %3D salary + bonus The program will then display all the information needed as shown in the sample run below Sample Run: Enter the name of the employee: Jamal Enter the number of children of the employee: 4 Enter the salary of the employee (in $): 1500 The calculated bonus is $100 for 4 children. The new salary is $1600.0 The paid salary for Jamal is $1440.0Domino's Time Function Name: dominosTime() Parameters: N/A Returns: None Description: During the summer, you ordered a lot of food from Domino's. Pizzas are $12, an order of pasta is $6, and chicken wings are $8. Write a function that asks the user how many of each food item they would like, and then print a response telling them what their order to- tal will be. The order total should be an integer. >>> dominosTime() How many pizzas do you want? 3 How many orders of pasta do you want? 2 How many orders of chicken wings do you want? 2 By ordering 3 pizzas, 2 orders of pasta, and 2 orders of chicken wings, your order total comes to $64.