program6_1.py BetterBuy is having a sale. Write a program that uses a while loop to store to a file the names, regular prices, and price reductions (as percents) for selected items in the promotion. The program should enable the user to enter this data from the keyboard as shown below . Each datum should be stored on its own line in the file.
Q: Given the IP address, Solve for the network address, range of host addresses and broadcast address b...
A: Given the IP address, Solve for the network address, range of host addresses and broadcast address...
Q: Draw the logic circuit represented by the following expression. X A+ B[C+ D(B+ C)]
A:
Q: What are the three most important characteristics of a successful network? Describe one using your o...
A: Introduction: A network must be able to meet a variety of requirements. The three most crucial are p...
Q: People who work with computers and humans use a lot of different ways to measure how well they work ...
A: The answer as follows
Q: Without using any loop In PHP programming languague The value of the input variable is 9.3,5,5 7,8 H...
A: Code to print sum of all the the umbers in the list <?php $x = array(9, 3, 5, 5, 7, 8);echo "Sum ...
Q: This is the code I have to work with: four_dice = np.zeros([pow(6,4),5]) n = 0 outcomes = [1,2,3...
A: OUTPUT 1 2 3 4 Total 0 1.0 1.0 1.0 1.0 4.0 1 1.0 1.0 1.0 2.0 5...
Q: The number of operations executed by algorithms A and B is 100n2 and 4n4, respectively. Determine n0...
A: We are given two algorithms with their total operations and we have to tell at what value of n0 algo...
Q: Write a program that starts out by flashing an LED connected to pin7 at 2Hz. On a button press (butt...
A: Given :- Write a program that starts out by flashing an LED connected to pin7 at 2Hz. On a button pr...
Q: IN a flowchart Download the Flowgorithm file HazelsPartial.fprg and complete the program that calcul...
A: So in this problem, you have asked to write a program that calculates service charges for Hazel’s Ho...
Q: What is the next step required to deploy the GPO now that it has been created?
A: Policy settings may be stored in the GPO, which is a collection of policy settings. A GPO has a uniq...
Q: Without using any loop In PHP programming languague The value of the input vanable is 9 3,5 5,70 How...
A:
Q: Write a program in php to check whether a given array is sorted in descending order
A: This is the program in PHP to check if the array is in descending order or not. If it is not in desc...
Q: What is the truth value for following compound propositions: (Given p=F and q=F) (p vq) + (q → ¬p)
A: Answer is in step 2
Q: Do you think using Virtual reality is dangerous?,
A: Answer: Yes, using Virtual reality is dangerous.
Q: c) How CROC index card can be used for testing Object-Oriented application?
A: Class-responsiblity collaboration effort (CRC) cards are a conceptualizing device utilized in the pl...
Q: 23. In Javascript write a program to print the first 5 even natural numbers and the sum of the first...
A: Write a Javascript program to print the first 5 even natural numbers and the sum of the first 5 even...
Q: Write a short Python program to support your answer (for example, show that you checked whether ther...
A: Answer: We need to check for that the smallest number for the equation given is f that we check. - W...
Q: What would you write if you wanted to apply a subnet exception?
A: Introduction: A subnetwork is like a logical subdivision of an IP network. As a result, an IP addres...
Q: Explain why magnetic tape is still used in certain places.
A:
Q: take a look at the udp header 12 03 00 0f 00 1e a3 10 12 03 00 0f 00 1e a3 10 what is the udp's over...
A: Given UDP header: 12 03 00 0f 00 1e a3 10 The UDP header has four parts, each of two bytes. Source ...
Q: Computer Science Suppose, a control register of 8155 PPI has an address of 1Fh. If following instruc...
A: Answer:
Q: 1 year = 15 months 1 month = 30 days write a function that takes an int parameter that represents th...
A: logic:- number of days as per the given requirement will be calculated by multiplying 15 months*30 ...
Q: he user to enter a person's age. the program should display a message indiciating whether the person...
A: Code: inputAge = float(input("Enter person's age: ")) if (inputAge > -1 and inputAge <= 1 ) ...
Q: 33. Input a digit t from the user and then print the pattern given below using the digit t. ttttt t ...
A: Start Using looping statements Find required format Print format Stop
Q: What should a dashboard display? Email, calendar, news, time, weather, reminders? Which ones? All of...
A: Answer: I have given answered in the brief explanation
Q: What Role Do Users Play in the Requirements Process?
A: The end users are an important part of a software development process, s they are the one's that wil...
Q: Computer A uses the Go-back-N ARQ protocol to send a 110 Mbytes file to computer B with a window siz...
A: Given Data: Bandwidth = 500 Mbps Propagation delay (Tp) = 15 ms Frame size = 100K bytes Go back N i...
Q: A developer is building a web application which requires a multithreaded event-based key/value cache...
A: Answer :
Q: Develop a program (based on if-else structure) to recommend the optimum range of air flow for a give...
A: C++code for selecting fuel type and giving the result as expected in output #include <iostream>...
Q: The total RC delay of a fanout-of-2 inverter is A *RC.
A:
Q: (b) END USER USER INTERFACE database Fig 1 Describe the role of every component in the diagram shown...
A: Create an entity relationship diagram and the relationship diagram to show relationship between all ...
Q: Assume you wish to use WebGL to create a software that draws two types of objects: shiny billiard ba...
A: Introduction: Control code is written in JavaScript, and shader code (GLSL) is performed on a comput...
Q: censor technology
A: To understand how internet censorship works, as well as how to circumvent such obstacles, we must fi...
Q: determine the type of reasoning (Inductive/Deductive).
A: Inductive reasoning: It is logically true. It may or may not be realistically true. Examples of in...
Q: Without using any loop In PHP programming languague The value of the input variable is 9,3,5,5,7.8 l...
A: I give the code in PHP along with output and code screenshot
Q: What is the output of the following code, show your work on white paper and attach it in the classro...
A: We need to perform dry run of the given code.
Q: What is the difference between Data Mining and Process Mining?
A: Defined the difference between Data Mining and Process Mining
Q: Identify one major IT project that you want to develop. A project that you think might be very usefu...
A: Answer: One IT project that anyone want to develop that could change the lives and activities of the...
Q: Briefly explain the idea of asymptotic analysis. What do we focus on in asymptotic analysis of the t...
A: NOTE: As per Bartleby guideline, if there are multiple questions, the we are asked to solve first qu...
Q: 5. Let R1 and R2 be regular expressions. Explain how to produce a regular expression R which describ...
A: A regular expression is a sequence of characters that specifies a search pattern in text.
Q: I will do website for doing CVs (homework od CS) give me good name for this website
A: According to your question it seems like your are creating a CV making website and you are looking f...
Q: the key: 10101100100... Find the probable recurrence relation generating that key.
A: grouped in blocks of 7 bits. Given theorem "The maximum sequence length generated by an LSFR of degr...
Q: What is the 17th decimal digit in the decimal representation of 14/11?
A: Division of integers: The division of integers are two types of results Give some fixed decimal dig...
Q: 2. Write a program that returns the minimum of a single-variable function g(x) in a giver region [a,...
A: It is defined as an interpreted, object-oriented, high-level programming language with dynamic seman...
Q: What Is the Hierarchy of Data Warehousing?
A: Introduction: A data warehouse, often known as an enterprise data warehouse, is a reporting and da...
Q: 3. Write a single C++ statement to accomplish each of the following: Compute the sum of three intege...
A: Write a single C++ statement to accomplish each of the following: a. compute the sum of the three in...
Q: A company runs a multi-tier web application that hosts news content. The application runs on Amazon ...
A:
Q: Convert the decimal number 0.625 t.o binary. Use 3 digit places on the right of the radix point with...
A: A fractional decimal number is converted to binary number by repeatedly multiplying it with 2 taking...
Q: DDoS attacks may be carried out by a single individual, but how exactly do they work?
A: INTRODUCTION: It's known as a DDoS attack, and it's an attempt to take down a network or web server...
Q: Give me an example of f formatted string in python. Take all the data from the user.
A: f-strings are string literals that have an f at the beginning and curly braces containing expression...
program6_1.py
BetterBuy is having a sale. Write a
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 5 images
- Store bonuses: If store sales are $80,000 or more, store bonus is $3000 If store sales are $90,000 or more, store bonus is $4000 If store sales are $100,000 or more, store bonus is $5000 If store sales are $110,000 or more, store bonus is $6000 Employee bonuses: If percent of increase is 3% or more, employee bonus is $40 If percent of increase is 4% or more, employee bonus is $50 If percent of increase is 5% or more, employee bonus is $75 Step 3: Modify Module 5 by adding an if statement that will print a message if both the store bonus and the employee bonus are the highest amounts possible. (Reference: Logical Operators, page 147). //MODULE 5 //this module will display store and employee bonus info. Module printBonus(Real storeAmount, Real empAmount) Display “The store bonus is $”, storeAmount Display “The employee bonus is $”, empAmount If storeAmount == _____ AND empAmount == _____ Then Display “Congrats! You have reached the highest bonus amounts possible!”…Store bonuses: If store sales are $80,000 or more, store bonus is $3000 If store sales are $90,000 or more, store bonus is $4000 If store sales are $100,000 or more, store bonus is $5000 If store sales are $110,000 or more, store bonus is $6000 Employee bonuses: If percent of increase is 3% or more, employee bonus is $40 If percent of increase is 4% or more, employee bonus is $50 If percent of increase is 5% or more, employee bonus is $75 Step 1: Modify the storeBonus module to write a nested if else statement to set the new bonus levels. Complete the missing lines. (Reference: The if-then-else Statement, page 140). //MODULE 2 //this module will determine what the bonus levels are Module storeBonus (Real monthlySales, Real Ref storeAmount) If monthlySales >= 110000 Then Set storeAmount = 6000 Else If monthlySales >= ______________ Then Set storeAmount = ___________________ Else if monthlySales >= ______________ Then Set storeAmount =…Use the given data to classify the record below using the k-NN algorithm for k = 1 to 5. Loan Purpose Checking Repairs Savings Months Customer Employed Months 0 900 25 4 Click the icon to view the table of classified records. D Complete the table below for the nearest neighbors and for the classification of the new record for each value of k. k Distance Classification 1 2 3 4 5 (Round to four decimal places as needed.)
- LUNCH SALES Days of Week Lunch Sold Qty Unit Price Total Sold Monday Chicken 25 15.00 $ 375.00 Monday Pork 15 20.00 $ 300.00 Monday Fish 20 25.00 $ 500.00 Tuesday Mutton 15 23.00 $ 345.00 Tuesday Fish 30 25.00 $ 750.00 Wednesday Chicken 55 15.00 $ 825.00 Thursday Turkey 45 18.00 $ 810.00 Friday Turkey 60 18.00 $ 1,080.00 Saturday Chicken 15 15.00 $ 225.00 Saturday Mutton 45 23.00 $ 1,035.00 Saturday Fish 55 25.00 $ 1,375.00 Saturday Turkey 50 18.00 $ 900.00 Saturday Pork 20 20.00 $ 400.00 Sunday Fish 55 25.00 $ 1,375.00 Sunday Mutton 35 23.00 $ 805.00 Sunday Chicken 30 15.00 $ 450.00 #NAME? Fruit # of Days Sold Total Sold Sum of Total Sold Chicken Mutton Fish Turkey Pork Instructions: (Fill in the columns of the "Calculations Table") 1.…The - method has a parameter, amount, that is a double. When the method is called, the amount that is to be withdrawn from the account is passed into this parameter. The value of the parameter is then subtracted from the value in the balance field. The method multiplies the interestRate field by the balance field to determine the monthly interest for the account. The amount of interest is assigned to the interest field and added to the value in the balance field. Choose... Choose...Fill in the blank When the markdown is added to the selling price, you may determine the price of an item. (clue 8 letters)
- No copy paste answer plz Detailed answer will be Upvoted1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 A B Minimum Sales Made $ $ $ 5,000.00 10,000.00 Name Ryan Andy Stanley Phyllis Jim Dwight Michael Pam Karen Creed $ $ $ $ $ $ $ $ $ $ C Reward Level Bronze Silver Gold Total Sales Made 3,800.00 5,000.00 6,000.00 7,500.00 12,000.00 14,500.00 10,000.00 300.00 8,500.00 200.00 $ $ $ D Average (AVERAGEIF) 1,433.33 6,750.00 12,166.67 Reward Level (IF/AND) Bronze Silver Silver Silver Gold Gold Gold Bronze Silver Bronze E Count (COUNTIF) 3 4 3 Reward Level (VLOOKUP) Bronze Silver Silver Silver Gold Gold Gold Bronze Silver Bronze Use the above spreadsheet for the following questions a, b, c, and d. a) Create a formula in cell D8 that uses the IF and AND functions. The formula will determine each Reward Level based on the possible Rewards and accompanying minimum sales made. You should be able to autofill down through cells D8:D17. b) Create a formula in cell E8 that uses the VLOOKUP function with the table array $B$3:$C$5. The formula will determine…USE EXCEL PLEASE A buyer and seller execute buy-back contract. For the seller, the cost of manufacturing a Ski-Jacket is $35 per unit. The buy-back price is $42/unit, and the fixed cost is $100000. For the buyer, the selling price is $95/Ski-Jacket, the purchase price is $55/Ski-Jacket and the purchase quantity is 15,000. The demand for the buyer follows a discrete distribution as given below: Demand Probability 12,000 0.071 13,000 0.071 14,000 0.143 15,000 0.143 16,000 0.214 17,000 0.07 18,000 0.143 19,000 0.145 What is the expected supply chain profit?
- Every campus has full time students who attend classes between 8h00 and 17h00 during theweek. Every campus also has part time students who attend classes between 18h00 and 21h00 onweekdays. It is stated that no student shouldbe allowed to access the campus after 12h00. The campus has decided to change this rule to state“no full-time student will be allowed to access the campus after 12h00. Part time students canaccess the campus as from 17h00”. By means of pseudocode, demonstrate how overloaded methods can be used use java languageFuture Value Calculator Years must be less than 31. Investment Amount: 1000000 Yearly Interest Rate: 1.5 Number of Years: 34 CalculateEvery campus has full time students who attend classes between 8h00 and 17h00 during theweek. Every campus also has part time students who attend classes between 18h00 and 21h00 onweekdays. It is stated that no student shouldbe allowed to access the campus after 12h00. The campus has decided to change this rule to state“no full-time student will be allowed to access the campus after 12h00. Part time students canaccess the campus as from 17h00”. By making use of a class diagram, demonstrate how the concept of inheritancecan be used to represent the scenario provided at the beginning of thisquestion. use java language