Write a pricing algorithm for item A and the amount you bought. The algorithm shows the cost, including a sales tax of 6 percent.
Q: An algorithm is approximately the same thing as a recipe, but some kinds of steps that would be…
A: Add vanilla extract to taste suggests to add some extra content to get the taste Beat until…
Q: Give the algorithm' to determine the state of water (ice, liquid or steam) within a room base on the…
A: As no language is mentioned, the code is in C language: -
Q: SAMPLE OUTPUT: A Simple Calculator Program Enter an expression: 4 + 5 Answer: 9 Try Again? [Y/N]: y…
A: Python: Python is a high level, object oriented programming language. Python uses indentation…
Q: The following algorithm yields the season (Spring, Summer, Fall, or Winter) for a given month and…
A: 1) Below is Python program that prompt user for a month and date and print season(Spring, Summer,…
Q: A program for entering a number. If 2 points the number is greater than 100, it prints the number,…
A: Ans-: 1) option (a) 2) false 3) option (a)
Q: The following algorithm yields the season (Spring, Summer, Fall, or Winter) for a given month and…
A: The program demonstrates if else statement in Python. Also another approach is the switch case too.…
Q: Write an algorithm to calculate the area of a rectangle for given breadth and length. Write an…
A: The code of these is given below.
Q: Write a Pseudocode for the given problem: Read the bill amount from customer. If the bill amount is…
A: Use separate variables to store billAmount, discount and finalBillAmount calculated after applying…
Q: Write a Pseudocode for the given problem: Read the bill amount from customer. If the bill amount is…
A: According to the Question below the Solution:
Q: Write a program that asks the user to enter the current price of a product. In the next three years,…
A: Conversion from percentage to decimal value : For x % percentage, the decimal equivalent of the x%…
Q: Write a program to input your original_bill. find discount. print original_bill, discount, fin_bill…
A: Program description: o_bill is the user input integer variable that stores the value of the original…
Q: write a Java program to print the given pattern Pattern:
A: Given program:- write a Java program to print the given pattern Pattern:…
Q: Write a program that reads your birthday (day-month-year). Calculate your age in (day - month -…
A: Note :- You have not mention the language of the program, so I'm answering your question in C++ .…
Q: Write a program to solve the word puzzle problem
A: Include header files and declare required namespaces. • Initialize the main() function and declare…
Q: A customer has 500 NIS cash money and wanted to buy some items from a market. Design an algorithm…
A: Answer in step2
Q: A salesman in XYZ company is selling toothpaste for P89.75 each and tooth powder for P155.95 each.…
A: ALGORITHM Step 1 : Start Step 2: Input Customer_name , toothpaste_number and toothpowder_number.…
Q: 3. Write an algorithm that inputs a student's score outputs his grade according to the following:…
A: Algorithm: if (-1<score<60) { grade = "F"; } else if (59<score<70) { grade = "D"; } else…
Q: The sum must be divisible by 10 for a thirteen digit ISBN. The check digit 5 was chosen because 115…
A: Actually, python is a easiest programming language It is a dynamically typed programming language.
Q: Write a guessing game where the user has to guess a secret number. After every guess the program…
A: Actually, program is a executable software that runs on a computer.0
Q: Write an algorithm that lets the user enter several items prices (number of items is unknown)(when…
A: 1)Start 2)initialize number_of_items=0;sum_of_all_prices=0;highest_price=0;lowest_price=100000…
Q: write a program that calculates the total salary of an employee if he or she earns one penny the…
A: Actually, program is a executable software that runs on a computer.
Q: Write a program that calculates the amount of money a person would earn over a period of time if the…
A: Algorithm : Step 1 : declare variables. Step 2 : create object of scanner class to take input. Step…
Q: Computer can perform just simple tasks because it is flexible Select one: O True O False
A: Actually, computer is a electronic device which takes input and gives output.
Q: Read your name and one numeric value [Omani Rial], print the following menu as shown in below…
A: Please find the answer below
Q: Suppose you shop for rice and find it in two different- sized packages. You would like to write a…
A: Program to get better price
Q: Write a program to select your favorite food among 5 foods. 1. Pizza 2. Burger 3. Sandwich 4.…
A: Note: Below is the required program in the C++ language. Program Approach: Including a necessary…
Q: For this homework assignment, you are asked to design an algorithm to compute the employee's bonus…
A: Explanation: This program uses 2 inputs bonus schedule overtime and absent bonus paid. The hours…
Q: Print the words in alphabetical order.
A: The program is written in HTML and Javascript. Please check the source code and output in the…
Q: Lumping 4 digits into a year to remember more information is an example of ___________.
A: Answer : - Lumping 4 digits into a year to remember more information is an example of mnemonic
Q: Goal: This task is to compute the ticket price for a person based on the type of fare (one way or…
A: """Program to compute the ticket prioce for person based on the type of fareand age group""" #define…
Q: Make an algorithm that will compute for the distance between 2 points A and B. The user is asked to…
A: Define header files <iostream> and <cmath> for io and math operations, respectively.…
Q: Our local bank has many customers who save their change and bring it in for deposit Write a general…
A: ALGORITHM:- 1. Take input for the customer details. 2. Take input for the currency input from user.…
Q: Write an algorithm that asks the user to enter an integer number then prints the sum of even digits…
A: Aim: To create a program that print addition of all the odd digits of a number and even digits of…
Q: Question Write a python program that takes a sale amount as an input and print the discount…
A: Here I have first of all asked the user for the sale amount and stored it into a variable. Then I…
Q: Write the algorithm and draw the flow chart for a program that calculates and displays a person’s…
A: Program Plan:1. Read the input to the person's weight and height from the user.2. Formula to…
Q: Given a right triangle with sides A, sides B, and Hypotenuse C. Write a C++ program that will input…
A: The below given C++ program will obey the following rubrics: Including necessary header files.…
Q: Draw the flow-chart of the algorithm that will ask the user to enter day's temperature. Program will…
A: As per the question we need : Flowchart Program For displaying the weather according to the…
Q: Create the algorithm for the following problem: A company is giving out bonus to the employees…
A: Here we bonus rate is given by bonus rate = numofYears /100 Now here first we need to accept number…
Q: Write a program that when given the row number and the seat number, prints the price of a ticket.
A: The size of array is 6x6 Thus the array would be initialized as int ticketPrice[6][6] Here we need…
Q: A rod is used to hang a load (force) of 1000 N. There are 4 ingredients with their respective…
A: Task : The task is to create two lists to store details for the : ingredient names strengths
Q: Draw the table of the program whose algorithm is given below. 1. Start 2. K= 0 3. J= 1 4. IfJ> 10…
A: You didn't define any language for the program, So i am doing in C programming. #include…
Q: The algorithm read 2000 numbers (positive and negative). Your algorithm has to print either…
A: I am writing this code in C++
Q: Write the algorithm and draw the flow chart to read the grades of first-year students in the…
A: Start Initialize succesfulStudents, failStudents to 0 For 225 times Initialize sum to 0 For 7…
Q: You have a bowl on your counter with an even number of pieces of fruit in it. Half of them are…
A: Input Process Output Number of Fruits in bowl (Number) 1. Number of Apples (Apples) =…
Q: Write an algorithm that computes the Body Mass Index (BMI) given the heights and weights of…
A: Dear Student, The algorithm for above question is given below.
Q: Write a Little Man program that determines if the number entered by a user is an odd or even…
A: To write the above program following logic will be used: If the number when divided by 2 leaves any…
Q: Give the algorithm to determine the state of water (ice, liquid or steam) within a room base on the…
A: Step 1) Start Step 2) Take temperature t as input from user (between 0-300 Fahrenheit) Step 3) Check…
Q: Any customer whose total purchase is at least P1000 will be given a 10% discount. Make an algorithm…
A: Below is the pseudocode of given program //ask user to enter purchase amountstartREAD…
Write a pricing
Step by step
Solved in 2 steps
- Tom and Jerry opened a new lawn service. They provide three types of services: moving, fertilizing, and planting trees. The cost of moving is $35 per 5,000 square yards, fertilizing is $30 per application, and planting a tree is $50. 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.)The cost of renting a room at a hotel is, say $100.00 per night. For special occasions, such as a wedding or conference, the hotel offers a special discount as follows: If the number of rooms booked at least 10, the discount is 10%; at least 20, the discount is 20%; and at least 30, the discount is 30%. Also if rooms are booked for at least three days, then there is an additional 5% discount. Write a program that prompts the user to enter the cost of renting one room, the number of rooms booked, the number of days the rooms are booked, and the sales tax (as a percent). The program outputs the cost of renting one room, the discount on each room as a percent, the number of rooms booked, the number of days the rooms are booked, the total cost of the rooms, the sales tax, and the total billing amount. Your program must use appropriate named constants to store special values such as various discounts.Party-On sells individual hot/cold cups and dessert plates for parties. SueChen wants a program that allows her to enter the price of a cup, the price of a plate, the number of cups purchased, and the number of plates purchased. The program should then calculate the total cost of the purchase, including the sales tax. Finally, the program should display the total cost on the screen. Desk-check your solution’s algorithm using $0.50 as the cup price, $1 as the plate price, 35 as the number of cups, 35 as the number of plates, and 2% as the tax rate. Then desk-check it using $0.25, $0.75, 20, 10, and 6%.
- Rent A Van wants a program that calculates the total cost of renting a van. Customers pay a base fee plus a charge per mile driven. Complete an IPO chart for this problem. Desk-check the algorithm using $50, $0.20, and 1000 as the base fee, charge per mile, and number of miles driven, respectively. Then desk-check it using your own set of dataBirthday party At Lili's birthday party, there was a game arranged by Jojo as the host. That game is to distribute Y number of candy to X number of people where all the candy tastes sweet except for one last candy which tasted like rotten nuts. Candy distribution will be sequentially starting from position Z and if past the last position then the distribution of candy continues to the first position. Write down the person in which position will get the last candy. Input FormatThe first line of input is T, which is the number of test cases.The second row and the next number of T rows are X, Y, Z.X is the number of people to whom the candy will be distributed.Y is the number of candy available.Z is the starting position of the person to whom the candy will be distributed. Output FormatA string “Case #N: “ and a number representing the position of the person who got the last candy. Constraints? ≤ ? ≤ ???? ≤ ?, ? ≤ ???? ≤ ? ≤ X Sample Input 43 4 13 5 24 2 24 5 2 Sample OutputCase #1: 1Case…Birthday party At Lili's birthday party, there was a game arranged by Jojo as the host. That game is to distribute Y number of candy to X number of people where all the candy tastes sweet except for one last candy which tasted like rotten nuts. Candy distribution will be sequentially starting from position Z and if past the last position then the distribution of candy continues to the first position. Write down the person in which position will get the last candy. Input FormatThe first line of input is T, which is the number of test cases.The second row and the next number of T rows are X, Y, Z.X is the number of people to whom the candy will be distributed.Y is the number of candy available.Z is the starting position of the person to whom the candy will be distributed. Output FormatA string “Case #N: “ and a number representing the position of the person who got the last candy. Constraints1 ≤ T ≤ 1001 ≤ X, Y ≤ 1031 ≤ Z ≤ X Sample Input 43 4 13 5 24 2 24 5 2 Sample OutputCase #1: 1Case…
- The simplest income tax calculation for a single person filing federal income taxes in the United States involves applying a standard deduction, personal exemption and marginal tax rates to the annual income of the taxpayer. For tax year 2015, the standard deduction for an individual was $6300 and the personal exemption was $4000. The 2015 tax rates vary by income bracket and are given in the table below. Tax Rate 10% 15% 25% 28% 33% 35% 39.6% which equals $6203.50. You can calculate an "effective tax rate" based on the original income as Income Range $0.01-$9,225.00 $9,225.01-$37,450.00 $37,450.01-$90,750.00 $90,750.01-$189,300.00 $189,300.01-$411,500.00 $411,500.01-$413,200.00 Over $413,200 To compute the tax liability on a given income, first the deduction and exemption amounts are subtracted, then each portion of the income is taxed at the marginal rate according to the table. For example, for an income of $51,939 (US median income in 2014) you first apply the standard $6,300…A cloth showroom has announced the following seasonal discounts on purchase of items. Purchase Amount Discount Mill Cloth Handloom Items 0 to 100 0 5% 101 - 200 5% 7.5% 201 - 300 7.5% 10% Above 300 10% 15% Write a algorithm to compute the net amount to be paid by a customerSports exercise advisor algorithm. In this algorithm you will start out with a temperature value in Celsius, so you do not need to ask the user for it. First, convert the temperature to Fahrenheit. Then display a recommended sports exercise based on the Fahrenheit temperature as follows: for temperatures between 65 and 80° display tennis, for colder temperatures display ping pong, and for warmer temperatures display canoeing. thanks in advance
- use visual basic Depreciation to a Salvage Value of 0 . For tax purposes an item may be depreciated over a period of several years, n . With the straight-line method of depreciation , each year the item dpreciates by 1/nth of it original value. with the double-declining-balance method of depreciation, each year the item depreciate by 2/nths of its value at the beginning of that year.(In the final year it is depreciated by its value at the beginning of the year. ) Write a program that performs the following tasks:(a) Request a description of the item, the year of purchase, the cost of the item, the number of years to be depreciated (estimated life), and the method of depreciation. The method of depreciation should be chosen by clicking on one of two buttons.(b) Display a year- by-year description of the depreciation. See Fig. 6.15 .XYZ Company, LLC uses a program to manage the information of their employees. The program gets the name of the employee, number of hours worked and rate per hour. It computes the salary by multiplying the number of hours worked with rate per hour. If the salary is more than 1000, tax is computed as 5% of the salary, otherwise, tax is computed as 2% of the salary. The program will display the name of the employee, salary and tax.Fibonacci series is that when you add the previous two numbers the next number is formed. You have to start from 0 and 1. E.g. 0+1=1 → 1+1=2→ 1+2=3 →2+3=5 → 3+5=8 → 5+8=13 So the series becomes 0 11 2 3 5 8 13 21 34 55 Steps: You have to take an input number that shows how many terms to be displayed. Then use loops for displaying the Fibonacci series up to that term e.g. input no is =6 the output should be 0112 3 5