that
Q: Every invention or innovation is brought about by the successful application of a physical or chemi...
A: - We need to highlight some of the recent inventions and their principles of work.
Q: Acquire a working knowledge of the critical tools and procedures that will be used throughout the sy...
A: Given: Acquire a working knowledge of the critical tools and procedures that will be used throughout...
Q: Write a function wordFilter($str) that takes a string representing a sentence as a parameter. It sho...
A: The answer to the above given question is given below:
Q: Identify two different DOC TYPE and explain why you would use one over the other?
A: We have to identify two different DOC type and explain why you would use one over the other.
Q: Identify the primary features of several system development life cycles, including prototype, Agile,...
A: Introduction: Developers may incorporate security into their system development life cycle at every ...
Q: The output a of the above logic circuit is
A: A logic gate is an idealized model of computation or physical electronic device implementing a Boole...
Q: Construct a( l5,5) systematic cyclic Code by giving generator matrix G g(x) -(x*»x'+ x*+X+1)( x*+ x ...
A: As per Bartleby guidelines, Since you have asked multiple question, we will solve the first question...
Q: SETUP is the current state.
A: Current state: Current state is the current situation comprising various dimensions including polic...
Q: Write a c# program to find the sum of 1+ 11+111+ 1111....
A: Algorithm : Step 1 : declare and initialize variables. Step 2 : ask for N from user. Step 3 : use f...
Q: Give a truth-table definition of the ternary boolean operation if P then Q else R.
A:
Q: Write an algorithm to find the maximum and the minimum elements for a set of n integers
A: Given: Write an algorithm to find the maximum and the minimum elements for a set of n integers
Q: 1. Convert the following binary numbers to equivalent decimal numbers. (101110010001)2 (11011.101)2 ...
A: Binary number contains base 2. So, to convert into decimal form we must multiply the powers of 2 fro...
Q: This is the classification for the combination of the track number, the block number, and the cylind...
A: Introduction: Tracks, cylinders, and sectors/blocks make up a disc. A track is the 1-bit wide ring o...
Q: Write a c# program to display the n terms of the harmonic series. The series is 1 + 1/2 + 1/3..
A: Required:- Write a c# program to display the n terms of the harmonic series. The series is 1 + 1/2 ...
Q: ain how you would protect your d
A: Structure of Computer System:
Q: > Program to for haracters from a > Code here
A: NOTE: As it has not been specified that in which language I have to provide the solution .Hence I am...
Q: Q1. Why protocols and standards are needed?
A: Protocol : For successful interaction between two systems/devices, there are some set of rules and p...
Q: please use pseudocode to answer the following question Two students challenge each other to a bask...
A: Pseudocode is basically the language description of the steps in an algorithm.
Q: After installing an imported software onto a computer system, error codes were generated each time ...
A: The issue is solved by converting given decimal value into Gray code Using C++ code
Q: Define a function calc_total_inches, with parameters num_feet and num_inches, that returns the total...
A: logic: total=12*feet+inches display total
Q: Do you have any experience with top-down design principles? If this is the case, please explain the ...
A: Introduction: Many articles and books on software development stress the importance of good design. ...
Q: How many steps are in web design? Describe each stage and explain why it is vital.
A: Web development is the process of creating a Web site for the World Wide Web or an intranet, If you ...
Q: Write your cimplementation to read a table of students from file (like we saw in the previous lab), ...
A: Given - I am using the below table to solve the above problem
Q: In database schema, the database snapshot is also called
A: The database snapshot is also called
Q: Write a c# program to display the n terms of the harmonic series. The series is 1+1/2 + 1/3...
A: C# code to sum of harmonic series is given below.
Q: iinclude using namespace std; int main () int num; // Initialization sout > num; while (num != 999)...
A: #include<iostream>using namespace std; int main(){ int num; cout<<endl<<"Enter num...
Q: Exercise 3 (Resursive String Reversal) Create a class called StringReversal. Inside of it, create a ...
A: Given:
Q: Any help with this first problem would be really helpful! Thank you so much!! Please display code so...
A: import java.util.Scanner; import java.util.Random; public class Main{ public static void main(Stri...
Q: Show how the function f (w1, w2, W3) =Em(0, 2, 3, 4, 5, 7) can be implemented using a 3-to-8 binary ...
A: As per the answering guidelines, solving the first question completely
Q: The simplest way of remove deadlock from the system is to ...
A: An operating system is a software programme required to manage and operate a Computing device.
Q: tiate Analog Signal and Digital
A: Given Differentiate Analog Signal and Digital Signal
Q: TASK 3 (25 points) [Testing: Variables and expression, strings, conditional-statements, loops] Funct...
A:
Q: The quality of the systems development output cannot be assessed using the system specifications. ...
A: The issue asks whether system requirements can be used to evaluate the quality of a system developme...
Q: scheduling algorithm can use either ___________ priority or ________ priority
A: Solution :
Q: Describe several techniques for acquiring software, such as conventional and web-based software deve...
A: Given: Describe several techniques for acquiring software, such as conventional and web-based so...
Q: 9. Determine the complexity of the following implementations of the algorithms for adding, multiplyi...
A: Solution: Given,
Q: Prove that in a graph G, SCV(G) is an independent set if and only if S is a vertex cover and hence a...
A: If S is an independent set of G, then every edge is incident on some vertex in S, otherwise there wo...
Q: Summing an Array (SumArray.asm) .data intarray DWORD 10000h,20000h,30000h,40000h .code main PROC mov...
A: The LOOP instruction is mostly utilized in HLL to imitate the various loops. The CX register is used...
Q: Trace the development of client-server web technology via graphics.
A: Introduction: Businesses began to recognize the need to connect their computers in the mid-1980s as ...
Q: Five systematic phases characterize the systems development life cycle. So, what exactly are these t...
A: Given: Five systematic phases characterize the systems development life cycle. So, what exactly ...
Q: The term "middle computer system" refers to the computer system that is used to connect to the datab...
A: Introduction: Database servers are used to store and maintain databases on the server and offer data...
Q: Perform addition, subtraction and multiplication for the pair of following octal numbers. Verify you...
A: Given numbers (417)8 , (134)8 (417)8 = (4 × 8²) + (1 × 8¹) + (7 × 8⁰) = (271)10 134 = (1 × 8²) + (...
Q: A.6. What is a peer-to-peer process?
A: The problem is based on the basics of networking.
Q: exhibit an of length n. He characterizes an exhibit to be acceptable in case it's absolutely impossi...
A: Here have to determine about the impossible to parcel programming problem statement.
Q: A new system designed by Brutus and Brutus use ONLY 2’s complement to perform subtraction. You are t...
A: 2's binary subtraction of 763.558 - ABD.01316
Q: A broken-down automated vehicle requires the 1’s complement of 874039 to repair it, however, the au...
A: Vehicle required 1s complement of 874039 First we convert to binary of the number then convert to 1s...
Q: Microsoft window is developed by
A: Microsoft Windows which is also called as Windows is defined as a graphical operating system. It can...
Q: • Write a Python function called coder which takes a string of characters s and returns another enco...
A: Answer :
Q: You have given a string and spilt it into the required one in Php Given string : '025609' Required...
A: Required:- You have given a string and split it into the required one in Php Given a string: '025609...
Q: Write a c# program to find the sum of 1+ 11+ 111+ 1111 ... N terms
A: Algorithm: Start Read n value Initialize sum to 0 Initialize j to 1 Iterate through the loop from i...
- Consider a class that keeps track of the sales of an item. An object of this class will have the attributes
- Number sold
- Total sales
- Total discounts
- Cost per item
- Bulk quantity
- Bulk discount percentage and the following methods:
- registerSale(n) records the sale of n items. If n is larger than the bulkquantity, the cost per item will be reduced by the bulk discount.
- displaySales displays the number sold, the total sales, and total discount.
- Implement the class in Java.
- Write some Java statements that test the class.
Trending now
This is a popular solution!
Step by step
Solved in 4 steps
- Consider a class that keeps track of the sales of an item. An object of thisclass will have the attributes• Number sold• Total sales• Total discounts• Cost per item• Bulk quantity• Bulk discount percentageand the following methods:• registerSale(n) records the sale of n items. If n is larger than the bulkquantity, the cost per item will be reduced by the bulk discount.• displaySales displays the number sold, the total sales, and totaldiscount.a. Implement the class in Java.b. Write some Java statements that test the class.Implement the design of the Pizza class so that the following output is produced:[Your code should work for any number of parameters added in the set_toppings_info method]# Write your codes here.print("Pizza Count:", Pizza.pizza_count)print("=======================")p1 = Pizza("Chicken")p1.set_toppings_info(25, 1, 4, 0)p1.display()print("------------------------------------")p2 = Pizza("Olives")p2.set_toppings_info(15, 1.5, 0, 0)p2.display()print("------------------------------------")p3 = Pizza("Sausage")p3.set_toppings_info(50, 5, 2, 0)p3.display()print("=======================")print("Pizza Count:", Pizza.pizza_count)Output:Pizza Count: 0=======================Toppings: Chicken25 calories1 g fat4 g protein0 g carbs------------------------------------Toppings: Olives15 calories1.5 g fat0 g protein0 g carbs------------------------------------Toppings: Sausage50 calories5 g fat2 g protein0 g carbs=======================Pizza Count: 3In Java, Use the Phone class as a baseline, and write a method isUSA. It should return true if the country code is 1 and false otherwise. Also expanding the Phone class, write a method that determines the location of an area code. It should return the name of the area code's city. For example, if cc = 1 and area code = 510 East Bay Area, 650 SF Peninsula, 415 San Francisco, 408 South Bay Area. For this assignment, use literal strings as return values.
- Write a public int method named initialNumberOfSticks which takes two int parameters named max_sticks and min_sticks and returns a random integer value between max_sticks and min_sticks (inclusive). You will create a new instance of the Random class and call it r. Use the nextInt method of r to a get random value within a desired range and use it to compute the value that will be returned. Your method must be a syntactically correct Java method.Suppose that a Scanner object contains a bunch of tokens all on a single line separated by spaces. For example: 100.5 30.4 pizza 56.8 1000.3 8.2 Also suppose that you have a particular item that you know the price of. Let’s use the following example: Kindle: 99.99 Write a static method: public static double priceIsRight(Scanner s, double price) that takes a Scanner and an item price as parameters and returns the bid that is closest to the item price but not greater than the item price. If all bids are greater than the price, return 0.0. If there are no bids (Scanner is empty) return 0.0. You can assume the Scanner is not null. In the above example. 56.8 should be returned, since it is the number that is closest to 99.99 but not over 99.99. Notice that there may be some invalid tokens in the Scanner's input. The above example has pizza as one of its tokens, which is clearly not a valid bid. Your method should throw these tokens away and not consider them as bids. It is probably…Suppose that a Scanner object contains a bunch of tokens all on a single line separated by spaces. For example: 100.5 30.4 pizza 56.8 1000.3 8.2 Also suppose that you have a particular item that you know the price of. Let’s use the following example: Kindle: 99.99 Write a static method: public static double priceIsRight(Scanner s, double price) that takes a Scanner and an item price as parameters and returns the bid that is closest to the item price but not greater than the item price. If all bids are greater than the price, return 0.0. If there are no bids (Scanner is empty) return 0.0. You can assume the Scanner is not null. In the above example. 56.8 should be returned, since it is the number that is closest to 99.99 but not over 99.99. Notice that there may be some invalid tokens in the Scanner's input. The above example has pizza as one of its tokens, which is clearly not a valid bid. Your method should throw these tokens away and not consider them as bids. It is probably…
- Write a class that represents a player in a game. The player should have a name, password,experience points, an inventory array of four strings, and a location x,y. Your class shouldhave mutator and accessor methods for all variables. For example: setName(), getName(). Itshould have a suitable display method. Mutators and accessors should be public but allvariables should be private. To implement get inventory, use string * getInv(); Use the scoperesolution operator to implement larger methods such as display(). Use in class methods forshorter methods such as setName(), getName(). (in C++)Example:void setName(string name){this->name = name;}string *getInv();...string* player::getInv(){return inventory;}Note that in the above method setName “this->” is required for disambiguation. If writtenvoid setName(string n){name = n;}“this->” is not required.Write a test program that creates three players and displays them.Example Output:This program generates three player objects and…Write a java program in a class CountPoor that counts the number of families that are considered poor. Write and use a class Family that has the attributes. income—a double value that is the income for the family size—the number of people in the family and the following methods: Family(income, size)—a constructor that sets the attributes isPoor(housingCost, foodCost)—a method that returns true if housingCost + foodCost * size is greater than half the family income (foodCost is the average food cost for an individual, while housingCost is for the family) toString—a method that returns a string containing the information about the family The program should read an integer k from the keyboard and then create an array of size k whose base type is Family. It should then create k objects of type Family and put them in the array, reading the income…We have two classes; these classes are "Car" and "Price".The "car" class is a class that keeps the id and price of the car.If the "Price" class is, there will be get / set methods for the segment of the fee (For example Y segment Z segment), the number of cars, and the "Car" class list.In the "Price" class, there should be a print method to add / remove cars to the list and find the ids of Vehicles whose segments are equal to X.The segments are as follows. 0$ -15999$ -> Y Segment16000$-24999$ -> Z Segment25000$-50000$ -> T Segment It is necessary to use "Single Linked List".The program should be written in JAVA.
- public class BackAccount{public double Balance { set; get; }public void Deposit(double amount){Balance = Balance + amount;} }Transaction FeesTransaction TypeDeposit Withdrawal Check BalanceAmount0.25 % of the deposit amount 0.5 % of the withdrawal amount FreeQ.1.1Amount0.25 % of the deposit amount 0.5 % of the withdrawal amount FreeQ.1.1Using the code snippet above, complete the bank account functionality by adding Withdraw and CheckBalance methods. In your definition for the Withdraw method, check if the account has sufficient funds before making a withdrawal. Apply transaction fees as per the table above: Q.1.2Using the transaction fees table and code snippet above, modify the Deposit method to include transaction fee charge.Q.1.3Generate a UML class diagram for the class definition above. Complete Q.1.1 and Q.1.2 before completing this question.Q.1.4Write a Unit Test class for the class used in Question 1 above. Name the unit test class “BankAccountTests”.Create a test method name…Write a java application that contain the following classes A) Pizza class that contains the following 1- private Data fields - Size (e.g. small, medium, and Large) - price (e.g. small (10 CAD), medium (12 CAD), and Large (15 CAD)) - number of Pizzas 2- public Methods: - Two constructors - Setters and Getters (setters should check that in put is valid) - total that returns the total price (users buying three pizzas or more gets 15% discount) - to string method B) Main class that contains main method Inside the main method - Create Array of Pizza objects - Display the array on Console.In this exercise, you have to implement a calculator which can perform addition, subtraction, multiplication, and division. Problem Statement# Write a Java class called Calculator with ● private fields: ○ num1 and num2 (double type) And methods: ● add(), a method which returns the addition of two numbers ● subtract(), a method which returns the subtraction of num1 from num2 ● multiply(), a method which returns the multiplication of numbers ● divide(), a method which returns the division of num2 by num1 ● Define a parameterized constructor which takes two parameters num1 and num2 and assigns these variables to the respective fields in the class. Input# Pass double point numbers in the parameterized constructor Output# addition, subtraction, division, and multiplication Sample Input# Calculator obj = new Calculator(10, 94); obj.add() obj.subtract() obj.multiply() obj.divide() Sample Output# 104 84 940 9.4 Part of the Solution class Calculator { // write class fields here public…