Write a Pseudocode for the given problem: Read the bill amount from customer. If the bill amount is above 50 OMR, the discount will be calculated as 10% of the bill amount, otherwise, the discount is 5% of the bill. Display the final bill amount after discount.
Q: Implement a Tour Planner and Budget Calculator for Holidays. Program will ask the user to enter…
A: Menu based programs are those where the user chooses one of several options and the program…
Q: A person buys a product from XYZ shop. you have to input quantity of a product and price of one…
A: Pseudo-code: Pseudo-code is a writing up of the machine instructions in an informal and…
Q: The variable x starts with the value 0. The variable y starts with the value 5. Add 2 to X. Add 2…
A: As no programming language has been used, Java has been used.
Q: Input item name, item price, and quantity. - Multiply the item quantity by its price to calculate…
A: Note: Since you have not provided the language to write the code so I am using java language to…
Q: The monthly payment for a given loan pays the principal and the interest. The monthly interest is…
A: Answer :
Q: Write a program that prompts the user to enter the ticket price and the number of people. Then, the…
A: The ticketPrice and numberOfPeople are the inputs and totalPrice and discountPercetage will be the…
Q: Use Python to write a program that asks the user to enter a pocket number and displays whether the…
A: We can use relational operators or range function to check the number whether in range or not So,…
Q: A cashier has currency notes of denominations 10, 50 and 100. If the amount to be withdrawn is input…
A: Step 1 : A cashier has currency notes of denominations 10, 50 and 100. If the amount to be…
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 an expression that obtains a random integer between 34 and 55. Write an expression that…
A: To get a random number we will use rand() in c++, also we are going seed time as a parameter to…
Q: A software company sells a package that retails for $99. Quantity discounts are given according to…
A: Program: #get the input from the user num = float(input("Enter the number of packages purchased: "))…
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: 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: // This pseudocode is intended to determine whether students have // passed or failed a course;…
A: Pseudocode Pseudocode is a loose way to describe programming which doesn't need to conform to any…
Q: Write a program that finds the smallest number i
A:
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: 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: Programmers refer to the goal of solving a problem as the . a. input b. output c. processing d.…
A: Solving a problem Output is the data generated by a computer. It includes data at a software level…
Q: Implement a Tour Planner and Budget Calculator for Holidays. Program will ask the user to enter…
A: A switch statement is a multiway branch statement that is used when we have multiple conditions and…
Q: // This pseudocode is intended to determine whether students have // passed or failed a course;…
A: Flow chart-A flowchart is a picture of the separate steps of a process in sequential order.…
Q: In Ruritania, fractional numbers are rounded up to the next integer if the fractional part is at…
A: import java.util.Scanner; public class Numbers { public static void main(String…
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: 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: 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: A store charges $12 per item if you buy less than 10 items. If you buy between 10 and 99 items, the…
A: Note: Below is the required program in the python language. Program Approach: Input the how many…
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: 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: Use C language: Write a program which asks the user to input a whole number representing the total…
A: Algorithm: Start of the program Declare necessary variable Read the price variable Based on price…
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: Instructions An object's momentum is its mass multiplied by its velocity. Write a program that…
A: Given:
Q: QI Write a program of value for a student's grade between (1-10). If the value is between (8-10),…
A: Code: #include<bits/stdc++.h>using namespace std; // Function to convert number into…
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 pseudocode that will calculate a XXX% tip and a 6% tax on a meal price. The user will enter…
A: Dear Student, The Pseudocode for the program is given below ,In this program we only need to use…
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: If you know the balance and the annual percentage interest rate, you can compute the interest on the…
A:
Q: Write the pseudocode for Aunt Joan’s egg ranch problem. Aunt Joan has a large number of chicken…
A: The egg dozen means 12 eggs. The excess eggs will thus be the remainder of the number of eggs and…
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: A software company sells a package that retails for $99. Quantity discounts are given according to…
A: Given: A software company sells a package that retails for $99. Quantity discounts are given…
Q: design a program for a professor to calculate the average of the three test scores for the students…
A:
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: // This pseudocode is intended to compute the number// of miles per gallon you get with your…
A: The given pseudocode to compute the number of miles per gallon is wrong.The corrected pseudocode is…
Q: When given a new problem, the best course of action is to sit down at a keyboard and start…
A: when given a new problem, the best course of action is to sit down at a keyboard and start…
Q: Write a Python program that does the following Asks the user to enter the order. If the order is…
A: I have written the code as per all the requirement: I am attaching screenshots for both Do you want…
Q: In Python Write a program that allows the user to type in a phrase and then outputs the acronym…
A: PROGRAM: #Defining the main() def main(): #Getting input from the user phrase =…
Q: Write the IPO CHART and Pseudocode. 1. Write a program that will compute the total amount of a…
A: IPO chart: An IPO chart is a way to describe how information is processed. Input Processing…
Q: The roots of the quadratic equation ax² + bx + c = 0, a ≠ 0 are given by the following formula:…
A: The term b2 - 4ac is known as the discriminant of a quadratic equation. The discriminant tells the…
Q: For this problem, you are going to design a game for the children to teach them about numbers. You…
A: As the programming language is not specified answer written in C++ 1)For this we have to use…
Q: Write a pricing algorithm for item A and the amount you bought. The algorithm shows the cost,…
A: 1) Read the item A price from the user 2)Read the amount brought from the user
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- The Ladies Professional Golfers Association (LPGA) maintains statistics on performance and earnings for members of the LPGA Tour. Year-end performance statistics for the 30 players who had the highest total earnings in LPGA Tour events for 2005 appear in the file named LPGATour (LPGA Tour website, 2006). Earnings ($1000) is the total earnings in thousands of dollars; Scoring Avg. is the average score for all events; Greens in Reg. is the percentage of time a player is able to hit the green in regulation; Putting Avg. is the average number of putts taken on greens hit in regulation; and Sand Saves is the percentage of time a player is able to get “up and down” once in a greenside sand bunker. A green is considered hit in regulation if any part of the ball is touching the putting surface and the difference between the value of par for the hole and the number of strokes taken to hit the green is at least 2. Develop an estimated regression equation that can be used to predict the average…HW7_3 Ball bearings are hardened through a process known as quenching-submersion of the heated ball bearing in oil or water in order to cool it rapidly. The data below represent the temperature of the ball at various points in the cooling process time (sec) 0 30 Temp (C) 800 457 269 79 46 60 150 240 Plot the data (as discrete points). In the same figure window, also plot a) interpolating polynomial, (use polyfit and polyval) b) piecewise cubic interpolation (not-a-knot) and c) piecewise cubic interpolation (shape-preserving) Include a legend for the three methods used: polynomial interpolation, not-a-knot, shape-preserving. Then looking at the plot, choose the method you believe to be the best and smoothest fit of all these to predict the temperature after 3 minutes of cooling. Print the result using fprintf.Create the following sample data file in SPSS and calculate the BMI(Body Mass Index) and show it in the next column as shown below: The formula to calculate BMI is BMI= Weight / ( Height * Height) * 703
- Part 1 of 4 Compute the least-squares regression line for predicting the diastolic pressure from the systolic pressure. Round the sope and y-intercept to at least four decimal places. Regression line equation: y =5. Using the Max function, write a formula in cell F7 of Top10_Pivot Sheet to find the maximum "Sum of Percentage" value. Do not select the Grand Total range in the function.6. Using the MATCH function only, write a formula in cell G7 of Top10_Pivot Sheet to find the Row Number of Maximum Sum of percentage.7. Using the INDEX function only, write a formula in cell H7 to find the state name having the maximum "Sum of Percentage". The formula should include the value(row number) that is calculated in G7.b. ID: A Name: 0. A summer camp offers a morning session and an afternoon session. The list morningList contains the names of all children attending the morning session, and the list afternoonList contains the names of all children attending the afternoon session. Only children who attend both sessions eat lunch at the camp. The camp director wants to create lunchList, which will contain the names of children attending both sessions. The following code segment is intended to create lunchList, which is initially empty. It uses the procedure IsFound (list, name), which returns true if name is found in list and returns false otherwise. FOR EACH child IN morningList 11 Which of the following could replace so that the code segment works as intended? IF ((IsFound (morningList, child)) OR (IsFound (afternoonList, child))) IF (ISFound (afternoonList, child)) APPEND (lunchList, child) APPEND (lunchList, child) a. { C. IF (IsFound (lunchList, child) ) IF (IsFound (morningList, child)) APPEND…
- The electronic item stock availability in different outlets of LULU Hypermarket at Muscat is shown below and the data is stored using data.frame( in tabular format in the variable STOCK. OutletLocation TV Refrigerator WashingMachine 1 2 3 Bousher 10 Darsait 20 wadi Kabir 15 Ruwi 14 5 4 3 2 8 6 4 10 Which of the following code will display maximum of the Refrigerator data. None of these. max(STOCK.Refrigerator) max(STOCK$Refrigerator) max(Refrigerator)Transcribed Image Text A summer camp offers a morning session and an afternoon session. The list morningList contains the names of all children attending the morning session, and the list afternoonList contains the names of all children attending the afternoon session. Only children who attend both sessions eat lunch at the camp. The camp director wants to create lunchList, which will contain the names of children attending both sessions. The following code segment is intended to create lunchList, which is initially empty. It uses the procedure IsFound (list, name), which returns true if name is found in list and returns false otherwise. FOR EACH child IN morningList { <MISSING CODE> Which of the following could replace <MISSING CODE> so that the code segment works as intended? IF (IsFound (afternoonList, child)) { A APPEND (lunchList, child)PYTHON CODE Using Artists.csv (link below), write a query that returns all lines that are female artists only, with begin date greater than 1950 but no greater than 2000 Write a query that will return all lines of British Male artists, who's first names starts with the letter ‘A’ and has an end date earlier than 1990 Write a query that will write to a file all lines that have Japanese Artists who’s difference of end date and begin date exceeds 100 years. I.e. if artist begins in 1900 and ends in 2005, then they would be included in the output (2005-1900 = 105 years) Write a query that will write and find to a file the artist who’s been at the Museum the longest (the widest gap between Begin Date and End Date) Artists.csv: https://media.githubusercontent.com/media/MuseumofModernArt/collection/master/Artists.csv
- Please fo function to set grades .appropriate r code?v. Display only the StudentID, Programming Score and the Maths Score. vi. Show records of students with ID numbers from BIT2016003 to BIT2016005 vii. Select records of students who scored below 70 in Maths. viii. Insert the sixth record with Student ID=BIT2016006, First name =Gabriela, Surname = Yeboah, Maths =82, French=79 and Programming=58. ix. Select student(s) whose first name begins with the letter “J”. x. Delete student whose ID = BIT2016004 xi. Remove the surname column from the table xii. Change the French score to 79 for Student ID = BIT2016002 xiii. Remove the Student table from the database xiv. Remove MySchool database from the computer