A customer has to pay for 7 items. He has only 35 RO with him. The price of the products are: S.NO. Item Price (OMR) 1 Biscuit 6.47 Coffee 4.09 5.50 Spices Pen 1.50 Peanuts 2.0 Book 7.25 Charts 1.00 Write an algorithm, draw a flowchart and write a python program to check whether he can buy all the five products. Also print the remaining amount that the customer will have, if any. -254 567
Q: A customer has to pay for five items. He has only 20.0omr with him. The price of the products are:…
A: Python used to answer this question
Q: Write a program which prompts the user for their age. If they are 19 or younger inform them that…
A: Answer to the above question is in step2.
Q: 01: Draw a flowchart for work the traffic lights ? Q2: Write the algorithm required to find the…
A: Q1 flowchart is as given below :
Q: A clothing store added a promotion which give 20% discount on t-shits if the total cost of purchased…
A: CODE:- price = 150quantity = int(input('How many shirts you want to purchase = '))amount = price *…
Q: Write a program to display fruit sales receipts. Python language only Apple: Pink Lady -…
A: type1 = input("Which kind of apples would you like: (P)ink Lady 4.99/kilo (F)uji 5.99/kilo: ")qt1 =…
Q: In python, Write a program that prompts for an odd integer that is between 50 and 100, inclusive.…
A: PSEUDO CODE: BEGIN //Heading WRITE "Checking for odd value between 50-100" //Reading input from the…
Q: 10. A customer has to pay for 7 items. He has only 35 RO with him. The price of the products are:…
A: ALGORITHMS:- 1. Initialize a variable with initial amount. 2. Initialize a list with amount of…
Q: Write a Python Program to: •Prompt user for the tank's capacity in gallons •Prompt user for…
A: capacity=float(input("enter tank's capacity in gallons: "))miles_per_gallon=float(input("enter…
Q: Write a program to calculate and display ticket price. using python The flight ticket price…
A: ALGORITHM:- 1. Take input from the user for all the variables. 2. Calculate the cost of the ticket…
Q: The income tax that employees need to pay are as below: For salary greater than or equal to 10000…
A: Here is the python code: See below steps.
Q: Given an a dollar amount Write a program to convert it into Maximum number of bills to give * 100s,…
A: Source Code dollar.cpp #include<bits/stdc++.h> using namespace std; int main(){ int…
Q: 3. Write an algorithm and draw a flowchart that will calculate the roots of a quadratic equation v…
A: The algorithm and flowchart are essential parts of program design that lead to creating the actual…
Q: An employee’s total weekly pay equals the hourly wage multiplied by the total number of regular…
A: PROGRAM: #Getting input for hourly wage hourlyWage = int(input("Enter the hourly wage: "))…
Q: Write Python programs to solve the problem. Shipping is free for online orders totaling $50 or more…
A: Python program that prompts for the unit price of an item and its quantity#get the inputs from the…
Q: An electricity company charges their consumers according to the units consumed per month according…
A: It is defined as a powerful general-purpose programming language. It is used in web development,…
Q: An employee’s total weekly pay equals the hourly wage multiplied by the total number of regular…
A: A required Python program is as follows, #Get the hourly wage hour_rate = float(input('Hourly…
Q: Q1: Draw a flowchart for work the traffic lights ? Q2: Write the algorithm required to find the…
A: NOTE: We’ll answer the first question since the exact one wasn’t specified. Please submit a new…
Q: The program below simulates tossing a fair coin N times. The program computes the longest sequence…
A: Let's see step by step: 1. const int HEADS = 0; const int TAILS = 1; here HEADS is initialized…
Q: A year is a leap year if it is divisible by 4 unless it is a century year (divisible by 100) that is…
A: You should follow the following steps to determine whether a year is a leap year or not. If a year…
Q: Suppose you deposit $50 in a bank account every month for a year. Every month after the deposit has…
A: I give the code in Matlab as per your requirement along with output and code screenshot
Q: Draw a flowchart for a program that reads a positive integer number and then determines whether this…
A: Perfect number is a positive number which sum of all positive divisors excluding that number is…
Q: An electricity company charges their consumers according to the units consumed per month according…
A: ALGORITHM:- 1. Take input for the number of units consumed by the user. 2. Calculate the charge of…
Q: A discount of 20% will be given to any goods that is bought from GMART shop. Write a program that…
A: Here is the solution which is mentioned below : NOTE: Programming lamguage is not given, I have…
Q: A contractor orders, say, 30 cubic yards of premixed concrete to construct a patio that is to be,…
A: C++ Code for the given Question #include<bits/stdc++.h>#include <iostream> using…
Q: write a Python program that asks the user for the amount of a sale, and outputs the final sale after…
A: Given : To write a python program that asks user to enter amount of sale and outputs the final sale…
Q: Write a program using flowchart (or python, c++) that computes for the average of scores of a…
A: C++ code: #include <iostream>using namespace std; int main() { int marks[99], m, i, a=0,…
Q: Write an algorithm using pseudocode and draw the flowchart for the given problem. The Jungle…
A: Hello Student. Warm welcome from my side. Hope you are doing great. I will try my best to answer…
Q: Write the algorithm and the flowchart 1- A program that calculates the volume of space and the solid…
A: Solution Algorithm for calculating volume of sphere (space)and solid volume of hollow sphere Start…
Q: In order to discourage excess electric consumption, an electrical company charges its customers a…
A: Step 1 : Start Step 2 : Take input for the Electricity consumed in Kilowatt-hours from the user.…
Q: 1a - VAT Write a program that takes the price of an article including VAT and prints the price of…
A: """Program that takes the price of an article including VAT and printsthe price of the article…
Q: An employee is given 10% of their salary as a bonus when the employee works for more than 4 years or…
A: Algorithm: 1) Input the salary and years of the employee 2) If salary is greater or equal the 1000…
Q: Write Python code of a program to compute and display a person's weekly salary as determined by the…
A: First, we will ask the user to input the number of working hours. Then if the no. of working hours…
Q: In a retail store, they offer an anniversary sale for their specially designed T-shirts (A, B, and…
A: Hi. Let's move on to the code in the next step. I have included comments in the code that will…
Q: Consider the following program: int x, y; cin >> x>> y; if(x>y) x = x-y; else if(x<y) y= y-x; else…
A: Please find the answer below :
Q: Finish the program to compute how many gallons of paint are needed to cover the given square feet of…
A: I have given the code below.
Q: In a triangle, the sum of the 1st and 2nd side must always be greater than the 3rd side. Create a…
A: Start input three sides (side1 + side2 > side3) && (side2 + side3 > side1) &&…
Q: Write an algorithm and draw a flowchart for a program that accept an integer from the user and test…
A: An algorithm and draw a flowchart for a program that accept an integer from the user and test the…
Q: Write an algorithm, draw a flowchart and write a C++ program to Read the Range of IQ Check the…
A: SOLUTION: ALGORITHM Step 1: STARTStep 2: DECLARE THE VARIABLEStep 3: READ THE VARIABLE FROM USER…
Q: Write an algorithm and draw a flowchart to solve the following problems: -Find the smallest…
A: Algorithm to find smallest among 3 numbers: Check if the first element(a) is smaller than second(b)…
Q: Suppose that you work for a beverage company. The company wants to know the optimal cost for a…
A: Code import java.util.*;public class Main{ public static void main(String[] args) { int…
Q: 2. If a five-digit number is input through the keyboard, write a program to print a new number by…
A: Given :
Q: Five Star Retro Video rents VHS tapes and DVDs to the same connoisseurs who like to buy LP record…
A: Take input of number of new and old videos, compute total price and display. New video price $3.00/…
Q: #PYTHON PROGRAM TO FIND CALORIES BURNED caloriesBurn=4.2 curCaloriesBurn=0 min=10 while min<=30:…
A: Here we have given the raptor flow chart for the given python code in step 2.
Q: in python Consider the following program snippet with a missing line of code: for car in cars:…
A: Given that : program must print car makes until a car with over 200 kW of power is encountered means…
Q: The following formula gives the area of a triangle and volume of a triangular prism. Area = s(s –…
A: The cost of the carpet per square meter is = area * 1010.85
Q: need this answered in c++
A: #include <iostream> using namespace std; int main() { int a,b,c; cout<< " Enter…
Q: An electricity company charges their consumers according to the units consumed per month according…
A: 1) read number of units from user 2) use if to determine charge slab 3) calculate total charge…
Q: the electrical resistance r (in ohms) of a metal wire is given by the formula r = (ml)/ a where m is…
A: As no programming language is mentioned it is solved using basic C++
Q: Write an algorithm and draw a flowchart that calculate daily pocket money based upon one euro per…
A: An algorithm is a set of steps used to solve a problem specify using natural language such as…
Q: A county collects property takes on the assessment value of property, which is 60 percent of the…
A: Given: Assessment value = 60% of actual value = (60*actual value)/100 Property tax = 72 cents per…
Step by step
Solved in 5 steps with 4 images
- Write a program named GuessingGame that generates a random number between 1 and 10. (In other words, in the example above, min is 1 and max is 11.) Ask a user to guess the random number, then display the random number and a message indicating whether the users guess was too high, too low, or correct.4 – A clothing store added a promotion which give 20% discount on t-shits if the total cost of purchased t-shirts is more than $1500.00. Assuming that each t-shirt costs $150.00, write a python program that asks user how many t-shirts he/she wants to purchase and print the total cost.3. Draw a flowchart and a java program that computes the student's grade using the formula use by the school which is SS/PS * 50+50; SS is student's score, and PS is the perfect score.
- in python Consider the following program snippet with a missing line of code: for car in cars: if car.power_kw > 200: ██████ print(car.make) print('Thank you') What should the missing line be if we want the program to print car makes until a car with over 200 kW of power is encountered? Note that the "Thank you" message must always be displayed before the program ends. a. del print b. return c. pass d. stop e. raise ValueError('too high') f. break g. continueWRITE A PROGRAM TO CALCULATRE THE AREA OF A RECTANGLE OF LENGTH =5 CM AND BREADTH=8CM. CALCULATE THE PRICE OF AN ITEM COSTING 100 GHANA CEDIS AFTER A DISCOUNT OF 10% IS APPLIED TO IT. WRITE A PROGRAM TO CALCULATE THE SIMPLE INTEREST ON A LOAN AMONUT OF 50000 GHANA CEDIS AT AN INTEREST RATE OF 30% FOR A NUMBER OF YEARS WHICH WILL BE SPECIFIED BY THE USER. WRITE A PROGRAM TO CALCULAT THE AGE OF THE USER AFTER THE USER ENTERS HIS OR HER YEAR OF BIRTH.Suppose that the rent for an apartment is $1000 this year and increases 3% every year. Write a program that computes the rent in five years and the total rent for one year starting five years from now
- Write pseudocode and construct a flowchart. A computer program that reads the subtotal and the discount rate. Then, compute the discount cost and total. Discount is computed as subtotal multiplied by the discount rate. Then, the total is computed by subtracting the discount cost from the subtotal.In Python write a program that demonstrates the scenario below: An employee’s total weekly pay equals the hourly wage multiplied by the total number of regular hours plus any overtime pay. Overtime pay equals the total overtime hours multiplied by 1.5 times the hourly wage. Write a program that takes as input the hourly wage, total regular hours, and total overtime hours and displays an employee’s total weekly pay.Write a program that reads in a farenheit temperature as a decimal number and outputs the equivalent celcius temperature. (Both algorithm and program code)
- Task 14 Suppose, your friend is building an automated car called “Besla”. He needs to fix the programming of the car so that it runs at a proper speed. Now, write a python program that takes 2 inputs (distance in meters and time in seconds). The program should then print the velocity in kilometers per hour of that car. Also, it should print whether the car is working properly based on the following chart. Velocity Information to be printed Less than 60 km/h Too slow. Needs more changes. Between 60 km/h to 90 km/h Velocity is okay. The car is ready! Greater than 90 km/h Too fast. Only a few changes should suffice. Sample Input 1: 160000 7200 Sample Output 1: 80.0 km/h Velocity is okay. The car is ready! Explanation: After the conversion of distance and time, the velocity is (160/2) km/h = 80 km/h. So the velocity is okay ========================================================== Sample Input 2: 25400 3600 Sample Output 2: 25.4 km/h Too slow. Needs more…Please do this in Python Programming with Screenshot The output should be exact same like in the examples. If the output in the example is in 2 decimals, then it should be like that. 1a - VAT Write a program that takes the price of an article including VAT and printsthe price of the article without VAT. The VAT is currently 21.00%. Example: Enter the price of an article including VAT: 121This article will cost 100.00 euro without 21.00% VAT. Make sure to print the price and VAT percentage using 2 decimals. Put your program in vat.py . 1b - Plumber The employees at plumbery 'The Maverick Monkey' are notorious bad mathematicians. Therefore the boss has decided to use a computer program to calculate the cost of a repair. The cost of a repair can be calculated in the following way: the hourly wages multiplied by the number of billable hours plus the call-out cost. The number of billable hours is the number of hours worked rounded to the nearest integer. Plumbing laws fix the…Write a program that prompts the user to enter the minutes (e.g., 1 billion), and displays the number of years and days for the minutes. For simplicity, assume a year has 365 days. Use C++ program.