Write a Python program that prompts the user for the cost of two items to be purchased. Then prompt the user for their payment. If they enter an amount that is less than the total cost of the two items, print a message that tells them how much they still owe. Otherwise, print a message that thanks them for their payment and tells them how much change they will receive.
Q: shown below and minimum_support = 30%. Using A-priori
A:
Q: What is the next step in the GPO deployment process now that it has been created.
A: Introduction: Policy settings may be stored in the GPO, which is a collection of policy settings. A ...
Q: Write a method isPalidrome(String arg) that determines if a String is palindrome or not. Palindrome ...
A: The following program checks if a string input is palindrome or not. Palindrome strings are those st...
Q: On the Sales Data worksheet, calculate the total earnings for each sales associate. In cell G2, cal...
A: Note: I have given the answer as asked in the question Select the cell G2 Enter the formula in G2 a...
Q: Describe why web application security is critical. What may go wrong with an unsecured application? ...
A: Introduction: here in this question we will discuss about why web application security is critical t...
Q: Which of the following plots is the best plot to explore the relationship between two categorical va...
A: SUMMARY: - Hence, we discussed all the points.
Q: rt A: w you are quite comfortable with 2D pointers. Here your goal is to define and allocate emory f...
A: #include <bits/stdc++.h> using namespace std; void allocateArray(int*** &arr, int numPag...
Q: Payment Details Amount 4200 O Cash O Credit Card Payment Type Cash & Credit Card Gift Check 500 Cash...
A: Thenswer is given below:-
Q: Check Lesson 2 Name Mary Bayoct Word Play Use the clues to unscramble the words below. 1. iavinvse :...
A: Solution: The answer for above question is given below.
Q: dplyr is one of the most popular packages used in R for data manipulation. Which of the following is...
A: a. summary()
Q: (x2 + y2)+ Cx-y) (x+y) W=
A: logic:- use Math.Pow() function to find nth root of a number. Syntax:- Math.Pow(num1,root)
Q: In this article, we will discuss what an international marketing information system (IMIS) is and ho...
A: International marketing information system (IMIS) Information requirements for international marketi...
Q: Considering whether or not to consider trade-offs between storing produe number of locations in diff...
A: given - Considering whether or not to consider trade-offs between storing products at a greater num...
Q: 5. Consider the linear block code of length 5 and dimension 2 with the following generator matrix [1...
A: Below i have answered:
Q: Software Engineering(short question). Plese write in your own words An analysis rule of thumg is th...
A: Rules of Thumb: Requirements Analysis Rules of Thumb Rules of Thumb Models should focus on requireme...
Q: The production rules for the derivation tree are as follows −E=E+E E=E*E E=a|b|c Here, let the inpu...
A: The production rules for the derivation tree are as follows −E=E+E E=E*E E=a|b|c Here, let the inpu...
Q: Consider the following questions: What are some of the most important considerations when it comes t...
A: Backup copies allow data to be restored from an earlier point in time to help the business recover f...
Q: Logical Design (Chapter o Convert the University ER Diagram into relational database schema. (Fname ...
A: answer is
Q: There are blank 3 digit counting numbers that are made using only the odd digits 1,3,5,7,9 ?
A: Here in this question we have we have asked to make 3 digit numbers from 1,3,5,7,9. Note- here nothi...
Q: A company's board thinks it needs to reward top management for advancing the company's aims. The boa...
A: Bonus schemes – a brief overviewEmployee bonus schemes are generally a positive strategy and can pro...
Q: Find out what kind of motherboard you have using this guide.
A: Introduction: A motherboard is the primary circuit board found within a computer in computer science...
Q: In this article, we will discuss what an international marketing information system (IMIS) is and ho...
A: The International Marketing Information System is designed to collect data on international markets ...
Q: How long ago was the term "computer literate" coined?
A: Introduction : Computer Science in the Past and Present : Computers have a lengthy history, with som...
Q: Provide an explanation for excessive redemption requirements.
A: Introduction: If the standards for disproportionate redemption under section 302 are met, stock rede...
Q: Q)write and apply, porngne inc+t) to convert Srom centigrate to fahrenleite where F = c x2 %3D
A: PROGRAM EXPLANATION: Include the header file. Define the main function. Take input temperature on a...
Q: What is the Single Audit Act, and how does it work? What impact has this statute had on the auditing...
A: The Act on a Single Audit: The Single Audit Act mandates that any organization receiving grants or f...
Q: Computer Science Many websites let users rate items by selecting some number of stars. On the web,...
A: Step 1 Below i have given the code: Step 2 HTML:
Q: Three-digit number 1) Find whether the first and last number are equal 2) Find whether the sum of th...
A: According to answering policy we can answer only 3 parts. You can re-ask the remaining parts
Q: Used to check signs for abnormality such ad in cardiac arrest, ECG, and others. Select one: a. diag...
A: Here, I have to choose an option for the above question.
Q: Aside from the 4 Reasons Why People Dance (enjoyment, profession, ritual, praise and worship of God ...
A: Aside from the 4 Reasons Why People Dance ( Enjoyment , Porfession , Ritual , Priase and Worship of ...
Q: A software process model is an abstract representation of a process. It presents a description of a ...
A:
Q: Every baby is the result of a unique birth, and every birth is of a unique baby. 2. In addition to (...
A: Every entity and attribute share some kind of relationship between them. It can one on one relations...
Q: 3. Write a program that prints the uppercase alphabet in reverse order, (ie, prints ZYXW...CBA) by a...
A: The answer is given below:-
Q: Create a new class named E1P1 Create the Main “Stub" through Eclipse. Bob is an economist and he lov...
A: Step 1 : Start Step 2 : Create a method getCategory() which accepts a number and returns it's respec...
Q: Words, describe what hapPpens at every step of our network model, when a node on one network establi...
A: We need to explain the mentioned layers of network.
Q: Using the C#, create programs using the do-while loop that will produce the following outputs: 5 4...
A: program on do-while loop syntax for do-while do { code block }while(condition); our program is to di...
Q: What are the instance and class variables ?
A: Instance Variable :- It is essentially a class variable without a static modifier and is normally ...
Q: In this article, we will discuss what an international marketing information system (IMIS) is and ho...
A: International Marketing Information System is a system for gathering, storing, analyzing and distrib...
Q: Providing copies of the auditor's earlier paperwork to the customer is permitted under the circumsta...
A: Introduction: Audit documentation contains, among other things, records of the work's preparation an...
Q: GaltonBoard Requirements In the starter code you will find a program to simulate a Galton Board. The...
A: The code in C++ is given below:-
Q: Write a program, in python, that checks if the last data item entered appears earlier in the list. ...
A: - We need to check if the last data item entered in a list appeared before or not.
Q: Given an array A containing N numbers. The problem is to find the minimum gcd among all non-decreasi...
A: If we look closely, we will note that the small GCD of any two numbers will be the GCD of all the el...
Q: Consider a computer with the following characteristics: total of 4 Mbyte of main memory; word size o...
A: 3 B B C A E : 0011 1011 1011 1100 1010 1110 main memory: 4MB = 222 Bytes word size = 1 Byte block si...
Q: It includes all programs that analyze data, update files, and printout information and other process...
A: let us see the answers:- "Since you have asked multiple questions I am solving the first two for you...
Q: In computer science, what is the abbreviation for Network Time Protocol
A: Please find the answer below
Q: What is unary operator?
A: Operators in the programming language are symbols that tell the interpreter to perform certain logic...
Q: ace as a cryptographer or a com
A: Ada Lovelace as a cryptographer or a computer programmer
Q: In computer network, bus, star, ring, mesh and tree are types of topology why?
A:
Q: Create an ER-Diagram for a University database. A university consists of several departments. Each d...
A: Create an ER-Diagram for a University database. A university consists ofseveral departments. Each de...
Q: Suppose the window of a data stream is as shown below. (Most recent bit is on the right side) 10 110...
A:
Write a Python
Step by step
Solved in 3 steps with 1 images
- Write a python program that asks the user to enter a person’s age. The program should display a message indicating whether the person is an infant, a child, a teenager, or an adult. Following are the guidelines: If the person is 1 year old or less, he or she is an infant. If the person is older than 1 year, but younger than 13 years, he or she is a child. If the person is at least 13 years old, but less than 20 years old, he or she is a teenager. If the person is at least 20 years old, he or she is an adult.Write a Python program that prompts the user for the cost of two items to be purchased. Then prompt the user for payment. If the amount entered is less than the total cost of the two items, print a message that states how much is still owed. Otherwise, print a thank you message and state how much change will be given.Create a python program for the following: Ask the user to input a color marble and set amount to 1. If the user’s input is not red increase amount by 1, let the user know that they have to pick another marble, and prompt them to do so. When the user does input red then print out a message giving them the amount of times it took them to input red.
- write a PYTHON program for An online music and apps store offers all apps for 3$ each and all songs for 7$ each. The store requires members to prepay any amount of money they wish, and then download as many apps or as many songs accordingly. You are required to write a python program that would ask the user for the amount that he/she will pay, then display two messages indicating: - the maximum number of apps that can be downloaded, and how much funds will remain in the account after that, if any. - the maximum number of songs that can be downloaded, the number of apps that can be downloaded after that if funds allow, and how much funds will remain in the account after that, if any. For this exercise, assume that the user will always enter a valid integer value that is >= 0, and within the limit of the integer range. An example of how your program should behave is indicated on the next two slidesWrite a program that computes the average temperature of Jeddah over one week. The user must be prompted to enter the temperature of seven days, one at time. If an entered temperature value is less than -10oC or greater than 70oC, the user must be shown the following message and prompted to enter that value again. “Temperature of Jeddah cannot be less than -5oC or greater than 70oC. Please enter again: ” Finally, print out the average temperature up to decimal places. Note: The average value of N temperature readings can be computed by adding those N readings and then dividing the sum by N. Remember to use appropriate datatypes. in c languageWrite a program that reads a bank account balance and an interest rate and displays the value of the account in ten years. The output should show the value of the account for three different methods of compounding interest: annually, monthly, and daily. When compounded annually, the interest is added once per year at the end of the year. When compounded monthly, the interest is added 12 times per year. When computed daily, the interest is added 365 times per year. You do not have to worry about leap years; assume that all years have 365 days. For annual interest, you can assume that the interest is posted exactly one year from the date of deposit. In other words, you do not have to worry about interest being posted on a specific day of the year, such as December 31. Similarly, you can assume that monthly interest is posted exactly one month after it is deposited. Since the account earns in- terest on the interest, it should have a higher balance when interest is posted more frequently.…
- Write a program that requests the user to enter the total purchase in dollars and cents ( for example, $23.65, $45.00, etc) and outputs the discount in dollars and cents. If the total purchase is less than 200 dollars, there is no discount. If the total purchase is more than 200 dollars but less than or equal to 1000 dollars, then the discount is 15%, and if the total purchase is more than 1000 dollars, then the discount is 30%. At this store, a student always gets 30% discount on all purchases. Include this information in your codes.Write a program that asks the user how many credit units they have taken. If they have taken 23 or less, print that the student is a freshman. If they have taken between 24 and 53, print that they are a sophomore. The range for juniors is 54 to 83, and for seniors it is 84 and over.Write a program that calculates the points earned by a soccer team. The program reads from the user the number of games the team won and the number of games ended as a draw. Note that a win brings 3 points to the team and a draw brings 1 pt. Your program also prompts the user to enter the number of expected points and displays a message "Your expectation is so close" if the difference between the earned points and the expected points is less than 5. Otherwise, it prints "The points difference is higher than 5" Sample Run 1: Enter the number of games won: 20 Enter the number of draws: 7 The team earned 67 points Enter the expected points for the matches: 70 Using java Your expectation is so close Sample Run 2: Enter the numbet of games won: 2 Enter the number of draws: 10 The team earned 16 points Enter the expected points for the matches: 9 The points difference is higher than 5 The points difference is higher than 5
- Write a program that computes the average temperature of Jeddah over one week. The user must be prompted to enter the temperature of seven days, one at time. If an entered temperature value is less than -10oC or greater than 70oC, the user must be shown the following message and prompted to enter that value again. “Temperature of Jeddah cannot be less than -5oC or greater than 70oC. Please enter again: ” Finally, print out the average temperature up to decimal places. Note: The average value of N temperature readings can be computed by adding those N readings and then dividing the sum by N. Remember to use appropriate datatypes.Write a program that reads the amount of a monthly mortgage payment andthe amount still owed—the outstanding balance—and then displays theamount of the payment that goes to interest and the amount that goes toprincipal (i.e., the amount that goes to reducing the debt). Assume that theannual interest rate is 7.49 percent. Use a named constant for the interest rate.Note that payments are made monthly, so the interest is only one twelfth ofthe annual interest of 7.49 percent.Write a program that will ask the user to enter salary amount. And then compute for the TAX amount. If salary is 10,000 and below, the tax amount is 21% of the salary amount. if the salary is between 10,001 and 30,000, the tax amount is 28% of the salary amount. If the salary is more than 30,000, the tax is 31% of the salary amount. Then compute the net salary which is the Salary amount less tax amount. Display tax amount and net Salary.