he seller has a whole new store for sale "buy 2, get 1 for free". or legal reasons, they are unable to charge their customers $ per article so that the discount applies to all products nstead. For example, if a customer receives three products a, b and c: roduct A Product B Product C 15.99 $ 23.50$ 10.75 e gets very cheap for free, so he ends up paying $ 15.99 + $ 23.50 = $ 39.49, but his receipt says:
Q: Two hunters have set off to get food from the forest. They have two possible games that they can…
A: We can see in the payoff matrix, that if both the hunters choose a stag, then they will both get a…
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: 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: A very successful cinema director named "Chef" decided to solve the problem. When a customer wants…
A: Input - Output Defination: Input begins with an integer T: the number of test cases.Each test case…
Q: A student wants to find out his final grade.There are three quizzes worth 10 points each, a midterm…
A: #include <stdio.h>int main(){ int q1,q2,q3,mid_term,final; float…
Q: We are buying a guidebook and a towel for a total sum of 110 dollars. The guidebook costs 100…
A: Let the cost of guidebook be g. Let the cost of towel be t.
Q: Dingyu is playing a game defined on an n X n board. Each cell (i, j) of the board (1 2, he may only…
A: In this question, we can see that there can be so many paths to reach from cell (1,1) to cell (N,N).…
Q: Calculate income tax for the given income by following the below rules: Total Income Rate (in %)…
A: In the above code, it has been asked to print the income tax on the given income, in the following…
Q: You have N dollars and you have a list of k items L1, ..., Lk that you wish to purchase from an…
A: The answer to the above-given question is given below.
Q: Two hunters have set off to get food from the forest. They have two possible games that they can…
A: The correct answer for the above mentioned question is given in the following steps for your…
Q: There are four possible ways to cross the river for a person. Let the first location is denoted by…
A:
Q: GAME IN PARAGRAPH FORM Alice chooses action a or action b, and her choice is observed by Bob. If…
A: Here you can see in the image.....
Q: In the refrigerator example, suppose the warranty worksas follows. If a refrigerator fails at any…
A: Answer :
Q: 4. Let N(x) be the statement “x has visited North Dakota,” where the domain consists of the students…
A: There exist “x has visited North Dakota,” where the domain consists of the students in your school.…
Q: ibrary must build shelving to shelve 200 4-inch high books, 150 8-inch high books, 300 10-inch high…
A: Lets see the solution.
Q: Suppose, you are working in a company 'X' where your job is to calculate the profit based on their…
A: Note:- I am taking the Python part. Program: class FinalQ: def print(self,array,idx):…
Q: Suppose, you are working in a company ‘X’ where your job is to calculate the profit based on their…
A: Answer : GIVEN THAT:-- Step 1 Note:- I am taking the Python part. Program Plan:- In First TODO part…
Q: QCC Casino Royale offers its customers a happy way to go home with big bucks playing its “Dice”…
A: Let's understand step by step : 1. First welcome customer with appropriate message. 2. Declare…
Q: Bianca is preparing special dishes for her daughter’s birthday. It takes her a minutes to prepare…
A: programming language is not mentioned we are giving solution in c++
Q: Let C (x, y) =" x likes y "and domain of x and y are all people. Then the statement "There are…
A:
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: Considere the following variable. ]: Students_Info={'lloyd' : { "name": "Lloyd", "homework":…
A: In python, function is defined using def keyword. The syntax is, def function_name():…
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: [Very Hard] Suppose, you are working in a company ‘X’ where your job is to calculate the profit…
A: Note:- I am taking the Python part. Program Plan:- In First TODO part just print the investment…
Q: It has been observed by management that some faculty member at the university demonstrates a…
A: Code: import java.util.*; public class Faculty { //below are the functions with…
Q: Suppose, you are working in a company ‘X’ where your job is to calculate the profit based on their…
A: If the company invests 100,000 USD or less, their profit will be based on 75,000 USD as first…
Q: A very successful cinema director named "Chef" decided to solve the problem. When a customer wants…
A: Algorithm: Firstly we will take input for the number of test cases. After that we will take the…
Q: Two hunters have set off to get food from the forest. They have two possible games that they can…
A: The correct answer for the above mentioned question is given in the following steps for your…
Q: A store provides 10 percent discount on all items with a price of at least $100. No discount is…
A: I have given an answer in step 2.
Q: Which of the following predicate wffs are true in the interpretation where the domain consists of…
A: Which of the following predicate wffs are true in the interpretation where the domain consists of…
Q: A bank teller has money available in the form of 4 denominations of 1, 5, 50, and 100. Whenever a…
A: Lets see the solution.
Q: For P= 0 and compute the value of K under the condition. if (P 1 && P 8) K= P - 1 else…
A: For P = 0 , Operations : if (P <= 1) K = P + 5else if (P > 1 && P <= 5)…
Q: A club with 20 women and 17 men needs to choose three different members to be president, vice…
A:
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: 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: A very successful cinema director named "Chef" decided to solve the problem. When a customer wants…
A: It is defined as a powerful general-purpose programming language. It can be used to develop…
Q: It has been observed by management that some faculty member at the university demonstrates a…
A: Coded using Java.
Q: Fix the example such that the cost of frozen yogurt is O if you pour exactly 1 Ib. in your cup. * 1…
A: Here, we are checking if weight is less than 1 and also weight is greater than 1 So, you can add the…
Q: If you know that: F1(X, Y, Z) = E(1, 4, 6) F2(X, Y, Z) = 7(0, 2, 4, 5, 7) Find F3 as Sum of Products…
A: In Boolean Logic the expressions can be written in two forms ,Which are Standard Form and Canonical…
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: You found an exciting summer job for five weeks. It pays, say, $15.50 per hour. Suppose thatthe…
A: The given problem is related to the calculation of various amounts based on the earning where the…
Q: Imagine playing a number guessing game. A side is a number from 0 to N he's holding it, and the…
A: I write code in java because this is easy to understand and programming language is not mentioned in…
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: 1- Suppose you have the information of sales (Cla) of poultry factory (elall Jen),contain several…
A: Answer is given below .
Q: Consider the following game (anachronistically) called the battle of the sexes. Two brothers, Shahid…
A: Here is the solution:
Q: #8 Suppose i=$11, j=$t2, k=$t3 //watch short-circuit if ( i == j || i == k ) i++ ; else j-- : j = i…
A: Answer: I have done code and also I have attached code aw well as screenhshot.
Computer Prog
Step by step
Solved in 2 steps
- You and your friends decided to hold a “Secret Santa” gift exchange, where each person buys a gift for someone else. To see how this whole thing works, let’s consider the following example. Suppose there are 7 people A, B, C, D, E, F, and G. We denote x → y to mean “x gives a gift to y.” If the gift exchange starts with person A, then they give a gift to E. Then E gives a gift to B. And it is entirely possible that B gives a gift to A; in such a case we have completed a “cycle.” In case a cycle occurs, the gift exchange resumes with another person that hasn’t given their gift yet. If the gift exchange resumes with person D, then they give a gift to G. Then G gives a gift to F. Then F gives a gift to C. Then finally C gives a gift to D, which completes another cycle. Since all of the people have given their gifts, the giftexchange is done, otherwise the gift exchange resumes again with another person. All in all, there are two cycles that occurred during the gift exchange: A → E → B → A…Suppose a person can buy a chocolate bar from the vending machine for $1 each. Inside every chocolate bar is a coupon. A person can redeem 3 coupons for one chocolate bar from the machine. This means that once a person has started buying chocolate bars from the machine, he/she always has some coupons. A person would like to know how many chocolate bars can be bought, if a person starts with N dollars and always redeem coupons, if he/she has enough for an additional chocolate bar. For example: With 3 dollars a person could buy 4 chocolate bars after purchasing 3 bars giving him/her 3 coupons and then redeeming the 3 coupons for one bar. This would leave him/her with one extra coupon. Thus, will have 4 chocolate bars and still have one coupon leftover. For 11 dollars, a person can have 16 chocolate bars and still have one coupon leftover. For 12 dollars, a person can have 17 chocolate bars and have two coupons leftover. Write a complete Python program that prompts a buyer to input…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…
- 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…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.…
- You are given n users, and their times that they log in and out of a website: You are interested in which users are on the site at the same time. For example, you are given the following 5 users and their times: User 1- In: 1 Out: 4 User 2- In: 2 Out: 5 User 3- In: 7 Out: 8 User 4- In: 9 Out:10 User 5- In: 6 Out:10 This gives the distinct users that are on the site at the same time as (1,2), (4,5), and (3,5). Given n elements, write pseudocode for an algorithm that would take n^2 time to compute the number of pairs of users that are on the site at the same timeI. Let P (x) be the statement “2x = x2 .” If the domain consists of the integers, what are the truth values? a) P(0) b) P(1) c) P(2) d) P(−1) e) ∃x P(x) f ) ∀x P(x) 2. Let Q(x) be the statement “x > x - 1.” If the domain consists of all integers, what are the truth values? a) Q(10) b) Q(−2) c) Q(999) d) ∃x Q(x) e) ∀x Q(x) f) ∃x ˺Q(x) g) ∀x ˺Q(x)Imagine playing a number guessing game. A side is a number from 0 to Nhe's holding it, and the other side is trying to find that number by taking turns guessing. Number-holding side estimatehe has to offer one of the following three options in response to the party that did it:1-Your guess is correct, you found the number I kept (Game Over).2-Your estimate is wrong, but you are closer to the correct estimate than the previous estimate.3-the wrong estimate and the correct estimate are further away than the previous estimate.To find the estimated number in an environment where all the information is these, astrategy will be followed: Make a prediction (N/2) from the exact middle of N with 1 Begin:Find out the answer to your guess. [answer=answer_ogren (guess)]If the answer is equal to 1, the game is over, you can leave.If the answer is equal to 2, you are going in the right direction, keep the forecast direction;If you're heading for small numbers, the new N is now N/2.Make a guess…
- [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…QCC Casino Royale offers its customers a happy way to go home with big bucks playing its “Dice” game. The Dice game is played by asking customers to roll a pair of dice. If customers roll a seven or 11, they win; any other roll and the customer loses. The odds of rolling a seven is 6 to 1 so that if customers bet 1 dollar and win, they receive 7 dollars. The odds of rolling an eleven are 18 to 1 so that if customers bet 1 dollar and win, they receive 19 dollars. Upon entering the casino, customers must be greeted with an appropriate welcoming message. They must be asked to indicate the amount of money that is in their bankroll to play. Customers cannot enter the casino with a bankroll greater than $1,000. Customers must play the game in rounds of 10 plays and the minimum bet for each play is 5 dollars; the maximum bet is 50 dollars. For each try at rolling the dice, customers must be asked how much they want to bet and for each try must be informed of the result and the…A local merchant goes to a market to buy apples with 500 UM. They offer two types of apples: green ones at 0.5 UM per kg and red ones at 0.8 UM per kg. We know that he only has space in his van to transport a maximum of 700 kg of apples and that he plans to sell a kilo of green apples for 0.58 UM and red apples for 0.9 UM. Solve the problem with the graphical method.- How many kilograms of apples of each type should you buy to obtain maximum profit?