we want to find if we need to buy additional stock for each item in our inventory item list according to the following conditions: - if item stock for november and december was less than 100 , OR stock for septemper and october less than 200 then we will buy stock double the stock of december. -else, we will buy stock half december stock. example: the stock of pens for november and december is 95 which is less than 100 then we will buy double the stock of december which is (84 2)=168
Q: Suppose that there are N events to be held this year. The ith event is scheduled from day si to day…
A: Here we are initializing a list for sorting the dates , then obtaining each si and ti through map…
Q: In binomial_overbooking.xlsx, the formula in cell B7 is not general. For example, if the overbooking…
A: Overview of Binomial random variable: n independent trials occur Airline overbooking - Airline…
Q: A salesman has n things to sale. The cost price of all n things is different out of which p things…
A: Since the programming language is not mentioned in the question, we will answer this question in the…
Q: Given the following salaries in $1,000, the average salary is and the most common salary is…
A: Answer : total salary is given = $1000 We have given number of salaries count = 8 Salaries : 50 ,…
Q: A book salesperson living in New York needs to visit clients in Utah, Jersey, LA, and Milan within a…
A: Given Data : The distance of each city from the other cities. To find : The distance traveled…
Q: There are N people numbered from 1 to N around a round table. Everyone has a different number in…
A: the answer is given below:-
Q: Explain the action oflthe following procedure which includes a function procedure within itself.…
A: In the above program, 'SALES' is the label of the main procedure. The declaration shows that the…
Q: A trainer of a football team decides to merge team A, team B and team C together as one team. As we…
A: please do support for my efforts thanks! answer: #include <bits/stdc++.h>using namespace…
Q: Problem: • A chocolate bar at a local vending machine costs $1 Each chocolate bar has 1 coupon in…
A: Definition of java Sun Microsystems first introduced Java, a programming language and computing…
Q: A thief is robbing a jewelry store showcasing various gems. Having an empty knapsack which can fill…
A:
Q: 3- Suppose you have the information of some of chickens farms (F1, F2) as fallow: chicken dilscount…
A: Note: since your question contain multiple part but we can answer only first 3-sub parts due to our…
Q: Suppose, you have been given a non-negative integer which is the height of a 'house of cards'. To…
A: Python program for the given problem:-
Q: There are 2016 passengers about to board a plane, numbered 1 through 2016 in that order. Each…
A: There are 2016 passengers about to board a plane, numbered 1 through 2016 in that order. Each…
Q: Do the solution in C/C++ with the Doubly Circular Linked List. Your codes should also be able to…
A: Solution:-- 1)The given question has expected for the solution to be provided in the form of an…
Q: In the Fractional Knapsack Problem, you are allowed to take f of each object, where f is some r…
A: Here first we need to find profit/weight or value/weight ratio of each item and then choose items.
Q: There are four possible ways to cross the river for a person. Let the first location is denoted by…
A:
Q: In the Sam’s Bookstore problem, the quantity dis-count structure is such that all the units ordered…
A: Output :-
Q: An example of a 0,1 integer model is deciding what all to put into my vehicle(rather than with the…
A: Integer programming is a branch of mathematical programming or optimization, which involves creating…
Q: A restaurant currently uses 62,500 boxes of napkins each year at a constant daily rate over the 365…
A: In this question we need solve one statement for the restaurant where we need to find the time…
Q: Q3: Suppose you have the fallowing information for weekly product in a Local factory then: افرض أن…
A: The question has three supports. Find the product quantity and product sales when entered a name in…
Q: Problem 2 Suppose we have height and weight and its corresponding Tshirt size of several customers.…
A: Actually, K-Nearest Neighbor is one of the simplest Machine Learning algorithms based on Supervised…
Q: An electricity distribution company wants to calculate the electricity fee to be paid by the…
A: As no programming language is mentioned it is solved using basic C++
Q: we want to find if we need to buy additional stock for each item in our inventory item list…
A: The IF function to test for or evaluate certain conditions, and then react differently depending on…
Q: 3- Suppose you have the information of some of chickens farms (F1 , F2) as fallow: A в D F G chicken…
A: Given, The chicken farms(F1, F2) information in excel. To calculate 1. chicken price depending on…
Q: he seller has a whole new store for sale "buy 2, get 1 for free". or legal reasons, they are unable…
A: import java.util.ArrayList; import java.util.List; import java.util.Scanner; import…
Q: An electricity distribution company wants to calculate the electricity fee to be paid by the…
A: We are given An electricity distribution company wants to calculate the electricity fee to be paid…
Q: Suppose 59% of the customers at Pizza Palooza order a square pizza, 76% order a soft drink, and 30%…
A: Dear Student, As Probability of ordering a square pizza = P(A) = 0.59 Probability of ordering a soft…
Q: corporate profits sum The sales purchases experses profit 4% tax I profit all compares) 1000 5000…
A: 1) =MIN (F3:F7)
Q: It has been observed by management that some faculty member at the university demonstratesa…
A: CODE:- #include<iostream>using namespace std;class Teacher_salary{ public:…
Q: Suppose you want to pay back someone with 28 BDT and you have unlimited supply of 1 taka, 2 taka, 5…
A: The main target is to use minimum number of notes. So we have to pay with highest possible…
Q: A store purchased x packages of AAA batteries at $5 per package and y packages of AA batteries at $7…
A: GIVEN: A store purchased x packages of AAA batteries at $5 per package and y packages of AA…
Q: The value y (in 1982-1984 dollars) of each dollar paid by consumers in each of the years from 1994…
A: given values:
Q: The seller has a whole new store for sale "buy 2, get 1 for free". For legal reasons, they are…
A: SUMMARY: - Hence, we discussed all the points.
Q: The value of the profit function (\pi ) at prices of product 8 and of resources 3 and 12 is 110,…
A: ANSWER - The value of the profit function is 275
Q: 2- Suppose the fallowing information about some product in a cloths markets, where there are two…
A: GIven : discount 1=-15%discount2 =-20%product type 1 and product type 2
Q: For tax purpose an item may be depreciated over a period of several years. With the straight-line…
A: item = input("Enter name of the item purchased: ")year = int(input("Enter year purchased: "))cost =…
Q: 15 D H(G) HIG)- 20 10 7 베이 25 세디· 14 E HG) -0 HIG) -2 HIG) - 3 HIG) - 22 20 10 20 20 Y HIG) =9 HG)…
A:
Q: Question 7 • Given pda for {d'b'c* | i = j+ k} (a, ɛ/X) (b, X/e) (c, X/ɛ) (E, ɛ/ Draw a PDA for…
A:
Q: For tax purpose an item may be depreciated over a period of several years. With the straight-line…
A: Actually, program is a executable software that runs on a computer.
Q: IKEO is a furniture manufacturer which produces two sizes of wood blocks (type A and B) that are…
A: Below is the required C++ program: - Program: - // header files#include <bits/stdc++.h> using…
Q: the electricity accounts of resident in a very small town are calculated as following: *if 500 units…
A: Step 1 : Start Step 2 : Take input for the Total UNITS of electricity consumed. Step 3 : Using an if…
Q: 1- Suppose you have the information of sales (Cla) of poultry factory (elall Jen),contain several…
A: Answer is given below .
Q: we want to find the students who are allowed to retake the final exam according to the following…
A: To fill the values in retake/no retake column using if function, following statement can be used:…
Q: 3- Suppose you have the information of some of chickens farms (F1 , F2 ) as fallow: D G chicken…
A: Given, The information of a chicken farm in excel. Need to find out: 1. chicken price 2. discount…
Q: the electricity accounts of resident in a very small town are calculated as following: *if 500 units…
A: In the above code, the input, output and the code screenshot along with the output has been…
Q: [Medium] Suppose, you have been given a non-negative integer which is the height of a ‘house of…
A: Program Plan:- If height =0 return 0 else if height =1 return 8 other wise call the function…
Q: Above ERD will be modified according to following information. In order to correctly analyze the…
A: Given: THE above ERD will be modified according to the following information. In order to correctly…
IF Function Lab submission
Step by step
Solved in 2 steps with 1 images
- Suppose, you are working in a company ‘X’ where your job is to calculate the profit based on their investment. If the company invests 100,000 USD or less, their profit will be based on 75,000 USD as first 25,000 USD goes to set up the business in the first place. For the first 100,000 USD, the profit margin is low: 4.5%. Therefore, for every 100 dollar they spend, they get a profit of 4.5 dollar. For an investment greater than 100,000 USD, for the first 100,000 USD (actually on 75,000 USD as 25,000 is the setup cost), the profit margin is 4.5% where for the rest, it goes up to 8%. For example, if they invest 250,000 USD, they will get an 8% profit for the 150,000 USD. In addition, from the rest 100,000 USD, 25,000 is the setup cost and there will be a 4.5% profit on the rest 75,000. Investment will always be greater or equal to 25,000 and multiple of 100. Complete the RECURSIVE methods below that take an array of integers (investments) and an iterator (always sets to…Suppose, you are working in a company ‘X’ where your job is to calculate the profit based on their investment. If the company invests 100,000 USD or less, their profit will be based on 75,000 USD as first 25,000 USD goes to set up the business in the first place. For the first 100,000 USD, the profit margin is low: 4.5%. Therefore, for every 100 dollar they spend, they get a profit of 4.5 dollar. For an investment greater than 100,000 USD, for the first 100,000 USD (actually on 75,000 USD as 25,000 is the setup cost), the profit margin is 4.5% whereas for the rest, it goes up to 8%. For example, if they invest 250,000 USD, they will get an 8% profit for the 150,000 USD. In addition, from the rest 100,000 USD, 25,000 is the setup cost and there will be a 4.5% profit on the rest 75,000. The investment will always be greater or equal to 25,000 and multiple of 100. Complete the RECURSIVE methods below that take an array of integers (investments) and an iterator (always sets to…TID items_bought 100 {M, O, N, K, E, Y} 200 {D, O, N, K, E, Y} 300 {M, A, K, E} 400 {M, U, C, K, Y} 500 {C, O, K, I, E} Which of the following are maximal itemset in the table above, when minsup is 40%? a. {K, C} b. {M, K} c. {O, N, K, Y}
- To cut an 'n' centimeter-long gold bar into 2 pieces costs $n. When a gold bar is cut into many pieces, the order in which the cuts occur can affect the total amount of costs. For example, to cut a 20 centimeter gold bar at length marks 2, 8, and 10 (numbering the length marks in ascending order from the left-hand end, starting from 1). If the cuts to occur in left-to-right order, then the first cut costs $20, the second cut costs $18 (cutting the remaining 18 centimeter bar at originally length mark 8), and the third cut costs $12, totaling $50. If the cuts to occur in right-to-left order, however, then the first cut costs $20 time, the second cut costs $10, and the third cut costs $8, totaling $38. In yet another order, the first cut is at 8 (costing $20), then the 2nd cut is at 2 (costing $8), and finally the third cut is at 10 (costing $12), for a total cost of $40. Given an 'n' centimeter-long gold bar G and an array C[1..m] containing the cutting points in ascending order): a.…[Very Hard] Suppose, you are working in a company ‘X’ where your job is to calculate the profit based on their investment. If the company invests 100,000 USD or less, their profit will be based on 75,000 USD as first 25,000 USD goes to set up the business in the first place. For the first 100,000 USD, the profit margin is low: 4.5%. Therefore, for every 100 dollar they spend, they get a profit of 4.5 dollar. For an investment greater than 100,000 USD, for the first 100,000 USD (actually on 75,000 USD as 25,000 is the setup cost), the profit margin is 4.5% where for the rest, it goes up to 8%. For example, if they invest 250,000 USD, they will get an 8% profit for the 150,000 USD. In addition, from the rest 100,000 USD, 25,000 is the setup cost and there will be a 4.5% profit on the rest 75,000. Investment will always be greater or equal to 25,000 and multiple of 100. Complete the RECURSIVE methods below that take an array of integers (investments) and an iterator (always…ProblemGiven a value `value`, if we want to make change for `value` cents, and we have infinitesupply of each of coins = {S1, S2, .. , Sm} valued `coins`, how many ways can we make the change?The order of `coins` doesn't matter.For example, for `value` = 4 and `coins` = [1, 2, 3], there are four solutions:[1, 1, 1, 1], [1, 1, 2], [2, 2], [1, 3].So output should be 4. For `value` = 10 and `coins` = [2, 5, 3, 6], there are five solutions: [2, 2, 2, 2, 2], [2, 2, 3, 3], [2, 2, 6], [2, 3, 5] and [5, 5].So the output should be 5. Time complexity: O(n * m) where n is the `value` and m is the number of `coins`Space complexity: O(n)""" def count(coins, value): """ Find number of combination of `coins` that adds upp to `value` Keyword arguments: coins -- int[] value -- int """ # initialize dp array and set base case as 1 dp_array = [1] + [0] * value) ++.
- Problem1Given a value `value`, if we want to make change for `value` cents, and we have infinitesupply of each of coins = {S1, S2, .. , Sm} valued `coins`, how many ways can we make the change?The order of `coins` doesn't matter.For example, for `value` = 4 and `coins` = [1, 2, 3], there are four solutions:[1, 1, 1, 1], [1, 1, 2], [2, 2], [1, 3].So output should be 4. For `value` = 10 and `coins` = [2, 5, 3, 6], there are five solutions: [2, 2, 2, 2, 2], [2, 2, 3, 3], [2, 2, 6], [2, 3, 5] and [5, 5].So the output should be 5. Time complexity: O(n * m) where n is the `value` and m is the number of `coins`Space complexity: O(n)""" def count(coins, value): """ Find number of combination of `coins` that adds upp to `value` Keyword arguments: coins -- int[] value -- int """ # initialize dp array and set base case as 1 dp_array = [1] + [0] * value.. (+.In the refrigerator example, suppose the warranty worksas follows. If a refrigerator fails at any time within 5 yearsof purchase, we give the consumer a prorated refund on the$500 purchase price. For example, if the refrigerator failsafter 4 years, we pay the customer $100. If the refrigeratorfails after 3 years, we pay the customer $200. Estimate ourexpected warranty expense per refrigerator sold.Suppose that there are N events to be held this year. The ith event is scheduled from day si to day ti, and free food is to be served for that event every day from day si to ti (inclusive). Your task is to find out how many days there are in which free food is served by at least one event. For example, let N = 3 events. The first event is held from day 10 to 14, the second event is held from day 13 to 17, and the third event is held from day 25 to 26. The days in which free food is served by at least one event are 10, 11, 12, 13, 14, 15, 16, 17, 25, 26, for a total of 10 days. Note that both events serve free food on days 13 and 14, and therefore they are only counted once. The first line the user will supply you is an integer, N, denoting the number of events. Each of the next N lines contains two integers si and ti denoting that the ith event will be held from si to ti (inclusive), and free food is served for all of those days. The output contains a single integer which denotes the…
- There are three financial aid counselors. If a student’s last initial is from A – H, let them know that their counselor is Jon Stewart. If a student’s last initial is from I – Q, let them know that their counselor is Chelsea Handler. If a student’s last initial is from R – Z, let them know that their counselor is Brian Williams.Ask student for the FICO score, if it’s less than 660 tell that this student cannot have a loan. c++Suppose we have a nice young couple who borrow $700000 from the bank, at an annual interest rate of3.124%. The mortgage is a 30 year loan, so they need to pay it off within 360 months total. Our happycouple decide to set their monthly mortgage payment at $2000 per month. Will they pay off the loan intime or not?Note that the monthly balance will be calculated asbalance = (im × previous balance) - monthly paymentwhere the convert annual interest to a monthly multiplier im is calculated as im = (1 +i)1/12 and i = annualinterest rate.Write a loop for track the total payment in 360 months so that we can evaluate if the couple can pay off theloan. Write in R Please and thank you.In a fractional knapsack problem The first line of the input takes n, the number of items. In the next n lines, for each item (from 1 to n),you take the weight and the corresponding benefit. In the last line you take the knapsack capacity Wfrom the user.Output:In the output, you print out the items (in the increasing order) that has been selected, and for each itemhow much amount has been taken into consideration and what is the profit made from each item. Thelast line output the maximum profit that can be made.Sample Input54 128 322 406 301 5010Sample Output:Item 2 Amount 1 Profit 4Item 3 Amount 2 Profit 40Item 4 Amount 6 Profit 30Item 5 Amount 1 Profit 50Total Profit: 124