In a list there is cost price of n goods. On the most expensive thing there is a loss of x% and on the cheapest thing there is a gain of y% and on rest of things there is a gain of p%. Find loss or gain on whole transaction in Rupees.
Q: Suppose that a department contains 10 men and 15 women. How many ways are there to form a commit-…
A: Given : The total number of men , M=10 The total number of women, W=15 Now, we need to form a…
Q: 1- Convert NFA to DFA for following NFA Convert the given NFA to DFA. 0,1 2- Convert NFA to DFA for…
A: Solution-1) The transition diagram is as follows:- The transition table of NFA is as follows:- The…
Q: The _______ analysis is applied in a situation where an occasional operation is very costly, but…
A: Amortized analysis is used to give a worst case time which is lesser than the given expensive…
Q: The ternary joint is the joint that involves: Choose the right answer None of the mentioned Six…
A: In a graph when three edges are connected to the same point then it is called ternary joint. In the…
Q: Q3: Define the Conflict Serializability, then consider three transactions T1, T2, and T3, and two…
A:
Q: Construct frequent item set for following transaction data set using Apriori algorithm where minimum…
A:
Q: Given: e-NFA M2 = ({A,B,C}, {0,1}, delta, A, {C}) where delta: (A,0) -> {C}, (A,1) -> {B}, (A,e)…
A:
Q: Consider the three transactions T1, T2, and T3, and the schedules S1 and S2 given below.…
A: Given schedules S1 and S2 contains different operations on the variables x, y and z. A transaction…
Q: Consider the following two transactions: T1 R(A), W(A), R(B), RIC) T2- W(C), R(B), R(A). W(B) Say…
A: Explanation: Strict 2PL is guaranteed conflict serializability and not just 2PL.
Q: Consider the three transactions T1, T2, and T3, and the schedules S1 and S2 given below.…
A: ANSWER:-
Q: 1 of 1
A:
Q: 11. The deadlock in a set of transaction can be determined by a. Read-only graph b. Wait graph c.…
A: Database Management System(DBMS) is a software for storing and retrieving users data while…
Q: Draw a wait-for-graph for detecting a for deadlock cycle in the given transactions T1 and T2…
A: Concurrency or simultaneous Control In the simultaneousness control, the numerous exchanges can be…
Q: In the 2PL algorithm we considered, a transaction can't start until it has acquired all the locks it…
A: Given: 2PL with Diagram:
Q: you have a good example to il
A: Solution - In the given question, we have to illustrate oops using good example.
Q: Show that (p → q)^ (p → r)is a Contingency.
A: I have provided solution in step2.
Q: Examine the below loop and find the true dependencies, output dependencies and anti dependences.…
A:
Q: Write a program that will accept a sequence of `insert’ and `delete’ operations in dynamic table and…
A: Given:- Write a program that will accept a sequence of `insert’ and `delete’ operations in the…
Q: Suppose the cover price of a book is $24.95, but bookstores get a 40% discount. Shipping costs $3…
A: Algorithm: Start Set totalUnits=60 Set perbookPrice=24.95 Compute: totalbookPrice=…
Q: A Company supplies a range of cosmetics products and gives discounts on orders as follows: For order…
A: For this statement, we have to make some changes in the pseudocode so that the given criteria is…
Q: A system is in a ______ state if there exists a set of transactions such that every transaction in…
A: c. Deadlock
Q: Consider the schedule S1 = w1(A), r2(A), w1(B), w3(C), r2(C), r4(B), w2(D), w4(E), r5(D), w5(E) on…
A: If there are T1, T2..............Tn n transactions and N1, N2, N3,......Nn number of operations…
Q: Requested resources are provided to those who are in a stalemate as a result of deadlock detection.
A: Introduction: A deadlock occurs when two computer programs that share the same resource are…
Q: Consider the following parameters for RSA. P = 31 , q = 17. The value of Public (PU) and private…
A: The correct answer is along with step by step solution is given below
Q: Suppose you run k- means using k=3 and k=5. You find that the cost function J is much higher for k=5…
A: Given Suppose you run k-means using k=3 and k=5.you find that the cost function J is much higher…
Q: Alice has a wallet with exactly 10 Ether in it, and sends 10 Ether to Bob. In order for this…
A: Solution:
Q: If you implement a correct solution to the multiple producer- consumer problem, why should your…
A: Defined the given statement
Q: Consider 4 transactions T1, T2, T3, and T4 Transaction T1 has 5 transactions, T2 has 4 transactions,…
A: Scheduling where the operations of multiple transactions are interleaved. This might lead to a rise…
Q: Given: NFA M1 = ({A,B,C}, {a,b}, delta, A, {C}) where delta: (A,a) -> {A}, (A,b) -> {A,B}, (B,a)…
A: We are given a NFA M1 and we are asked the equivalent DFA for it.
Q: Subject code - rcs502 Consider 3 transactions T₁, T₂ and T3 having 2, 3 and 4 operations…
A: Solution - Since we already know that If T1 ,T2 , T3 are the transaction with p,q,r operations…
Q: Give two examples of Decrease and Conquer Approach.
A: We need to write two examples of Decrease and Conquer Approach.
Q: Write', respectively. T; represents a transaction, and t; represents the time slot. t2 t3 t4 t5 to…
A: We are going to draw precedence graph for the given schedule and we will find out if the given…
Q: Consider the following 2 transactions: T1: R(A); R(B); B=A+B; W(B) T2: R(B); R(A); A=A+B;…
A: Answer 1: In below , i am adding X lock and S lock.…
Q: Given the following transaction database: Sales ID Items S1 {O, W, C, N, Z} S2 {O, C, K, N, Z}…
A: Apriori algorithm run on the previous transaction database with Support: 0.4 Confidence: 0.9 In…
Q: Consider the following schedule of two transactions: R(B) B E 100 – B W(B) R(A) R(A) R(B) A E 10A +…
A:
Q: The snapshot isolation protocol uses a validation step which, before performinga write of a data…
A: A snapshot protocol is a validation-based multi-version concurrency protocol in which a transaction…
Q: use the appropriate graph to plot it in R. Leave a short comment on its distribution (gaps,…
A: Here we using R to plot the graph: ========================================================= we take…
Q: In the following frequency pattern tree with minSup=2 with the associated transaction listed, the…
A: Given, A frequency pattern Tree. To determine whether {AC} is a: Frequent itemset Closed itemset…
Q: Which itemsets (of any length) are frequent if you know that {ace} and {ad} are the only maximal…
A: ANSWER: Maximal Frequent Itemsets: The quantity of frequent itemsets produced by the Apriori…
Q: 3) Explain deadlock avoidance and starvation. Draw a wait-for-graph for detecting a cycle in the…
A: Answer is given below-
Q: Consider the following sequence of transactions: Inputs: 0 Outputs: 25.0-Alice Inputs: 10) Outputs:…
A: The answer is given below.
Q: ween the following. ( Bounded wildcard - Lower bound
A: Bounded wildcard A bounded wildcard has either an upper or lower inheritance constraint.A wildcard's…
Q: Compute RSA using the following variables: P=13, Q= 5, E = 2. Provide your work. Find n Find p(n)…
A: DescriptionRSA is Public Key Encryption algorithm that is used for encryption and decryption.
Q: Draw “Conflict Serializability” graph for given schedule and tell if schedule is serializable or…
A: Given: We are given a schedule of four transactions T1, T2, T3, and T5. Goal: We have to check if…
Q: Suppose that the transactions at a fast-food restaurant during one afternoon are {hamburger, fries,…
A: Hey, Since you have not mentioned the programming language and this is indeed a simple numerical. We…
Q: Consider the schedule below. Here, R(·) and W(·) stands for 'Read' and Write', respectively. T;…
A: We are given a schedule which contains 5 transactions in it. And these 5 transactions are performing…
Q: 1) What is the distribution of N * Pn?
A: Answer : Given Information: Consider the experiment in which N people are asked whether or not…
Q: Consider the three transactions T1, T2, and T3, and the schedules S1 and S2 given below. Transaction…
A: Given that there are 3 transactions T1, T2, T3 and there are 2 schedules S1 and S2. These…
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:
In a list there is cost price of n goods. On the most expensive thing there is a loss of x% and on the cheapest thing there is a gain of y% and on rest of things there is a gain of p%. Find loss or gain on whole transaction in Rupees.
Step by step
Solved in 3 steps with 1 images
- A company supplies a range of cosmetic products and gives discounts on orders as follows: For orders worth less than $50 a discount of 2% is given. For orders worth $50 and over 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 eight weeks in arrears a pro forma invoice must be sent and settled before dispatch. Prepare a limited entry decision tableEach publication of an academic can be cited from other publications. To this academic The h-index value is calculated as follows. The total number of articles of that academic It has an index of h if each of them is cited at least. For example, a If there are 28 articles cited at least 28 times among the author's research articles, the author's h-index is 28. In order for the H-index to be 29, 29 or more of 29 articles must be cited. must have received. Accordingly, the number of citations for each of the N articles of an author varies from large to small. C code the program that calculates the researcher's h-index when given sequentially. Write in "C"language. The examples below show the number of citations received for each publication.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…:Suppose you have the information of super market, the find the followi A D H Discount product product unit price $ new unit price s total price S total price rate- $ 5.00 unit number 2 P1 2 3 p2 4.00 3 4 2$ 3,50 $ 10.00 $ 6.00 p3 1 p4 3 6 p5 4 7 8. 9 find the average of total price$ that have dicount rate -15 % find the average of total price 2.a for product unit number (1.3] ? 10 and have new unit price $ 11 →-25 % 2- Find the new unit price $, note: new price - old price + old price "discount rate 3- Find the total price $ 4- Convert the total price $ to Iraqi currency, Note: (1 $ = 1460.50 5- Find the average of total price$ that have discount rate -15 % 6- Find the average of total price Efor product unit number [1..3] and have new unit price $<=10$ B.
- 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.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 documentA given Knapsack with maximal Weight capacity is 8Kg. There are some items can be chosen and taken into Knapsack. Each item has own weight and profit shown as follows. Please find the maximal profit of Knapsack after some items are selected and put into this Knapsack and its maximal Weight capacity isn't exceeded. item ID Weight 4Kg 5Kg 2Kg 1kg 6Kg A B C D E Profit 4500 5700 2250 1100 6700 The maximal profit of this Knapsack to taken some items and total weight is no exceeded the weight capacity : The last item is taken and put into this Knapsack is : The second item is taken and put into this Knapsack is : The first item is taken and put into this Knapsack is:
- How do I answer this, please? Acme Parts runs a small factory and employs workers who are paid one of three hourly rates depending on their shift: first shift, $17 per hour; second shift, $18.50 per hour; third shift, $22 per hour. Each factory worker might work any number of hours per week; any hours greater than 40 are paid at one and one-half times the usual rate. In addition, second- and third-shift workers can elect to participate in the retirement plan for which 3% of the worker’s gross pay is deducted from the paychecks. Write a program that prompts the user for hours worked, shift, and, if the shift is 2 or 3, whether the worker elects the retirement (1 for yes, 2 for no). Display: Hours worked Shift Hourly pay rate Regular pay Overtime pay Total of regular and overtime pay Retirement deduction, if any Net pay.Assignment 2. ELECTRICITY BILL CALCULATOR FOR DOMESTIC DWELLING Electrical Unit Tariff blocks Unit RM Fixed Charge First Unit Slab Next Unit 200 0.218 200 RM Slab 100 0.334 Surcharge 0.00 RM/Unit Next Unit Slab 300 0.516 Tax.Charge 6 % Next Unit Slab 300 0.546 Meter Charge 200 RM Last Unit Slab 100 0.571 ITEM RATINGS NUMBER no. hours/day unit consumed in kwh LED 8 16 CFL 20W 5 16 REF 200W 1 24 FAN 80W 6 24 total meter reading for a month 190 Monthly Bill 540 final bill 1 Calculate the electricity bill as per the table given 2 nested if formula has to be used to apply various conditions for all tariff blocks 3 for two tariff blocks formula is already applied so you have to do for the remaining tariff block IF(F18<=100,F18*2.7,(100*2.7)+(F18-100)*3)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: