A electricity bill service provider uses a program that computes the monthly bill of customers as follows: Min Rs 50 for up to 120 Units Plus Rs 10 per unit for the next 100 Units Plus Rs 20 per unit for the next 200 Units Plus Rs 40 per units for any unit beyond 500 units Design test cases for above scenario using equivalence class testing technique.
Q: the following training data. Use Naive Bayes classifier to classify Que 3.18. Consider a two-class (...
A: Naive Bayes Naive Bayes is a statistical classification technique based on Bayes Theorem. It is one ...
Q: Write a prolog function, average(X,Y), that takes a list (X) of integer values as input and returns ...
A: Given: we have to write a prolog function average(X,Y), that takes a list (X) of integer values a...
Q: What is the meaning of data encryption?
A: Everything in computers is data. Lets take an example of a talking to your loved one on a chat app. ...
Q: What is the runtime complexity of the equilibrating stable matching algorithm? N students apply to M...
A: Solution: The question is about the runtime complexity of the equilibrating stable matching algorith...
Q: The SAS table hold.work contains a numeric column named ID. Write an entire DATA step to create a ta...
A: 1) creating a table proc sql ; create table hold.work2 like hold.work;quit :
Q: Take in one number and check if it is even or odd. Then, print out the number and tell me if it is e...
A: Answer: Provide the program in c++ Code: #include <iostream>using namespace std; int main() { ...
Q: Without using any loop In PHP programming languague The value of the input vanable is 9 3,5 5,70 How...
A:
Q: A palindrome is a number that reads the same backwards as forwards. Prove that every palindrome with...
A:
Q: Algorithm Analysis
A: Given :- The Algorithm Analysis and relative run times of linear, log, polynomial, and exponential g...
Q: What is the meaning of the term "debugging"?
A: Introduction: Debugging is the act of finding and eliminating current and prospective flaws (often k...
Q: Which gateways utilise deep packet inspection or port mirror?
A: The ATA Gateway is a dedicated server that monitors traffic from domain controllers through port mir...
Q: Transform the postfix expression to infix form. Show ALL the steps. a. A B * CDE - +
A: The fundamental manner to transform postfix to infix is:- We have a prefix studying column wherein...
Q: Give an example of declaration statement and an example of an assignment statement that will be used...
A: I have designed a JAVA PROGRAM that converts Celsius to Fahrenheit and Fahrenheit to Celsius....
Q: What exactly is information privacy? Make a list of five techniques to protect your personal informa...
A: Introduction The question is about information privacy, a list of five techniques to protect your pe...
Q: Suppose you have an investment plan where you invest a certain fixed amount every year. Modify futva...
A:
Q: 2. Given the following sequence of stack operations, what is the top item on the stack when the sequ...
A: Here in this question we have given a sequence of stack operation.and we have asked to find the top ...
Q: A 15 bit data word along with parity bits received by the receiver is as follows: 101010 111111 0111...
A: Odd parity check When the data is sent in data blocks it is subjected to parity check. In case of od...
Q: What is the d-ary tree's minimum feasible depth?
A: minimum feasible depth of a d-ary tree is Ω (log n / log d). Here, "n" is the number of nodes prese...
Q: I need help in the following mcq What is BAh XOR CFh (BA₁₆ XOR CF₁₆)? Group of answer choices 65h (...
A:
Q: if we run lomuto quicksort(A, 1 , 5) how many key comparisons will be made
A: Lomuto quicksort assumes last element in the array s Pivot and algorithm starts working
Q: The size of an address field in a computer instruction format is 3 bits, while the instruction lengt...
A: The instruction format is a sequence of bits that the CPU's control unit can decode. The instruction...
Q: Print the area of a polygon: --------------------------------- Input the number of sides of the poly...
A: Formula to find area of a n sided polygon with length l is l2n/4*tan(180/n) (in degrees) l2n/4*tan...
Q: Create a code for the bank transaction record using linked list
A: As, it is not stated i have used Java for this question. For the bank transaction, we need the infor...
Q: Convert the decimal (base 10) number 63 to a binary (base 2) number that has only the digits '0' and...
A: To convert decimal to binary , simply divide the number by 2, keep the remainder every time and repe...
Q: We have a single customer with the surname "Ashworth", write the SQL to return the Firstname, Surna...
A: -- create a tableCREATE TABLE customers ( FirstName varchar(255),Surname varchar(255),Phonenumber...
Q: Further increases in connection speeds available to businesses and consumers from local Internet Ser...
A: predicted by _________ law
Q: a. if num2 > 5: print ("Big") else: print ("Small") b. if numl == 5: print("Message 1") else: print(...
A: As per our guidelines we are supposed to answer three sub parts kindly repost other sub parts as a s...
Q: Let L be the list of non-negative integers and K is the search key. The goal is to find K in L. If t...
A: Brute Force search technique can enumerate all possibilities to search an element in a given list. ...
Q: program6_1.py BetterBuy is having a sale. Write a program that uses a while loop to store to a file ...
A:
Q: START Check the time of Vladimir as he arrive in his home. Check Time Before 4 ves He is in plavgrou...
A: The solution to the given problem is below.
Q: Suppose you are designing a DRIVER DROWSINESS SYSTEM which will detect whether the driver is sleepin...
A: People have consistently created machines and contrived procedures to ease andsafeguard their lives,...
Q: Explain Dynamic desirable and Dynamic auto?
A: Dynamic Auto and Dynamic Desirable are the concepts in dynamic trunking protocol, which is develope...
Q: Give me an example of f formatted string in python. Take all the data from the user.
A: Python documentation states that... Formatted string literals (also called f-strings for short) let ...
Q: Is the Big Data Market Being Driven by Mass Hysteria? What are the two advantages and disadvantages ...
A: Introduction: This phenomenon is known as mass hysteria, and it is marked by uncontrollable emotion...
Q: What SQL statement in the Oracle database is required to display system rights associated with my ro...
A: In computer programming, structured query language (SQL) is a programming language that is used to e...
Q: J a v a
A: SUMMARY: -Hence, we discussed all the points.
Q: Future Direction of Life Testing and Accelerated life testing?
A: The Life Orientation Test (LOT) is a standard psychological instrument that assesses one's dispositi...
Q: Briefly compare data cleaning, data transfor mation, refresh concepts. Use an example to explain you...
A: A dataset contains data which may hold data that is unused and never going to use in future. In such...
Q: List at least two advantages and disadvantages of using POP3 instead of IMAP?
A: ADVANTAGES Two-way synchronized communication between the email server and the email client, which ...
Q: The Business Implications Of These Results a. Explain how these detections impact the business, what...
A: The problems in a product impacts a business image both in long-term and the short-term.
Q: Show that T(n) = O(n³) where T(n) = 1 + 2 + 3+...+n
A: Here in this question we have given a function and we have asked dto prove big-oh asymptomatic notat...
Q: Many new and better functions have been added to Microsoft Excel 2016. Which function in Excel 2016 ...
A: 1. The 'Tell Me' BoxThe "tell me" box is one of the newcomers to the Excel function and, without a d...
Q: Write a polynomial regression model of order 4 with intercept. How does a model based on a degree 4 ...
A: When the connection between both the data is linear, the simple linear regression procedure works. N...
Q: Using for loop, write a bash script that must go through all files stored in /etc directory. The loo...
A: The answer is given below:-
Q: create a c# program to convert feet to meters
A:
Q: Make a flowchart using logic formulation INPUT: Subject, grade, passing PROCESS: Evaluate if gr...
A: flowchart for pass or fail
Q: Creating a Java program that converts Celsius to Fahrenheit and Fahrenheit to Celsius. What types of...
A: import java.util.*; public class Quiz1 { static double Celsius; static double Fahrenheit; s...
Q: Using java write one for loop to print out A(4 times) if n = 2, A (14 times ) if n = 3, A (28 times ...
A: Code: import java.io. * ;public class Main { public static void main(String[] args) { int i,j,k,...
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: Question 1 In this question, you need to create an interface and an abstract class. For the interfac...
A: SUMMARY: -Hence, we discussed all the points.
Step by step
Solved in 4 steps with 2 images
- Consider a simple program to classify a triangle. Its inputs is a triple of positive integers (say x, y, z)and the date type for input parameters ensures that these will be integers greater than 0 and less thanor equal to 100. The program output may be one of the following words: [Scalene; Isosceles;Equilateral; Not a triangle].Design the boundary value test case, Equivalence Class Testing for the above cases.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…In practical life, the employees get salaries and pay taxes honestly. Sometimes, the process of drawing salariesand payment of taxes may lead to some interesting situation. Suppose, a person draws salary of Rs. 10,000 permonth. A certain percentage of tax is charged on that amount, which is deducted every month. But if the salaryof the person is more than Rs. 10,000 per month, then the tax rate is different. Similarly if a person is getting Rs.20,000 per month, he/she would be charged more under a different tax rate slab. The interesting situationdevelops if there is an anomaly in the tax rates i.e. a person who is getting higher salary takes home lesser moneyas compared to the other person with less gross salary.To further elaborate it, we suppose that there is company 'C' where 100 or less than 100persons are employed. The salaries of the employees and their tax rates are known to us.We are required to list those unlucky persons, who are getting lesser take-home salary(net salary)…
- 13. p(x): x is intelligent q(x): x reads book r(x): x is a student in your class Find the correct English translation for the following logical expression: ∀x(r(x)→(p(x) Λ q(x)) a. None b. There is an intelligent student in your class who reads book c. Every student in your class is intelligent and reads book d. All student in your class is intelligent and doesn't read bookThe world monarch in the new post-apocalyptic world is extremely worried about the birth rate. She therefore orders that every family must have at least one female or else pay hefty fines. What will the gender ratio of the next generation be if all families adhere to this policy, which requires them to keep having children until they have one girl, at which time they immediately stop? (Presume that all pregnancies have an equal chance of producing a male or a girl.) Write a computer simulation of this problem after you have rationally resolved it.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…The world queen in the new post-apocalyptic world is extremely worried about the birth rate. She therefore orders that every family must have at least one daughter or else pay hefty fines. What will the gender ratio of the next generation be if all families adhere to this policy, which requires them to keep having children until they have one girl, at which point they immediately stop? (Presume that all pregnancies have an equal chance of producing a boy or a girl.) Write a computer simulation of this problem when you have logically resolved it.
- The game Capture is played by two players, First and Second, who take turns to move towards one another on a narrow bridge. Initially, the two players are at opposite ends of the bridge, at a distance of n feet from each other. (Here n is an arbitrary positive integer.) When it is their turn, they are allowed to jump 1, 2, or 3 feet toward each other. The game starts by First making a move first; the game is over when one player is able to capture (jump on top of) the other player. Generalize the problem further to the case when the initial distance is n feetand the players are allowed to jump any (positive) integer number of feet up to k feet. (Here n and k are arbitrary natural numbers.)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: 124consider a jewler who shows a collection of diamonds to a person. all diamonds have different integer ounce weights and are laid out in a single row on the table. what is the largest weight amount of diamonds that the person can take, provided that the person cannot select adjacent diamonds? use standard pseudocode notation similar to python to write a dynamic programming bottom up algorithm that solves this problem for any n number of diamonds.