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
- A town wishes to build a trail between city A, city B, city C, city D, and city E. The distances, in miles, between any two of the destinations are given in the table. Use the table to answer parts (a) and (b) below. A B C D E A * 154 134 216 129 B 154 * 195 51 243 C 134 195 * 225 220 D 216 51 225 * 308 E 129 243 220 308 * a) Use Kruskal's algorithm to determine the minimum-cost spanning tree that would link each location to create the least expensive trail. Choose the correct graph below. A. ABCD154216225E129 B. ABCD15419551E129 C. ABCD15413451E129 D. ABCD154134216E129 b) If the cost of building such a trail is $3700 per mile, what is the cost of building the trail determined in part (a)? The cost is:A standard deck of playing cards consists of 52 cards. Each card has a rank and a suit. There are 13 possible ranks (A, 2, 3, 4, 5, 6, 7, 8, 9, 10, J, Q, K), 4 possible suits (spades, clubs, hearts, diamonds), and 13 cards for each suit. How many different hands of 5 cards contain 5 cards of 5 different ranks? Enter the exact numeric answer.Suppose you are trying to make a schedule for use of the auditorium for different clubs in a school. The auditorium can be used in the afternoons from Sunday to Thursday. There are five clubs: Music, Drama, Dance, Photography, Computer. There are a few rules that must be followed: a)The auditorium can be used by only one club on a day. b)Computer club wants to use on Monday or Thursday. c)Drama club wants on Wednesday or Thursday. d)Music club is fine with any day. Dance club wants on Monday or Wednesday. e)Photography club wants on Sunday, Tuesday or Wednesday. Formulate this problem as a CSP. Draw the constraint graph. Show the steps followed by backtracking search algorithm and derive a solution.
- Scenario:One of the renowned supermarket in Dhaka City, “Shwapno” is celebrating their firstanniversary of opening. They have become very popular among people in a short amount oftime. As a method of celebration they have designed three interesting and exciting offer for theircustomers for that day only!! The offers are described as follows:Offer 1: This offer says, if the name of any customer starts with “S” OR ends with “o”, theywill receive a gift which contains 1 kg miniket rice and 1 litre soyabean oil. This offer isdedicated from their name, Shwapno.Offer 2: This offer says, if one customer have taken products and his/her total product weightis less than 1.50 kg, then Shwapno will give all the products to the customer for free. If the totalweight is 1.50 kg or more, the customer will have to pay the full amount.Offer 3: This offer says, if a customer is aged less than 15, then he/she will receive chocolates.If aged 15 or more, then no gifts for the customer.Implementation:Create…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++BU School of Witchcraft and Wizardry is a school of magic that sends admission letters only to children with magical abilities. The admissions process for BU School of Witchcraft and Wizardry is as follows:- If both parents of the child have previously studied at BU, they do not need to reply to the admission letter. Otherwise they need to reply to the admissions letter by July 31. If they do not reply by the specified date, they are not accepted to the school. BU has 4 houses that students are sorted into by the sorting hat “Hayri”. These houses are; Gryffindor, Hufflepuff, Ravenclaw and Slytherin. Hayri sorts the students into houses according to 2 characteristics; braveness and intelligence.- If Hayri finds the student to be brave and intelligent, they are sorted into Gryffindor.- If the student is found to only be brave, they are sorted into Slytherin.- If the student is found to only be intelligent, they are sorted into Ravenclaw.- Finally, if they are neither brave nor…
- 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 profitof 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 ZERO(‘0’) when the…Shamira Laundry has designed a new calculation system for their shop. The price for each type is as follows: 10 Туре Price Clothes RM 15 for 1 kilogram blankets / towels RM 6 for 1 kilogram RM 10 for 1 kilogram comforter Only one type can be washed at a time. This laundry shop also provides discounts to its customers as follow: Total price >= RM30 Discount 10% from total price >= RM20 dan = RM15 danSuppose, 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…Al Watan supermarket has hire-purchases scheme for locals and expats. The customers will get the credit facility if they satisfy any of the following conditions: The customer must hold the present job for more than 5 years and reside in the same place at least for 3 years. In this case, the customer will get credit upto rupees 300 omr. The monthly salary of the customer must exceed 1000 omr and must hold the present job for more than 5 years. In this case credit will be given upto rupees 500 omr. The monthly salary must exceed 1000 omr and reside at the same place at least for 3 years. In this case credit will be given upto 500 omr. In the case, the customer’s monthly salary exceeds 1000 omr, holds the present job for more than 5 years and also reside in the same place at least for the 3 years, the credit facility will be upto 1000 omr The credit facility is rejected for all other customers. Prepare a Decision Table for this hire- purchase schemeA performance venue hosts many concerts a year. Performers perform several times a year for the concerts. Each concert has one or more performers and has a name and a specified seating arrangement. A concert is held in one (and only one) of several concert halls, each of which has a room number and the number of seats. Each concert generates revenues from the sales of tickets. Assume that the price of the ticket is the same for the same concert, but different prices for different concerts.Identify several attributes and a key field for each entity. Represent this situation of concerts and performers with an E-R diagramSEE MORE QUESTIONS