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
- Computer Science Investing in stocks is a way to create assets that are supposed to provide financial security over time. In solving this problem, we assume that an investor buys several shares of stock at a certain price. These shares are going to be sold later on for a different price. Obviously, if the selling price is higher than the acquisition price, the investor makes a profit, registering capital gain. If the shares are sold at a lower price, the investor has a loss, which marks a negative capital gain. This whole process is done over a period of time, and you are required to create a scenario for buying and selling shares. The assumption is that the investor sells shares in the order in which they were purchased. The goal is to calculate the capital gain over time. Suppose that you buy n shares of stock or mutual fund for d dollars each. Later, you sell some of these shares. If the sale price exceeds the purchase price, you have made a profit—a capital gain. On the other…In a private university, students can enrol for at least 1 to a maximum of 5 subjects in a semester. Subjects that are to be offered in that particular semester will be assigned to a class. One class should have at least 5 students and up to a maximum of 40 students. Multiple classes for a subject can be created if the students number enrolled for the subject is large. A subject might not be offered on that semester depending on the needs. A lecturer can be assigned to zero and up to a maximum of 4 classes on that particular semester. Draw the class diagram to represent the above scenario. Each entity should have at least 1 attribute as its identity. Provide the relevant associations between these entities and include the multiplicities.It has been observed by management that some faculty member at the university demonstrates a lackadaisical attitude toward work. They seldom go to class yet at the end of each month they receive full salary. Management has decided that GHs 200, 300, 400, and 500 will be deducted from a faculty’s salary if he/she offends once, twice, third time and forth time respectively in a month. This means that if a faculty member offends once in a month GHs 200 will be deducted, if a faculty member offends twice in a month, GHs 500 (i.e. 200+300) will be deducted, if a faculty member offends three times in a month GHs 900 (i.e. 200+300+400), will be deducted and if a faculty member offends four times in a month GHs 1,400 (i.e. 200+300+400+500). Assuming all faculty members are on a flat salary rate of GHs 2500.a. Write a program to request for the names of four faculty members and number times he/she has absented him/herself from class. One of them should have absented him/herself once, another…
- It has been observed by management that some faculty member at the university demonstrates a lackadaisical attitude toward work. They seldom go to class yet at the end of each month they receive full salary. Management has decided that GHs 200, 300, 400, and 500 will be deducted from a faculty’s salary if he/she offends once, twice, third time and forth time respectively in a month. This means that if a faculty member offends once in a month GHs 200 will be deducted, if a faculty member offends twice in a month, GHs 500 (i.e. 200+300) will be deducted, if a faculty member offends three times in a month GHs 900 (i.e. 200+300+400), will be deducted and if a faculty member offends four times in a month GHs 1,400 (i.e. 200+300+400+500). Assuming all faculty members are on a flat salary rate of GHs 2500.a. Write a program to request for the names of four faculty members and number times he/she has absented him/herself from class. One of them should have absented him/herself once, another…In planet Z, there have been two new discoveries of Condition A and Condition B in plants. You have been tasked with creating a system which will detect the chances of development of Conditions A and B in plants. The conditions depend on the following factors: Inputs (Symptoms) : W: Low Temperature. (W=1 if the temperature is Low, W=0 otherwise) X: Oxygen Level (X=1 if oxygen level is normal, X=0 otherwise) Y: Presence of UV Light (Y=1 if UV light is present, Y=0 otherwise) Z :Humidity (Z= 1 if the humidity is high, Z=0 otherwise) Outputs: A : Condition A B : Condition B A plant will develop Condition A if presence of UV Light is accompanied by i) high temperature with normal oxygen level or ii) low humidity. If UV Light is absent then the plant will develop Condition A if there is i) an abnormal level of oxygen or ii) high humidity with low temperature If there is high temperature or abnormal oxygen level with…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 danThe average of a step function computed with the definite integral matches the average computed in the usual way. Test this in the following situations by finding the average of the values directly, and then as the integral of a step function. Suppose a math class has four equally weighted tests. A student gets 60 on the first test, 70 on the second, 80 on the third, and 90 on the last.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…Question 4: The ongoing Covid pandemic in the word has scared the authorities at Hazrat Shahjalal International Airport in Dhaka and they have asked the CSE department of BRACU to design a system that would help them to decide what to do with people coming in from African countries that are at risk. The Airport authorities has approved the following specifications for the system: Input (4 variables) F = 1 indicates the passenger HAS FEVER. H = 0 indicates the passenger DOES NOT HAVE a SEVERE HEADACHE. M = 1 indicates the passenger HAS MUSCLE PAIN. A = 0 indicates the passenger DOES NOT HAVE ABDONIMAL (STOMACH) PAIN. Output (3 variables)Fergusonball players are given a star rating based on the number of points that they score and the number of fouls that they commit. Specifically, they are awarded 5 stars for each point scored, and 3 stars are taken away for each foul committed. For every player, the number of points that they score is greater than the number of fouls that they commit. Your job is to determine how many players on a team have a star rating greater than 40. You also need to determine if the team is considered a gold team which means that all the players have a star rating greater than 40. Input Specification The first line of input consists of a positive integer N representing the total number of players on the team. This is followed by a pair of consecutive lines for each player. The first line in a pair is the number of points that the player scored. The second line in a pair is the number of fouls that the player committed. Both the number of points and the number of fouls, are non-negative integers.…Project Optimization and regression: Exact and approximate methods to solve 0-1 Knapsack problem Description The 0/1 Knapsack Problem and Logistics Transportation companies such as TNT and Royal Mail face daily problems in logistics. Consider the following simple logistics problem, which you will solve: An airline cargo company has 1 aeroplane which it flies from the UK to the US on a daily basis to transport some cargo. In advance of a flight, it receives bids for deliveries from (many) customers. Customers state the weight of the cargo item they would like delivered, and the amount they are prepared to pay. The airline is constrained by the total amount of weight the plane is allowed to carry. The company must choose a subset of the packages (bids) to carry in order to make the maximum possible profit, given the weight limit that they must respect. In mathematical form the problem is: Given a set of N items each with weight wi and value vi, for i=1 to N, choose a subset of items…Problem You have a fence post located at the point (x,y) where a goat is tethered by a rope. You also have a house, which is a rectangle with diagonally opposite corners at the points bottom-left: (x1,y1) and top-right: (x2,y2). You want to pick a length of rope that guarantees the goat cannot reach the house. Determine the minimum distance from the fence post to the house, so that you can make sure to use a shorter rope. Recall that the distance formula is: (x2−x1)2+(y2−y1)2 The input consists of a single line containing six space-separated integer values: x, y, x1, y1, x2, and y2. You are guaranteed that x1<x2 and y1<y2, and that (x,y) is strictly outside the axis-aligned rectangle with corners at (x1,y1) and (x2,y2). Return the minimum distance from the goat’s post to the house as a floating-point value from main(). Learning Objectives Be able to create a program with a lesser template. Be able to calculate the min/max of integers. Be able to write a mathematical…SEE MORE QUESTIONS