5. Kim likes to shop on Wed, but there is 25% sale on Thurs and an additional 10% before noon; plus an additional 15% if she spent more than $400; after discounts, how much is the savings if she spend $401?
Q: Write a python program to get input choice from the user and perform the operations given Choice…
A: Program: #input choice choice=int(input("Input choice: ")) #if Choice is 1 if choice==1: #input 1…
Q: or the following block of code, select the most appropriate Big-O running time in terms of the input…
A: Here in this question we have given a code segment and we have asked to find the time complexity in…
Q: You are given two variables one is associated with a float ahd hame talweight, containing the weight…
A: Please find the answer below :
Q: We use array method _ to produce two-dimensional arrays from one-dimensional ranges. a. shape b.…
A: I have given an answer in step 2.
Q: draw a scatter plot using random distributions to generate balls of different sizes
A: Python Code and output given below:
Q: The script has four steps: 1. Read a list of integers (no duplicates). 2. Output the numbers in the…
A: Solution: Python program: # Declare global variable count_swap and comparisons count_swap = 0…
Q: Write a program to print the following pattern 123456 12345 1234 123 12
A: Following is the python program that: declares a variable number to take a count on numbers to be…
Q: Salary Options: You are offered two salary options for a fixed number of days. Option 1: $100 per…
A: def option1(n): salaryFromOption1=100*n; #option1 is paying 100 everyday return…
Q: Prompt the user to enter a value for yards, which must be greater than 0 and not greater than 10 For…
A: Solution :
Q: Which of the following is always true about conditions? O Conditions always ask a yes or no question…
A: True about condition in above given option
Q: Which widget allows to create screen inside another screen?
A: The answer to this question is Frame
Q: 1. Given the initial statements s1 = [2,1,4,3] s2 = ['c','a','b'] show the result of evaluating each…
A: I give the output along with an explanation
Q: Write a program that ask the user to input a single character and print a message "It is a vowel",…
A: While doing programming in any programming language, you need to use various variables to store…
Q: 2. Factors a) Define a function named printFactors() with a parameter n. This function prints all…
A: #adef printFactors(n): #takes parameter n #printing all factors of n in a line for i in…
Q: Write a class called Quadratic, which implements a quadratic polynomial with integer coefficients.…
A: Below is the required code in python and sample output:
Q: Assume the variable authors references a list. Write a for loop that displays each author in the…
A: authors = ["Chetan Bhagat", "Amrita Pritam", "Jhumpa Lahiri", "Khushwant Singh", "R. K. Narayan"]…
Q: An ! character as alternative separator for the print function? sep is ! separate = ! %3D sep >> '!'…
A: EXPLANATION: The sep operator is used to perform formatting in the string and information in the…
Q: Modify the cone class you have already written in the lab as follows: - Modify the constructor so…
A: Algorithm for the code:- 1. Start 2. Define a class named 'Cone' with three instance variables…
Q: The purpose of this question is to write a program that will perform these nutritional calculations.…
A: We have to write the code in python. We have no. of grams of fat and number of grams of…
Q: What is the correct combination of function and parameter to create a pie chart in Matplotlib?
A: It is a python library which can be used to create various visualizations such as charts, graphs and…
Q: 5- Write a separate function for each of the following questions. Place all the functions in func.py…
A: Python program to solve the given problem is below. ***Note: According to Bartleby policy we…
Q: Define a function named translate english_french(french_dictionary, word) which takes a translation…
A: First we have to Install Proper Python Modules > Go To Your Terminal Type : - pip Install…
Q: Why is it useful to store information with different data types? When do you choose to use a list…
A: A list a mutable collection of elements. It allows for storing mixing element types that can be…
Q: Which of the following is an invalid statement? O abc = 10,000,000 O ab_c = 1,000,000 O a,b,c =…
A: The Answer is in step2
Q: Write a program that ask the user to enter his/her letter grade and then respond with an appropriate…
A: grade = input("Enter your grade : ") #taking user inputif(grade == 'a' or grade == 'A'):…
Q: Copy the above code into your Python file, and then write a class Mansion that inherits from House.…
A:
Q: Write a python class called fraction that represents a fraction with a numerator and a denominator.…
A: Functions: __init__() is used to initialise the value of numerator and denominator gcd() is used to…
Q: Write a program that requests the floating number of hours a person works in a given week and the…
A: wagePerHour=float(input("Enter hourly wage: ")); #input wage per…
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 2 images
- 41. A machine is purchased for P 55,000. The salvage value in 20 years is P 10,000. What is the depreciation in the first three years using straight line method? A.P 6,750 B. P6,850 C. P 6,570 D. P 6,580The public utilities commission has decided that the electric company overcharged its customers for two months last year. To make up the difference to the customers, the commission orders the company to decrease each of the next month’s bills by 10%. The city also levies a 3%utility tax, which is to be applied to the bill before it is discounted. Also, the10% discount does not apply to the utility tax. Assume electricity costs $0.16per kilowatt-hour. Write a program to compute the next month’s electricity bill given the number of kilowatt-hours consumed as inputA coal mine purchased 3 years ago for $7 million was estimated to contain 4,000,000 tons of coal. During the past 3 years the amount of coal removed was 21,000, 18,000, and 20,000 tons, respectively. The gross income obtained in these 3 years was $257,000 for the first year, $320,000 for the second year, and $340,000 for the third year. What is the cost depletion allowance for year 1.
- please solve in a quarter of an hour and they came An electricity distribution company wants to calculate the electricity fee to be paid by the subscriber according to the type of electricity usage place (Residential: u or U, Workplace: p or P) as follows; In workplaces; 3.78TL for each kilowatt-hour (kwh), In residences Up to the first 60 kWh, each kWh is 2.98 TL, Then, up to 120 kWh, each kWh is 3.62 TL, For more (more than 100 kWh), it charges 2.56 TL for each kWh. Using the C programming language, write an electricity bill calculation program in accordance with the rules below. 1-Use the switch.case structure while writing the program. 2-First, we ask the user for the 6-digit subscriber number. The user will enter a random 6-digit number after the program runs. 3- After entering the usage type, the first and last meter reading values will be entered randomly from the keyboard. Here, the first read value cannot be greater than the last read value. Create a blocking line for this…A school dance committee is to consist of 2 freshmen, 3 sophomores, 4 juniors, and 5 seniors. If 6 freshmen, 7 sophomores, 9 juniors, and 7 seniors are eligible to be on the committee, in how many ways can the committee be chosen? Your answer is:During the tax season, every Friday, the J & J tax accounting firm provides assistance to people who prepare their own tax returns. Their charges are as follows:a. If a person has low income (<= 25,000) and the Consulting time is less than or equal to 30 minutes, there are no charges; otherwise the service charges are 40% of the regular hourly rate for the time over 30 minutes.b. For others, if the Consulting time is less than or equal to 20 minutes, there are no service charges; otherwise, service charges are 70% of the regular hourly rate for the time over 20 minutes.(For example, suppose that a person who has low income is spent 1 hour and 15 minutes, and the hourly rate is $70.00. Then the billing amount is $70.00 x 40 x (45/60) = $21.00). Write a program that prompts the user to enter the hourly rate, the total Consulting time, and whether the person has a low income. The program should output the building of Mount your program must contain a function that takes as input…
- Don't hand writing solution.A call center has 60 employees on‐line, each of whom make one phone call every 3 min on average, and talk on average for 2 min. Each call costs 15¢. What is the total traffic in erlangs? How many circuits are required for a GoS of 1%? How much should the yearly (250 working days, 8 working hours a day) lease price be for the company to make a 50% saving in its telephone bills over the first 3 years? Assume the lease set‐up fee of $30,000 should be paid over a period of 3 years.A company supplies a rang of cosmetic products and gives discounts on order as follows: For order less than 1000sh a discount of 2% is given. For orders Worth 1000sh and above a discount of 5% is given. These discounts are only given if the customer's account is less than four weeks in arrears.If the account is more than 8 weeks in arrears, a proforma invoice must be sent and settled before dispatch. Prepare a limited entry decision table for the above information.
- The Mayfree Appliance Company requires sheet metal for its appliances. The company can purchase long coils of sheet metal in two different widths: 65 inches and 40 inches. The company must purchase the coils by linear foot of length: $1.20 per foot for a 64-inch coil and $1.00 per foot for a 40-inch coil. (This implies that a square foot, say, of the wider coil is less expensive.) Up to 4000 feet of the 65-inch coil is available, and up to 6000 feet of the 40-inch coil is available. There are manufacturing requirements for six different widths: 50, 45, 40, 35, 20, and 10 inches. Mayfree’s requirements are expressed as lengths of the various widths. The company requires 1000 feet of 50-inch width, 2500 feet of 45-inch width, 3000 feet of 40-inch width, 2300 feet of 35-inch width, 1300 feet of 20-inch width, and 2000 feet of 10-inch width. Determine how much of each width coil Mayfree should purchase and how it should cut the coils into various widths to meet its requirements at minimal…Clyde Clerk is reviewing his firm’s expense reimbursement policies with the new salesperson, Trav Farr. “Our reimbursement policies depend on the situation. You see, first we determine if it is a local trip. If it is, we only pay mileage of 45 cents a mile. If the trip was a one-day trip, we pay mileage and then check the times of departure and return. To be reimbursed for breakfast, you must leave by 7:00 A.M., lunch by 11:00 A.M., and have dinner by 5:00 P.M. To receive reimbursement for breakfast, you must return later than 10:00 A.M., lunch later than 2:00 P.M., and have dinner by 7:00 P.M. On a trip lasting more than one day, we allow hotel, taxi, and airfare, as well as meal allowances. The same times apply for meal expenses.” Draw a decision tree depicting the reimbursement policy in this Problem using LucidChart or Word documenti need the answer quickly