1. Create an array of 8 disks with 4 disks of type Audio created at even indices and 4 disks of type Video created at odd indices. The program will prompt the user to fill all the attributes. . Write the code that prompts the user to enter the number of tracks to be added to each audio disk created in the array. Then, the program will prompt the user to enter the name of each track as a String.
Q: // Swap.cpp - This program determines the minimum and maximum of three values input by // the user…
A: Solution:: code: #include <iostream> using namespace std; int main() { // Declare…
Q: (b) Messages are to be encoded using the RSA method, and the primes chosen are P 19, so that n- pq-…
A: Below is the answer to above question. I hope this will be helpful for you....
Q: When should a network update be planned, and for how long?
A: You should update your network if you can't recall the last time you did so. If you're like the…
Q: The IPv6 has O options O header checksum O fragmentation O anycast address feature, which is not in…
A: The Answer is
Q: convex function...
A: Given :- In the above question, the function is mention in the above given question Need to prove…
Q: When it comes to the administration and diagnosis of problems with networks, there is a wide…
A: Networking systems: Standard utilities and tools help manage and diagnose network problems. Describe…
Q: representation Find the circuit state below; (100)+101) + |10) + |11)) ½½ (−|00) + |01) + |10) +…
A:
Q: Do deadlocks always cost more money to prevent than to allow them to develop and then discover them…
A: Find the required answer given as below :
Q: What kind of memory does the computer have, and how can you describe it?
A: Memory: It is a storage component that can remember and keep some information in its internal state.
Q: Create a function that takes numbers $b and $m as arguments and returns the derivative of the…
A: In this problem we need to work on the PHP programming lanaguage and createa progrma for the…
Q: What kind of communication is used in a local area network that is wireless?
A: Wireless: Radio and spread spectrum — a high-frequency radio technology like digital cellular and a…
Q: In addition to network-based firewalls, what additional kinds of firewalls are there?
A: Firewalls monitor traffic and the assist prevent unwanted traffic from entering your network, while…
Q: What is the difference between avoiding deadlock and preventing deadlock?
A: INTRODUCTION: A deadlock occurs when two computer programmes that share the same resource…
Q: Determine how contemporary network programs may accommodate numerous concurrent connection
A: For connected-web applications, it's common to open many persistent TCP or Transport Control…
Q: & wait proto the propagatio
A:
Q: If a class does not have a function Object() { [native code] } declared for it, then how are objects…
A: An object is a developer-defined abstract data type in object-oriented programming (OOP). In most…
Q: Implement a complete class in c ++ code that represents a sorted list of integers (the…
A: We will use c++ vectors to store the data. vector<int> v; //Decleration of vector…
Q: In a docx file, 1. Give at least five of your favorite websites and identify the components/parts…
A: Here is the websites and their components:
Q: A microprocessor bus comprises 8 data lines, 24 address lines, and typical control signals. Show…
A:
Q: Compare Ubuntu with other well-known Linux distributions to get an idea of its strengths and…
A: It is essential to make this choice at this juncture. Ubuntu prevails as the best Linux distribution…
Q: When a client wishes to establish a connection to an object that is reachable only via a firewall,…
A: answer for this is
Q: 4. An ISP is granted the block 80.70.56.0/21. The ISP needs to allocate addresses for two…
A: The answer is
Q: Create a test program for the classes shown in part 1. Assume that all the classes are implemented…
A: Solution - Programming language - Java All subparts are answered in same program code, their…
Q: A firewall's primary responsibility is to protect your computer from unwanted visitors. When using…
A: A firewall in a computer system is a barrier between our private internet and publicly spread vast…
Q: Find out what kind of communication the wireless local area network use.
A: Introduction: A wireless local area network (WLAN) is a wireless network that connects two or more…
Q: 1- Based on the UML shown below, Implement in Java the following inheritance hierarchy (the classes…
A: OOP or Object-Oriented Programming is a software model that is designed around data or objects…
Q: n the context of RAID systems, what exactly is meant by the term "scrubbing," and why is it so…
A: In the context of RAID systems, what exactly is meant by the term "scrubbing,"
Q: 29. Compute each of these sums. a. Zies(i2 + 1) where S = {1, 3, 5, 7). b. [4i=0(k. 2¹) c. [2i=0…
A:
Q: Disk -title: String -playTime: int // in minutes + Disk(title: String, playTime: int) + get Title():…
A: Solution - Programming language - Java OOPs All solution steps are included in program code…
Q: Two alternative methods are used to terminate processes and break deadlocks.
A: Two methods break a Deadlock: To end the impasse, kill one or more processes. Preemption: To avoid…
Q: p and q are two prime numbers. p=3 and q=11. take public key e=3. if original message is…
A:
Q: 2 GHz clocks wit f time required
A:
Q: find an approximate value of y corresponding to x = 1.4 given dy = xyz and x-1 & y=1 with 4 decimal…
A: The Euler method (also called forward Euler method) is a first-order numerical procedure for…
Q: 02. 1. What is the difference between a performance constraint and a behavioral constraint in a…
A: Timing constraints is a important attribute in real time systems. It will decide the total accuracy…
Q: What methods do hackers use in the process of social engineering in order to get a user's login id…
A: Before stealing data or managing a system with malware or RATs, hackers use this method to get a…
Q: Explain the general architecture of master data and its components in SAP ERP and its significance…
A: Master data management contains tools that organize the data across the enterprise , which helps…
Q: A combinational logic circuit has three inputs with sequence A, B, and C and two outputs with…
A: let us see the answer:- the correct answer is 3
Q: Q2.B. For the following implementations, explain which are possible and which are not possible? (1)…
A: According to Bartleby guidelines we can only give first answer of multipart question, But I will…
Q: What component of hardware is responsible for a device's ability to connect to the Internet?
A: What component of hardware enables a device's physical network connection? Solution: In the network,…
Q: What are the benefits and drawbacks of having global connection to the cloud?
A: Cloud computing connectivity and remote computing are technologies we will use in the future that…
Q: What advancements in routeing and switching technologies have occurred throughout time
A: Answer:
Q: a) What languages do the expressions (Ø*)*and a Ø denote?
A: Language expression is that the ability to place words and word modifiers (prefixes, suffixes) along…
Q: does increasing the number of partitions of the merge sort function worsen its time complexity?…
A: Okay so Merge Sort has a time complexity of Θ(n . log n) for all cases. This would include cases…
Q: eness and coupling in software development: are t
A: Introduction: The relationship within the module is shown by cohesion. Coupling depicts the…
Q: You're interested in learning more about social networking blogs, as well as cloud computing and…
A: Introduction: Instagram, Facebook, and Tumblr are examples of social networking sites that contain…
Q: Explain the details about the abstract Class InputStream that includes read(), skip(), available(),…
A: InputStream class is the superclass of all the io classes for example addressing an information…
Q: Deadlock detection causes requested resources to be made available to those who have come to a halt.
A: Given: When a driver accesses resources that must be locked, such as spin-locks and mutexes,…
Q: draw an example of such graph A graph with 7 vertices with degrees 5,3,3,2,2,2,1
A: Introduction: As there is some basic thing you should now . If the addition of degrees is even then…
Q: Is there a relationship between software design and cohesion and coupling?
A: Cohesion and Coupling: The term "coupling" refers to the interdependencies that exist between the…
plz asap and thanks in advance
Step by step
Solved in 2 steps
- Create a class Rectangle. The class has attribute length and width, each of which defaults to 1. It has methods that calculate the perimeter and area of the rectangle. It has set and get methods for both length and width. The set method should verify that length and width are each floating-point numbers larger than 0.0 and less than 20.0. Write a program to test class RectangleIn C# using an array Implement the inventory manager class. This class must have methods that do the following: Add a new item to the inventory manager. Remove an item from the inventory manager. Re-stock an item in the inventory manager. Display the items in the inventory manager. Search for an item in the inventory manager by at least two criteria (name, price, quantity, etc.). Test the inventory manager class with a driver program or unit tests. This may be a console application.Add a method called multiplesOfFive to the Exercise class. The method must have a void return type and take a single int parameter called limit. In the body of the method, write a while loop that prints out all multiples of 5 between 10 and limit (inclusive) on a single line. For instance, if the value of limit were 15 then the method will print: 10 15 You can use the printEvenNumbers method that is already in the Exercise class as an example to help you work out how to complete this method. In the main method of the Main class, add a call on the Exercise object to your multiplesOfFive method that prints the multiples of 5 between 10 and 25. Add a method called sum to the Exercise class. The method must have a void return type and take no parameters. In the body of the method, write a while loop to sum the values 1 to 10 and print the sum once the loop has finished. In the main method of the Main class, add a call on the Exercise object to your sum method. Check that it prints: 55 Add…
- ) Modify the BookStore and BookSearchEngine classes explained in the class to include the following additional methods and test them:a) A method returning the book with the lowest price in the library.b) A method searching the library for Books of a given author and returning an ArrayList of such Books. c) A method returning an ArrayList of Books whose price is less than a given number.This is the question I am stuck on - In the exercises in Chapter 6, you created a class named Purchase. Each Purchase contains an invoice number, amount of sale, amount of sales tax, and several methods. Now, write a program that declares an array of five Purchase objects and prompt a user for their values. As each Purchase object is created, continuously prompt until the user enters an invoice number between 1000 and 8000 inclusive and a non-negative sale amount. Prompt the user for values for each object and then display all the values. This is the code that I am unsure where to fully start - public class Purchase { private int invoiceNumber; private double saleAmount; private double tax; private static final double RATE = 0.05; public void setInvoiceNumber(int num) { invoiceNumber = num; } public void setSaleAmount(double amt) { saleAmount = amt; tax = saleAmount * RATE; } public double getSaleAmount() { return…8. Write a class named Power Calculator that includes a main method coded to prompt entry of data on 10 people. For each, the user should enter their age (int) followed by their name (String). Calculate their power score, which is the product of the length of their name and their age. Store the information in arrays and print out all the data in the format: following Name: Audrey Age: 21 Power Score: 126 Finally, print out the name associated with the highest score.
- This is the question - In the exercises in Chapter 6, you created a class named Purchase. Each Purchase contains an invoice number, amount of sale, amount of sales tax, and several methods. Add get methods for the invoice number and sale amount fields so their values can be used in comparisons. Next, write a program that declares an array of five Purchase objects and prompt a user for their values. Then, in a loop that continues until a user inputs a sentinel value of Z, ask the user whether the Purchase objects should be sorted and displayed in invoice number order or sale amount order. This is the code I have. The programming isn't likeing what I have at all for the area where it says to write code - public class Purchase { private int invoiceNumber; private double saleAmount; private double tax; private static final double RATE = 0.05; public void setInvoiceNumber(int num) { invoiceNumber = num; } public void setSaleAmount(double amt) {…with python Develop a program, in which you'll design a class that holds the following personal data: name address age phone number As part of the program, you'll then create appropriate accessor and mutator methods. Also, set up three instances of the class. One instance should hold your information, and the other two should hold your friends’ or family members’ information. NOTE: The input data do not need to be real data. Input Data: Set up a loop and enter the following input data: data for the following attributes of 3 instances of the Personal Information Class: name, address, age, and phone number NOTE 1: The input data do not need to be real data. NOTE 2: they need to be entered at the keyboard, when program is run. Processing: Develop the following: Personal Information Class A program that creates three instances of the above class Output Data: Set up a loop and display data within each object: name, address, age, and phone numberThis is the question I am stuck on - In the exercises in Chapter 6, you created a class named Purchase. Each Purchase contains an invoice number, amount of sale, amount of sales tax, and several methods. Add get methods for the invoice number and sale amount fields so their values can be used in comparisons. Next, write a program that declares an array of five Purchase objects and prompt a user for their values. Then, in a loop that continues until a user inputs a sentinel value of Z, ask the user whether the Purchase objects should be sorted and displayed in invoice number order or sale amount order. This is the code I have - public class Purchase { private int invoiceNumber; private double saleAmount; private double tax; private static final double RATE = 0.05; public void setInvoiceNumber(int num) { invoiceNumber = num; } public void setSaleAmount(double amt) { saleAmount = amt; tax = saleAmount * RATE; } public double…
- The following is a class definition for a simple Ebook. Two instance variables and one parameterless constructor are provided. Part 1: Write a second constructor that takes a String array of pages as input and sets the String array instance variable equal to the input. Continue to default the current page number to zero. Part 2: Write a getter and a setter method for the page number variable. The setter should check to make sure that the input is a valid page number and only update the variable if the new value is valid. Part 3: Write a getCurrentPage method that returns the String of the current page indexed by current_page. public class Ebook{ private String[] pages; private int current_page; //constructor public Ebook() { this.pages = {"See Spot.", "See Spot run.", "Run, Spot, run."}; this.current_page = 0; }}Create a rectangle class that can compute the area and the sum of its sides. Create a specialized method that will allow the class to compare other rectangle objects. The comparison should identify the larger rectangle according to the object’s area. You should be able to implement the class where the user provides rectangle dimensions. The program should be able to display which of the rectangle inputs is larger using the Rectangle class method that you defined. Sample output: Enter Length R1: 1 Enter Width R1: 1 Enter Length R2: 2 Enter Width R2: 2 Results: R1 Area: 1 R1 Sum: 2 R2 Area: 4 R2 Sum: 4 R2 is the bigger Rectangle! Note: All characters in boldface are user inputs.Write a program that simulates inventory bins in a warehouse. Each bin holds a number of the same type of parts. The program should use a Class that keeps the following data: Description of the part kept in the bin Number of parts in the bin Then Create a Stock class which hold an array of 10 bins, which can store data as follows (This is an example to give you an idea): Part Description Number of Parts in the Bin Valve 10 Bearing 5 Bushing 15 Coupling 21 Flange 7 Gear 5 Gear Housing 5 Vacuum Gripper 25 Cable 18 Rod 12 Provide Constructors, getters, setters and following methods: AddBin (Bin b), this add bins to the array. RemoveBin (String name), removes a Bin…