Write a Pseudocode for the given problem: Read the bill amount from customer. If the bill amount is above 50 OMR, the discount be calculated as 10% of the bill amount, otherwise, the discount is 5% of the bill. Displa the final bill amount after discount.
Q: Write a program which prompts the user for their age. If they are 19 or younger inform them that…
A: "Since you have not mention any programming language, so we will write this program in C++…
Q: The user enters a cost and then the amount of money given. The program will figure out the change…
A: Given : The user enters a cost and then the amount of money given. The program will figure out the…
Q: Write a python program that takes a sale amount as an input and print the discount given based on…
A: The variable sales_amount takes the input from the user Then the function is used to calculate the…
Q: Use C language: Write a program which asks the user to input a whole number representing the total…
A: The C code is given below with code and output screenshot All the best ?
Q: In Python programming language. Write a program that calculates the sum of prime numbers that could…
A: def prime_number(n): #function prime_number if(n == 0 or n == 1): #if n is 0 or…
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 program that plays a guessing game with the user. The program should have the right answer…
A: Please find the answer below :
Q: Write a program that reads the subtotal and the gratuity rate, then computes the gratuity and total.…
A: Here I have asked the user to enter subtotal and gratuity rates. Then I have calculated the gratuity…
Q: A factorial of N is defined as 1 if N is O or 1, and 1*2**N if N is a non-negative integer. Write a…
A: note:- only one program will be solved if they are not linked . Also mention programming language…
Q: age, write a
A: #include<stdio.h> int main (void){ int array[] = {1,6,15,9}; int length = sizeof array /…
Q: An online store wants to give prizes to their loyal customers. Write a python program that reads the…
A: Program Description: An online store wants to give prizes to its loyal customers. Write a python…
Q: Write a program that reads the volume, V, as a floating-point number. It then computes and prints…
A: Given, that volume V is a floating-point number which has to be an input by user. Now, considering V…
Q: Write pseudocode for a problem that accepts the number (not the value) of quarters, dimes, nickels,…
A: Pseudo-Codification: It is used to describe the specifics of a program in depth. It is used to…
Q: We want to write a Python program for n players, which are playing a tournament. In this competition…
A: Required:
Q: In PYTHON, Write a program that calculates the area of a triangle. There are several ways to get the…
A: Required: In PYTHON, Write a program that calculates the area of a triangle. There are several ways…
Q: Write a Python program to calculate student grades. It accepts a numerical grade as input and it…
A: Accept the numeric grade as input and then start checking from 60 which range does input falls and…
Q: Write the pseudo code for this problem based on what you learned from the video. The purpose is to…
A: Pseudocode is a representation of code that even a layperson with basic programming knowledge can…
Q: In Python A soup company is interested in finding out how much of their soup will go into various…
A: def soup_volume(d, h): r = d / 2 volume = math.pi * pow(r, 2) * h volume = 0.95 * volume…
Q: In Python write a program that demonstrates the scenario below: An employee’s total weekly pay…
A: We need to provide a python program to employee’s total weekly pay. Where, total week pay= regular…
Q: Assuming the following code, what will the value of x be after the code is executed: x = 20 if x %…
A: Here initially x=20 if x % 2 == 0: As x is divisible by 2, x%2 = 20%2 return 0, thus this…
Q: Write a python program that takes a sale amount as an input and print the discount percentage given…
A: algorithm:- take input from user. apply if elif else to check the range display the discount…
Q: The phrase “divide and conquer” means that all of the programmers on a team should be divided and…
A: Gievn: The phrase “divide and conquer” means that all of the programmers on a team shouldbe divided…
Q: Write a menu driven program for student managements system, in which you have to take input…
A: CODE: #include<bits/stdc++.h> using namespace std; int main() { string name;int…
Q: Draw a pseudocode to calculate bonus of employees Where females are paid 7% of their basic salary…
A: here depending upon the gender, an employee is paid bonus. So we first need to ask the gender of…
Q: The value of x is 3 at the beginning, if you are writing a computer code like below, what is the…
A: Introduction: An if statement is a programming conditional statement that, if proved true,…
Q: A company want to raise the salary of its employee. The raise rate is given as following: • The…
A: THIS IS A MULTIPLE QUESTION BASED PROBLEM. ONLY FIRST QUESTION IS ANSWERED. KINDLY SEND THE…
Q: In Python: Write a program with total change amount as an integer input, and output the change…
A: Approach: Defining the main function Getting the input from the user that is the change Checking…
Q: Write a python program that takes a sale amount as an input and print the discount percentage given…
A: Algorithm Start Var amt, discount Input amt from user If (amt>=10 AND amt<90 )…
Q: Write a program that computes for the circumference of a circle.
A: Given: Write a program that computes for the circumference of a circle. The program is written in C…
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: In C++ language, create a program that gets quarterly sales from a user, and calculates the total of…
A: - We need to code for the sales program.
Q: Write in Python program... for an invoice calculation program, write the python program that…
A: code:
Q: Write an application that reads the (x,y) coordinates for two points. Compute the distance between…
A: Note: Programming language is missing in the question. So we will answer this program in Java…
Q: Write a program that prompts the user to enter the number of items and each item’s name and price,…
A: Note: As programming language is not mentioned. So used Python to complete the task. Program: #…
Q: In Python. Write a code to calculate profit or loss.
A: Program Approach – Prompt user to enter the cost price. Prompt user to enter the selling price. If…
Q: In Python programming language. Write a program that calculates the sum of prime numbers that could…
A: Step 1: Read bStep 2: While (temp=true):Step 3: if b is positive Call sum().…
Q: Written In Python The amount of time students spent studying for an test is exponentially…
A: According to the information given:- We have to write python code by following the instruction and…
Q: Write a python program that takes the total sales of the product as input and prints the…
A: We need to use if else to solve this problem
Q: Write the pseudocode for a problem that will accept the number of (not value of) quarters, dimes,…
A: Pseudo Code: It is used to describe the step by step details of a program.It is used to explain the…
Q: Write a pseudocode for the real percentage-to-numerical-grade-equivalent displaying. Only one…
A: Pseudocode for the real percentage-to-numerical-grade-equivalent is given below.
Q: Write a java program that calculates the depreciation of your assets for several years. The program…
A: Program Approach: Import necessary header files for the standard I/O operations. Declare the main…
Q: The marks obtained by a student in 5 different subjects are input by the user. The student gets a…
A: Objective: This program reads the marks obtained by a student in 5 different subjects. The division…
Q: IN PYTHON Please! Suppose you deposit $100 into a savings account, and it accumulates at 6% interest…
A: Compound interest is calculated based on the accumulation of principal and interest earned on the…
Q: Write an application that gets two numbers from the user and prints the sum, product, difference and…
A: (1)First we need to Design a Java Frame and add all the components and add the listeners to the…
Q: Use C++ programming language A customer in a store is purchasing five items. The prices of the…
A: Algorithm: Start Store the price of 5 items in p1,p2,p3,p4 and p5 variables Print p1,p2,p3,p4 and…
Q: write a python program that gives the exact change for a money amount of something bought
A: cost = float(input('Enter cost of item: '))amt_paid = float(input('Amount paid for this item:…
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…
Q: Write a program vhich prompts the user for the values of a and b, and then prints out the value of…
A: Required: Java program to calculate Pythagoras theoram.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- Write the pseudocode for a problem that will accept the number of (not value of) quarters, dimes, nickels, and pennies and display a total value for the coinsWrite a menu driven program for student managements system, in which you have to take input student’s name, reg_num and his subjects marks (atleast 3). Now take choice from user to print his maximum marks from all subjects(e.g. user enters 50,80,75 maximum marks will be 80), minimum marks(e.g. minimum marks will be 50) from all subjects, average(e.g. (50+80+75)/3) and percentage ( e.g. (total*100)/300). (Note: Use else-if statements)The phrase “divide and conquer” means that all of the programmers on a team should be divided and work in isolation.True or False
- 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.Write a program which prompts the user for their age. If they are 19 or younger informthem that qualify for student discounts. If they are between 20 and 65 inform them that theyqualify for no age discounts. If they are 65 or over inform them that they can receive seniordiscounts.(python)If you know the balance and the annualpercentage interest rate, you can compute the interest on the next monthly paymentusing the following formula:interest = balance X (annualInterestRate/1200)Write a program that reads the balance and the annual percentage interest rate anddisplays the interest for the next month. Here is a sample run: Enter balance and interest rate (e.g., 3 for 3%): 1000 3.5 ↵EnterThe interest is 2.91667
- Write a program for a Bookstore to take an order from a customer, calculate how much to charge a customer based on his/her order, and display a receipt. The store sells only three books, designated by their authors: Cervantes ($41.25 each), Homer ($15.85 each), and Shakespeare ($30.50 each). Your program is to work as follows: Display a welcome message (e.g., “Welcome to the Bookstore!”) Prompt the user for his/her first name Prompt the user to input the number of books by Cervantes s/he wants Prompt the user to input the number of books by Homer s/he wants Prompt the user to input the number of books by Shakespeare s/he wants Compute the total amount due, including a 10% sales tax Display amount due Ask the user how much money s/he will pay Display a receipt listing the name of the user, the quantity of each item ordered, the total cost of the order, and the amount the user will have left after paying Execution of the compiled program should appear roughly as follows (with red…Write a program that computes how much a customer has to pay after purchasing two items. Make the lower-priced item half price. If the two items have identical prices, you can make one or the other half price. The price is calculated according to the following rules:• Buy one get one half off promotion: the lower price item is half price.• If the customer is club card member, additional 10% off.• Tax is added. Inputs to the program include:• Two items’ prices• Have club card or not (User enters ‘Y’ or ‘y’ for “yes”; ‘N’ or ‘n’ for “no”)• Tax rate (User enters the percentage as a number; for example, they enter8.25 if the tax rate is 8.25%) Program displays:• Base price - the price before the discounts and taxes• Price after discounts - the price after the buy one get one half off promotionand the member’s discount, if applicable• Total price – the amount of money the customer has to pay (after tax)printed with the precision of 2 decimal digits. Hint: In order to print a number in a…Suppose you have a certain amount of money in a savings account that earns compound monthly interest, and you want to calculate the amount that you will have 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 (the account's current balance). • i is the monthly interest rate. • t is the number of months. Write a program that takes the account's present value (current balance), monthly interest rate, and the number of months that the money will be left in the account as three inputs from the user. The program should pass these values to a function that returns the future value of the account, after the specified number of months. The program should print the account's future value. Look carefully at the following sample run of the program. In particular, notice the wording of the messages and the placement of…
- Write a program that reads the subtotal and the gratuity rate, then computes the gratuity and total. For example, if the user enters Rs.10 for subtotal and 15% for gratuity rate, the program displays Rs.1.5 as gratuity and Rs.11.5 as total. Use C++ programAssuming the following code, what will the value of x be after the code is executed: x = 20 if x % 2 == 0: x +=5 if x % 5 == 0: x += 5 if x % 10 == 0: x = 10 else: x = 0 Group of answer choices[Python Language] [Python Language] Is it time for tea?Your friend lives in London England in a timezone that is normally 6 hours ahead of Toronto Canada. But sometimes London and Toronto switch to daylight savings time on different dates. If Toronto is on daylight savings time and London isn’t, then the time difference is only 5 hours. Conversely, if London is on daylight savings time and Toronto isn’t, the time change is 7 hours. Of course, if both are on daylight savings time, the difference is back to the standard 6 hours. Write a program that takes three lines of input: a float value representing the time in Toronto, whether Toronto is on daylight savings time (1 means yes, 0 means no), and whether London is on daylight savings time (1 means yes, 0 means no). It prints a float giving the time in London. One complication is that you should not print a time greater or equal to 24.0 or less than 0.0. Suggestion: At first don’t consider this complication, and test cases where the…