Write an algorithm/pseudo code. Tip, Tax, and Total Design a program that calculates the total amount of a meal purchased at a restaurant. The program should ask the user to enter the charge for the food, and then calculate the amount of a 15 percent tip and 7 percent sales tax. Display each of these amounts and the total.
Q: Write a pseudocode algorithm to prompt the user to enter the current year and the year a person was…
A: 1) Below is Pseudocode program to input current year and born year of a person, calculate the age of…
Q: Create a flowchart about this pseudocode Display """A series of positive numbers is expected. If the…
A: Below is the answer to above question. I hope this will helpful for you...
Q: The monthly payment for a given loan pays the principal and the interest. The monthly interest is…
A: Answer :
Q: Party-On sells individual hot/cold cups and dessert plates for parties. SueChen wants a program that…
A: The Party-On sells individual dessert plates and hot/cold cups for the parties. Create a program to,…
Q: * Tip, Tax, and Total Design a program that calculates the total amount of a meal purchased at a…
A: In this question we have to fix the logical error and modify the code according to the question…
Q: ext Book: Starting Out with Programing Logic & Design 5 edition Write a program that will take in…
A: ANSWER:-
Q: Write an algorithm and the pseudocode solving the following problem: Ask the user for a total food…
A: final bill = (food bill+(food bill*tax percent)) + (food bill*tip percent)
Q: Research current rates of monetary exchange. Write pseudocode to represent the logic of a program…
A: The, code has given below:
Q: Pseudocode: If Apples = 6, what will be displayed after code corresponding to the following…
A: The correct output is given below with an explanation I have given a sample code screenshot also in…
Q: Complete the given program so that will ask the user to enter 5 fruit items given the name, price,…
A: // simple list program using inheritance // Fruit is a base class with 3 derived classes: Apple,…
Q: Design a program that asks the user for a series of names (in no particular order). After the final…
A: Program Plan: Create an empty list to store the names. Start the loop till 1 is pressed. Input name…
Q: (C PROGRAMMING ONLY) 7. Cornered! Attention again soldier! Our men have been cornered by the…
A: Find Your Code Below
Q: Cosc 1337 java Perform program setup and initializations- Prompt the user and input the starting…
A: Note: The given program is compiled and executed in "NetBeans IDE"
Q: 1) Pseudo code algorithm 2) JAVA program ( IntelliJ ) The Meteorological service requires a…
A: Initialize variables, rainfallLevel <-- 0, currMax <-- 0, currMin <-- 9999, currAvg <--…
Q: The monthly payment for a given loan pays the principal and the interest. The monthly interest is…
A: Given: The monthly payment for a given loan pays the principal and the interest. The monthly…
Q: Write an algorithm and the pseudocode solving the following
A: Input total food bill calculate tax as 7 percent of total food bill Input percentage of tip as 15 or…
Q: Homework 3: Write a program in e language to calculate two real numbers. The operation you are going…
A: #include <stdio.h> int main(){ //declaring variables char op; float a,b;…
Q: Create an algorithm for a basic calculator that will perform the sum, difference, product, and…
A: An algorithm is a finite set of instructions that if is followed accomplishes a particular task. In…
Q: Fat Gram Calculator Design a program that asks for the number of fat grams and calories in a food…
A: Dear Student, As no language is mentioned I am doing it in C++.
Q: PEN AND PAPER FLOWCHART. Hand write the correct pseudocode using pen and paper. // This pseudocode…
A:
Q: A retail store grants its customers a maximum amount of credit. Each customer’s available credit is…
A: Step 1:- Pseudocode Algorithm:- 1.Start2.Declare variables max_Credit, used_Credit and…
Q: (Sum a Sequence of Integers) Write a program that sums a sequence of integers. Assume thatthe first…
A: C is a programming language that is used for general purpose. C language is considered to be a…
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: Write a program that will ask the user to enter the amount of a purchase. The program shouldthen…
A: Program Explanation: “Input” function is used to get the amount of purchase from the user. The…
Q: a. Create a pseudocode algorithm for a program that asks the user to enter two numbers and print out…
A: The solution to the given problem is below.
Q: C++ OOP Cindy uses the services of a brokerage firm to buy and sell stocks. The firm charges 1.5%…
A: Code :: C++ program :: #include <iostream> using namespace std; int main() { int…
Q: Complete the given program so that will ask the user to enter 5 fruit items given the name, price,…
A: #include <iostream> #include <string> using namespace std; struct fruitData {…
Q: Solve it using pseudocode (no python syntax allowed) Code it in Python - must use decision structure…
A: Initialize rate variable to store value later: rate=0 Initialize while loop to keep checking for…
Q: Kim wants to buy a car. Help Kim compute the monthly payment on a loan, given the loan amount, the…
A: Actually, given information Kim wants to buy a car. Help Kim compute the monthly payment on a loan,…
Q: Create a flowchart about this pseudocode Display """A series of positive numbers is expected. If…
A: Given pseudo code contains the append and sum functions in if else statements. The flow chart is the…
Q: Write a program that will take in basic information from a student, including student name, degree…
A: Ask the student name. Ask the degree program name. Subtract the number of credits taken so far from…
Q: Write Algorithm for a program that asks the user to enter two numbers. Then ask the user to enter…
A: Here I am Providing A Basic C Program For elaborating Algorithm Followed. #include<stdio.h>…
Q: The credit plan at TidBit Computer Store specifies a 10% The amount of principal for a month is…
A: Given: The month number (beginning with 1) The current total balance owed The interest owed for…
Q: Pseudocode: If Apples = 6, what will be displayed after code corresponding to the following…
A: Answer: Goodbye, apple lover Explanation: Here we have assigned Apples to 6 but in the condition we…
Q: Pet World offers a 15% discount to senior citizens. Write a pseudocode algorithm for a program that…
A: Step 1:- Pseudocode Algorithm:- 1.Start2.Input sale3.Variables customer_saves and must_pay
Q: 3) write a program that will calculate the total sales amount including the amount for state and…
A: Given:
Q: Financial application: compute future apartment rent) Suppose that the rent for an apartment is…
A: The problem is based on finding the rent of the apartment using programming. NOTE: The code is…
Q: Lab 1-1: Stop and Analyze A local business employs five salespeople and pays a 3% bonus on a…
A: Logic:- initiate a loop from i=0 to 4 Input name Input amount Calculate…
Q: RIE CALCULATION Running or walking bums out about 100 calories per mile. Write a program to…
A: The following code is written under Python 3. Program: #calories data in…
Q: Use C++ programming language Ingredient Adjuster A cookie recipe calls for the following…
A: Formulas to calculate the number of cups of each ingredient needed for the specified number of…
Q: rite an algorithm that will calculate the salary of an employee for the month, and then display on…
A: The given details are related to calculating the salary of employees working for a Car company. The…
Q: program that can determine if the answer is true or false. 2. Create 5 questions. 3. If the answer…
A: Flowchart
Q: design a program for a professor to calculate the average of the three test scores for the students…
A:
Q: Write pseudocode and Python code
A: This can be done using different lists for each of the attribute tax percent, tax amount, gross pay,…
Q: Design an algorithm for a program that calculates the current balance in a savings account. The…
A: A flowchart is a diagram. It is used to display the logical flow of a program. Flowchart for a…
Q: Sales Prediction The East Coast sales division of a company generates 58 percent of total sales.…
A: Task :- Write programs to perform the given tasks. (As programming language is not specified , i…
Q: Write a program that prompts the user to enter a nonnegative integer and outputs the factorial of…
A: Approach To calculate factorial of any non-negative number, we can use either loop (for or while) or…
Q: correct pseudocode
A: Given :- The Pseudocode is mention in the above given question is intended to display employee net…
Q: Write pseudocode and Python code Design a program that computes pay for employees. Allow a user to…
A: all_detail = []while True: name = input('\nEnter Employee name: ') if '-' in name:…
EXCERCISE 10
Write an
Tip, Tax, and Total
Design a
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images
- 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)Ron bought several acres of farm to grow and sell vegetables. Suppose that Ron wants to grow a maximum of two types of vegetables. Write a program that prompts Ron or the user to do the following: Enter the total farm area in acres. The number of vegetables (one or two) that the user wants to grow. If the user wants to grow trwo types of vegetables, then specify the portion,as a percentage, of the farm land used for each type of vegetable. Enter the seed cost, plantation cose, fertilizing cost, labor cost, for each acre. Enter vegetable selling price per acre. Output the total revenue. Output the profit/loss.JAVA CODE PLEASE FINAL EXAM Part 2 Instructions: Modulo or Remainder Operator returns the remainder of the two numbers after division. If you are provided with two numbers, say A and B, A is the dividend and B is the divisor, A mod B is there a remainder of the division of A and B. Modulo operator is an arithmetical operator which is denoted by %. Create a program that asks the user to enter two values then get the remainder of the two values and create a print statement to print the result. All statements should be inside of Modulo function. Call the Modulo function in your main function using the "function with no parameters and return values" method. Constraint: Apply the User-defined Functions type of function. Input 1. Dividend Sample 11 2. Devisor Sample 5 Output Enter·dividend:·11 Enter·divisor:·5 Remainder:·1
- (Science: calculating energy) Write a program that calculates the energy needed to heat water from an initial temperature to a final temperature. Your program should prompt the user to enter the amount of water in kilograms and the initial and final temperatures of the water. The formula to compute the energy is Q = M * (finalTemperature – initialTemperature) * 4184 where M is the weight of water in kilograms, temperatures are in degrees Celsius, and energy Q is measured in joules.The company « Super discounted used cars inc.» pays their employees according to this chart: 250$ per months plus 50$ per car sold. If the salesman sells more than 10 cars, the employee receives a bonus of 5% of the total of his sales, in addition to his regular salary. Each month, the owner sits in front of the computer, and enters the following information: The name of the employee, the number of cars sold, as well as the total of all the sales for the month. Write an algorithm that will calculate the salary of an employee for the month, and then display on the screen, his name, total cars sold, base salary, bonus if applicable and entire salary.(Financials: currency exchange) Write a program that prompts the user to enter the exchange rate from currency in U.S. dollars to Rupees PKR. Prompt the user to enter 0 to convert from U.S. dollars to Rupees PKR and 1 to convert from Rupees PKR and U.S. dollars. Prompt the user to enter the amount in U.S. dollars or Rupees PKR to convert it to Rupees PKR or U.S. dollars, respectively. Use c++ program.
- Open notes and open book. Suppose you have a certain amount of money in a savings account that earnscompound monthly interest, and you want to calculate the amount that you willhave after a specific number of months. The formula is as follows:f = p * (1 + i)^t• f is the future value of the account after the specified time period.• p is the present value of the account.• i is the monthly interest rate.• t is the number of months.Write a program that takes the account's present value, monthly interest rate,and the number of months that the money will be left in the account as threeinputs from the user. The program should pass these values to a function thatreturns the future value of the account after the specified number of months.the program should print the account's future value.Write pseudocode and Python code Design a program that computes pay for employees. Allow a user to continuously input employees’ names until an appropriate sentinel value is entered. Also input each employee’s hourly wage and hours worked. Compute each employee’s gross pay (hours times rate), withholding tax percentage (based on Table 6-5), withholding tax amount, and net pay (gross pay minus withholding tax). Display all the results for each employee. After the last employee has been entered, display the sum of all the hours worked, the total gross payroll, the total withholding for all employees, and the total net payroll. Weekly Gross Pay ($) Withholding Percent (%) 0.00-200.00 10 200.01 -350.00 14 350.01-500.00 18 500.01 and up 22Fat Gram Calculator Design a program that asks for the number of fat grams and calories in a food item. Validate the input as follows: Make sure the number of fat grams and calories is not less than 0. According to nutritional formulas, the number of calories cannot exceed fat grams x 9. Make sure that the number of calories entered is not greater than fat grams x 9. Once corrected data has been entered, the program should calculate and display the percentage of calories that come from fat. Use the following formula: Percentage of calories from fat = (Fat grams x 9) / calories ANSWER IN PSEUDOCODE USE ONLY WHILE LOOPS DO NOT USE MODULES/FUNCTIONS
- Fat Gram Calculator Design a program that asks for the number of fat grams and calories in a food item. Validate the input as follows: Make sure the number of fat grams and calories is not less than 0. According to nutritional formulas, the number of calories cannot exceed fat grams x 9. Make sure that the number of calories entered is not greater than fat grams x 9. Once corrected data has been entered, the program should calculate and display the percentage of calories that come from fat. Use the following formula: Percentage of calories from fat = (Fat grams x 9) / calories ANSWER IN PSEUDOCODESummary 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. Instructions 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 <iostream>#include <iomanip> using namespace std; int main(){ double cost; double area; double bagSize; cout << fixed << showpoint << setprecision(2); cout << "Enter the amount of fertilizer, in pounds, " <<…Summary 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. Instructions 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 <iostream>#include <iomanip> using namespace std; int main(){ double cost; double area; double bagSize; cout << fixed << showpoint << setprecision(2); cout << "Enter the amount of fertilizer, in pounds, " <<…