Create a class 'Box' that has height, width and depth. The class should have a method volume() which shows the volume of the box. Now, create a driver file where you will create multiple Box objects with arbitrary dimensions and show their result.
Q: 2. Using Divide and Conquer technique, sort the given number using quick sort 9,1,3,5,2,6,4
A: check further steps for the answer :
Q: Why are there so many different partitioning algorithms in use by operating systems, and why are the...
A: Memory partitioning is a technique for splitting a computer's memory into parts that may be accessed...
Q: Who are the people involved in the phases of Waterfall Model
A: WaterfallModelThe first Process Model to be introduced was the Waterfall Model. It's quite simple to...
Q: What are some of the societal ramifications of a growing proportion of the global population using s...
A: In 2017, more than one billion people throughout the world used cellphones. This accounts for over h...
Q: Develop a program in Java to demonstrate the operations of Leftist Heap. The menu should contain fo...
A: Develop a program in Java to demonstrate the operations of Leftist Heap. The menu should contain ...
Q: The variable for level should be of int type. The bonus attack speed % should be converted to decima...
A: We need to create a Program that computes the current attack speed at a certain level. We need to ta...
Q: SD cards come in different types.
A: SD cards come in different types
Q: What Is SDLC?
A: Lets discuss about SDLC in next steps
Q: Who are the people involved in the phases of Waterfall Model
A: Who are the people involved in the phases of the Waterfall Model?
Q: What is the primary purpose of business analysis? O To organize an information systems project in th...
A: Here is the detailed explanation of the answers.
Q: 3. Given the following linked list: head A R T Explain the steps to delete T and add M in that posit...
A: A linked list is a sequential data structure that stores data in a sequential manner. The particular...
Q: What will you do to distinguish fake and factual information in the internet?
A: Solution :: Some of the best (opinions about what could or should be done about a situation) is to...
Q: Discuss how you determine the placement of primary keys in relational tables to link the tables to e...
A: Answer: The main key is the table's unique identification. A master key is a column (or group of col...
Q: Respond to the following in a minimum of 175 words: Describe the necessary Java commands to create ...
A: Below is the code for the problem described. comments added import java.util.Random;import java.u...
Q: Explain what the GRANT statement is and how it pertains to the security of your system. For vhat kin...
A: INTRODUCTION: GRANT STATEMENT: The GRANT statement may be used to grant database object access permi...
Q: List security vulnerabilities as per Open Web Application Security Project (OWASP).
A: Five of the major Open Web Application Security Project vulnerabilities are below:
Q: Pand Q are two processes that share a set of variables that is common. The variable includes: seq, t...
A: Process Synchronization is a strategy which is utilized to facilitate the cycle that utilization sha...
Q: In this article, we will discuss what whole disk encryption (WDE) solutions are and why they are nec...
A: Introduction: Whole-disk encryption is a way of safeguarding data by converting it into unreadable c...
Q: When does it make sense to break down large computer processes and programs into smaller subsystems?...
A: Segments are used to break down a process. Segments are refers to the sections into which a program ...
Q: Question 1 : Assume that IUB students will get back to physical classes after this midterm week . Bu...
A: a ) What kind of Cloud Computing features might help to coordinate classroom & online hybrid cl...
Q: He got his doctorate at what time.
A: John von Neuman got his doctorate in the year 1926.
Q: Problem 5 (Stacks): A stack of integer elements is implemented as an array. The index of the top ele...
A: The answer is given below:-
Q: TASK: EASY PYTHON PROGRAMMING TASK: Discussion: In the code template below, you are given three clas...
A: Hello. Here is the code: ### Template import random class Card: def __init__(self, value, suite...
Q: What do you mean by a list that is linked twice?
A: Find Your Code Below
Q: Grammar and its application to Fractals Let G=(N,T,P,∑) where ∑ is the start symbol, N = {D}, T = {...
A: According to our guidelines we solve first three: ==================================================...
Q: Explain what the GRANT statement is and how it pertains to the security of your system. For what kin...
A: Data Control Language(DCL): The DCL consists of statements that control security and concurrent acce...
Q: Why is a binary search function nearly always more efficient than a linear search function in C++?
A: Binary Search is better than Linear Search because : Binary Search is very fast as compared to Linea...
Q: |Question:: Write a loop to display the powers of 2 exactly as shown below: 4 16 32 64 128
A: Start Take the number of terms Find the powers of 2 Compute results Print Stop
Q: Assume that we have 4 bytes hexadecimal data: 0x2F, 0x3E, 0x1D and 0x4A. Find the checksum byte for ...
A: we have 4 bytes hexadecimal data: 0x2F, 0x3E, 0x1D and 0x4A
Q: Who are the people involved in the phases of Waterfall Model
A: In waterfall model, Larger teams take control of the project, in some cases can consist of more than...
Q: The quality management plan documents how the project team will implement the quality policy. It mus...
A: For project execution, program management, and business operations, the "Plan-Do-Check-Act" cycle is...
Q: What is a bubble sort, and how do you do it?
A: I have answered this question in step 2.
Q: Create a triangle of summations Start with a list of numbers Create a list of the summation of the f...
A: As per the requirement program is done. Here programming language is not mentioned, so I am doing th...
Q: 286 to the nearest 10
A: So here we to find 286 to the nearest 10 :- Given :- 286 so as we can see , the tens place is two m...
Q: Create a simple Form with CSS effects : 1) Use the CSS to produce the design shown below. 2) Follow ...
A: CSS is used for styling the webpages but it can be used with the help of HTML. Basic layout is creat...
Q: When you look at the motherboard, what does it look like?
A: INTRODUCTION: We tell here about the appearance of motherboard.
Q: The algebraic minterm for F(A,B,C) = AB + BC is: O A+C O none of these O ABC + ABC + A'BC O ABC + AB...
A: The above question is to find min terms for the given Boolean expression in which it is in the form ...
Q: Question:: Describe the TM that accepts the language, L= {w e{a,b,c}* | w contains equal number of a...
A: Here in this question we have asked to describe a Turing machine that accept equal no of a , b ,c .
Q: Consider the following traditional file system, which shows a number of index cards stored in two se...
A: Consider the following traditional file system, which shows a number of index cards stored in two se...
Q: LANGUAGE TO USE C SHARP AND CODE MUST COMPILE IN VISUAL STUDIO. ------------------------------QUE...
A: According to the information given:- We have to follow the instruction mentioned to get the desired ...
Q: Describe the TM that accepts the language, L= {w e {a,b,c}* | w contains equal number of a's, b's an...
A: Language produces six types of character units and a, b, c can be in any form but contains the same ...
Q: Question 2 A network administrator configures the interface Gi7 on R1 with the command ip address 17...
A: Q2 what is the possible cause of problem
Q: Identify five (5) threats to modern security architecture and design and Identify the possible vulne...
A: Five threats are given below: - 1. Spyware: - Typically, spyware tries to attack computers by instal...
Q: What is the procedure for recovering data from a solid state disk in a forensically sound environmen...
A: When data is recovered from a solid state drive (SSD), it is important to ensure that the data is re...
Q: What will be the impact of the internet of things (IoT) on our everyday lives? Justify your position...
A: Introduction: IoT is a network of networked, internet-connected devices that can gather and transmit...
Q: Previous code doesn't work please provide a code that works
A: C++ Program for above : #include <bits/stdc++.h> using namespace std; int main() { sr...
Q: I need to implement the Q learning and SARSA algorithm in python from scratch. I'm not allowed to us...
A: Reinforcement Learning (RL) is one of the learning paradigms in machine learning that learns an opti...
Q: Show the locations of the following data in the data segment, and the data. (ASCII of 'H' = 68h, 'e'...
A: CODE:- print("Enter a String: ", end="")text = input()textlength = len(text)for char in text: asc...
Q: In the processing app (JAVA), create a variable called theta that keeps the value of it from 0 to 6....
A: logic:- use while(true) loop to run loop until condition meets. Display theta value from 0. increm...
Q: Write a program named guess.cpp that generates a random number between 1 and n, where n is the upper...
A: Use srand for generating different number every time and for guessing use a loop till the guess and ...
2 modules that need simple object-oriented concepts.
I need the code .don't write together these two codes will be like p1.cpp , p2.cpp
just paste the code here you may also give screenshot
Step by step
Solved in 3 steps with 1 images
- Solve this question using java language you have to read the information from a file then print them in a file please read the instructour carefully, also look at the attach image to help you to solve it. pecificationsWhat You Must ImplementYou must define a class named MediaRental that implements the MediaRentalInt interface functionality(index A). You must define classes that support the functionality specified by the interface. The followingspecifications are associated with the project:1. Define a class named MediaRental. Feel free to add any instance variables you understand are needed or anyprivate methods. Do not add any public methods (beyond the ones specified in the MediaRentalInt interface).2. The media rental system keeps track of customers and media (movies ,music albums and games). A customerhas a name, address as string , a plan and two lists. One list represent the media the customer is interested inreceiving and the second one represents the media already received…Open the Palace Solution.sln file contained in the VB2017\Chap10\Palace Solution folder. Use Windows to copy the Rectangle.vb file from the VB2017\Chap10 folder to the Palace Project folder. Then, use the Add Existing Item option on the Project menu to add the file to the project. Modify the Rectangle class to use Double variables rather than Integer variables. Change the name of the GetArea method to GetAreaSqFt. Add another method to the class. Use Get AreaSqYds as the method’s name. The method should calculate and return the area of a rectangle in square yards. The application’s Calculate button should calculate and display the number of square yards of carpeting needed to carpet a rectangular floor. Code the btnCalc_Click procedure. Display the number of yards with one decimal place. Save the solution and then start and test the application.previous questions attached on the images, answer required in c++ 1.4.Write a back-end class called AdvancedAPM11A1Encryptor and save it in a file called AdvancedAPM11A1Encryptor.cpp. This class must inherit the functionality of theAPM11A1Encryptor class and add functionality that will enable us to make use of the ExclusiveOR encryption procedure. This class must have the following structure: Inherited Data Members Data Type: intName: int key Description: This member will store the key that will be used during the encryption process Public Methods Return Type:charMethod Signature : encryptACharacter(char character) Description:This method must encrypt the received character by using the key class member and the ExclusiveOR encryption technique. Inherited Methods Method Signature:encryptPage(Page page), setKey(int key 1.5. Write a main program and save it in a file called Run.cpp. In this program you must read a text file that contains sentences into a Page object, encrypt the…
- Please do not give solution in image format thanku Createa file named method_override.py and follow the instructions below:● Take user inputs that ask for the name, age, hair colour, and eye colour of aperson.● Create an adult class with the following attributes and method:○ name, age, eye_colour, and hair_colour○ Method called can_drive() that prints the name of the person andthat they are old enough to drive.● Create a subclass of the adult class named “Child” that has the sameattributes, but overrides the can_drive method to print the persons nameand that they are too young to drive.● Create some logic that determines if the person is 18 or older and create aninstance of the Adult class if this is true. Otherwise, create an instance of theChild class. Once the object has been created, call the can_drive() methodto print out whether the person is old enough to drive or not. Most importantly, please ensure to pass the parameters in the constructor correctly and to add comments for…Hi can I get help for java code for this project Part 1 of this project is basically concerned with completing methods printAllAnimals() and readDataFromFile(). The readDataFromFile() method uses a FileDialog object so that you can easily select a file to read data from, but the code for reading the data is missing. However, if you create a MyZoo object and execute the readDataFromFile() then you should see a message stating that 10 animals have been read from the file (but remember that a common problem is that the "open file" dialog gets hidden behind other windows). It doesn't matter which input file you select as no data is read from the file, instead some "temporary" code will "populate" the zoo. After executing readDataFromFile(), if you next execute the printAllAnimals() method then only a "header" will be printed -- it will not actually show any animals as this method is also incomplete. Proceed by completing the following stages. Note that no changes should be needed for class…Create a class SocialEvent with 3 attributes: Event title,date, for simplicity, we won’t restrict the date to a specific format andnumber of attendees..The class should contain a constructor (__init__ method), accessor and mutator methods (getters and setters), and a __str__ method.In the same file, write a main function that prompts the user to input 3 events. The function outputs the events sorted by number of attendees.
- You are required to develop a small chatting application where two or more friends can communicate each other through messages. Create a class Message which has Date date, and message (string). Provide getters/setters, constructors, toString. Create a class Friend having String name, String contact, email provide getters/setters, constructors, toString. Provide following options to the user. Add Friend (which add new friend to the Friends file) View Friends (read data from Friends file and display) Send message (This should ask for friend name and message match the friend name and write that message to the inbox file). Read messages (This show all messages form inbox on JList or Text area. Note: Create a manager class with methods use to read and write messages to “inbox” file you should write sentMessage(Friend f, Message message) method which write the messages to the file user can send as many message as he/she wants (use loop and arraylist). Write another method readMessages()…You are required to develop a small chatting application where two or more friends can communicate each other through messages. Create a class Message which has Date date, and message (string). Provide getters/setters, constructors, toString. Create a class Friend having String name, String contact, email provide getters/setters, constructors, toString. Provide following options to the user. Add Friend (which add new friend to the Friends file) View Friends (read data from Friends file and display) Send message(This should ask for friend name and message match the friend name and write that message to the inbox file). Read messages (This show all messages form inbox on JList or Text area. Note:Create a manager class with methods use to read and write messages to “inbox” file you should write sentMessage(Friend f,Message message) method which write the messages to the file user can send as many message as he/she wants (use loop and arraylist). Write another method readMessages()…When considering the ArrayBag class and the ArraySortedBag class, which of the following is TRUE? The ArraySortedBag class is the parent of the ArrayBag class The ArrayBag class is a subclass of ArraySortedBag The ArrayBag class is the child class of ArraySortedBag The ArraySortedBag class is a subclass of ArrayBag How is creating a subclass of an existing class different from copying the code from the existing class to a new file? Delete all the methods that don't have to change You don't need an __init__ method The name of the subclass is in parentheses of the class header No methods need be created or modified
- Rooms.txt (427 B) Imagine we were creating a Textbased Adventure Program where a user can navigate through a series of rooms and pick up items, use them, put them down and get points. This assignment has us just reading the rooms of a game from a file into our program and displaying the rooms, not building the entire game. Create a new Java Project. Name it TestReadRoomFile or something like that. Add a Room class to the project according to the following UML. Room -roomNumber: int the room number -roomName: String the name of the room -description: String the description of the room +Room(roomNumber: int, roomName:String, description:String) Constructor. Assign the parameters to the instance variables. +getRoomName():String returns the name of the room +getRoomNumber(): int returns the room number +getDescription(): String returns the description +toString():String returns a string with all the room information. Create a ReadRoomFile class similar to the OOP example…Create a file with the name car.py to store information about a single Car Class. The Car object needs to include the following information: Car name Car vin number Car make Import the Car class into the main.py. Inside the main portion of the code, create a Car object, car1, that has the name "Car", vin "111", and the make "Honda". Print the car information to the commandline and make sure that your code is working correctly. Create a file with the name linkedlist.py. This file will contain the linked list class and the node class as well. The linkedlist.py file needs to import the Car class Create a class Node to represent a single node in the linked list. The class will be inside the linkedlist.py file. The Node class will include the following: A next pointer to hold the address of the next node. You need to set this variable to None A car variable to hold the car objects. Test your Node class in the main. Create a Car object car1. Set the name of the car, vin, and model Create a…Create a program using classes that does the following in the zyLabs developer below. For this lab, you will be working with two different class files. To switch files, look for where it says "Current File" at the top of the developer window. Click the current file name, then select the file you need.(1) Create two files to submit: ItemToPurchase.java - Class definition ShoppingCartPrinter.java - Contains main() method Build the ItemToPurchase class with the following specifications: Private fields String itemName - Initialized in default constructor to "none" int itemPrice - Initialized in default constructor to 0 int itemQuantity - Initialized in default constructor to 0 Default constructor Public member methods (mutators & accessors) setName() & getName() setPrice() & getPrice() setQuantity() & getQuantity() (2) In main(), prompt the user for two items and create two objects of the ItemToPurchase class. Before prompting for the second item, call…