Please answer the question below 18. Choose correct option _______ initializes a new instance of Line class. Border BorderProperty Surround Line()
Q: Define a new class ShieldedShip that inherits from Fighter. Add a variable property shieldStrength…
A:
Q: Question 41 Which the following methods is used to set the graphics current color to the specified…
A: public abstract void setColor(Color c): It is used to set the graphics current color to the…
Q: I've posted this question several times. T-T) huhu... i just need the source code in java language.…
A: 1. The code for the first question is as follows: class Details { String name, address;…
Q: create a class named square that contains data fields for height, width, and surfaceArea, an method…
A: Java programs are usually translated to bytecode and can execute on any Java virtual machine (JVM),…
Q: java programming Create a class called Citizen with the following attributes/variables: a. String…
A: As per our guidelines we are suppose to answer first three sub question. Kindly repost other…
Q: Create House class with the following properties a. floorSize b. noOfFloors C. no OfDoors d.…
A: Program approach:- Property for floorSize. Property for noOfFloors. Property for noOfDoors. Define…
Q: Assignment 8B: Hit Boxes (Part 2). Back in Assignment 2 (so long ago!) we created a simp program to…
A: Given:
Q: (d) Briefly explain the meaning of the following java code in the context of mobile programming…
A: It is a java class with name syllabus extends activity which implements adapter view Text view,…
Q: Question 1: Sliding Window Averagerator Complete the code below, defining a sliding window…
A: the answer for the given question is given below:
Q: renewed but DVDS cannot, and DVDS have a shorter loan perio oks. The library may expand in future to…
A: Ans.) Option B i.e. A Book class and Dvd class that are unrelated and a Library class that stores…
Q: Which statement is true for the Array class? a) Arrays can have variable length b) The length…
A: ARRAY CLASS - Arrays class is present in a particular package that is - java . util package . For…
Q: Create an application named ShapesDemo that creates several objects that descend from an abstract…
A: public abstract class GeometricFigure { //declaring instance variables protected double height;…
Q: 1. Naming agreement: In order to insure compliance of all projects done for this course with my…
A: Here our task is to create 2 classes that will manipulate some geometrical objects. Since the object…
Q: Purpose To review interfaces Directions Your task for this lab is to implement and test a class to…
A: Here I have created the class named Rating and implemented the Comparable interface. Next, in the…
Q: ava. Check ‘n Shop is a grocery supermarket in South Africa that provides a loyalty program to…
A: The given problem is to be solved in Java where 2 classes are needed as below: 1. Shopper.java 2.…
Q: n the Holiday many of hotel offered packages booking and there are 3 types of packages available s…
A: The Unified Modeling Language (UML) statechartoutline is utilized for displaying the powerful parts…
Q: Program #2 1. Show StudentsADT interface 2. Create a Course class with the following methods:…
A: Answer :-
Q: I cannot deallocate memory in c++ classes association. class Pages { private: char* pageID; char*…
A: Object Oriented concepts are derived from real life activities. For better understanding let's take…
Q: please can u please write a java code for me Create a class called Citizen with the following…
A: public class Citizen { String citizenID; String citizenName; String citizenSurname;…
Q: Error 1. Create House Class with the following properties and methods a.floorSize b. noOfFloors c.…
A: The above code is rewritten using c++.
Q: 1. Naming agreement: In order to insure compliance of all projects done for this course with my…
A: Answer: Step 1 Here our task is to create 2 classes that will manipulate some geometrical objects.…
Q: Design, implement and test a DJ class. A DJ object has a name - djName and an isHired attribute…
A: As per the requirements, We need to write JAVA code.
Q: Create a class Circle, which - has a field radius (double) It should have appropriate accessor and…
A: Sample Response: //Java program to calculate area and perimeter fo circlepackage circle;//Circle…
Q: ASAP!! Solve the written question not the image one Q3 part 3 attached in the image with the table…
A: 1.) The method signature is basically a declaration of the instance function in the base class so…
Q: 1. Create (the package) as (P1) and another as (P2). 2. Create an Interface (named Human) inside…
A: A class is the building block of object oriented modelling. It contains data and operations on that…
Q: Which visibility modifier prevents child classes from accessing a property or method? Protected…
A:
Q: Create a class Classroom, the class contains the following data fields and data types. Data Type…
A: public class Main{ public static void main (String[] args) { Classroom c1=new…
Q: Data Fields: 1. city: It may consist of one word or two such as "Beiruť", “Bint Jbeil", etc. 2.…
A: public class Main{ public static void main(String[] args) { //create 2 instances Apartment…
Q: Creating a Class for Dates Create a class called Date212 to represent a date. It will store the…
A: Solution: Given, Create a class called Date212 to represent a date. It will store the year, month…
Q: solve this question using java You must define a class named MediaRental that implements the…
A: ANSWER:-
Q: Create a Vehicle class for keeping current set of coordinates and calculating the distance to new…
A:
Q: try to use classes to design an online address book to keep track of the name, addresses, phone…
A: main.java: import java.io.*;import java.util.*; public class main{ static Scanner console = new…
Q: Base of class Node public class Node { int key; Node left, right, parent; public Node() {} public…
A: From the internal order of the BST sequence So across each node we will find the difference from the…
Q: Object: Square States: side Behaviors: computeArea(), computePerimeter() Object: RightTriangle…
A: Code: class Square{ double sides; public Square(double sides) { this.sides = sides; } public void…
Q: Part 1: You have been hired by a retro game shop to develop a digital inventory system for their…
A: As it is instructed that there is no need to create the driver class for part 1 so, I am not…
Q: (1) Create two files : ItemToPurchase.java - Class definition ShoppingCartPrinter.java - Contains…
A: EXPLANATION: - ItemToPurchase class comprises of three private instance variables for the name,…
Q: (Python) Which code implements the requirement that the Sky class has ( contains) object(s) of the…
A: Based on Python.
Q: Create a class called Employee that includes three instance variables—a first name (type String), a…
A: Given is to create a class with class name Employee with three attributes(variable) namely…
Q: XYZ Airport has two currency exchange offices. ABC Conversions services the north and e side of the…
A: Please find the cpp code below:
Q: 1) Create the classes in your Project that you see in UML Class diagram. «> Browser > Camera…
A: According to our guidlines, we can solve first ============================================= Here we…
Q: Based on the UML class diagram below, name all the classes that an object of the Rectangle class can…
A: In Java, one of the most significant ideas is typecasting, which is the process of converting one…
Q: CMSC203 Assignment Details Assignment #1 Write a program based on the following flow-chart • This…
A: Given: hint for the java assignment below: First line of your program: import java.util.Scanner; To…
Q: part question I am using eclipse! Create a class Circle, which - has a field radius (double) It…
A: It is defined as A source file is to be created with .java extension. The source file is then…
Q: Create an application named ShapesDemo that creates several objects that descend from an abstract…
A: Solution: As per the requirement submitted above , kindly find the below solution. Here a new…
Q: Refer to the following interface: Prescription Refill Service PRESCRIPTION REFILL SERVICE Your name:…
A: 1.DATE: There are many ways to enhance the date input field. Instead of asking a user to enter the…
Q: Create a class that contains an address book entry and name it AddressBook. The table below…
A: AddressBook class: class AddressBook{ // Attributes private String Name, Address,…
Q: You are required to design a small Mobile manager which keep record of mobiles in the Store. For…
A: Design a small Mobile Manager: do you find yourself getting buried in hours of paperwork when you…
Q: Using javascript getElementByClass- write a simple programe whereby each time a player gets shot by…
A:
Q: create a class called box that has the following attributes lenght, width and height and the…
A: Program: #include <iostream>using namespace std;//Class Declarationclass Box { //Variables…
Please answer the question below
18.
Choose correct option _______ initializes a new instance of Line class.
- Border
- BorderProperty
- Surround
- Line()
Step by step
Solved in 2 steps
- Book Donation App Create a book-app directory. The app can be used to manage book donations and track donors and books. The catalog is implemented using the following classes: 1. The app should have donors-repo.js to maintain the list of donors and allow adding, updating, and deleting donors. The donor object has donorID, firstName, lastName, and email properties. This module should implement the following functions: • getDonor(donorId): returns a donor by id. • addDonor(donor): adds a donor to the list of donors; donorID should be autoassigned a random number. • updateDonor(donor): updates the donor having the matching donorID. • deleteDonor(donorID): delete the donor with donorID from the list of donors, only if they are not associated with any books. 2. The app should have books-repo.js to maintain the list of donated books and allow adding, updating, and deleting books. The book object has bookID, title, authors, and donorID properties. • donorID references the book’s donor. This…Problem 2: Route Planning You are on the development team for a Route Planning application. The team has already developed a class named NavigatorApp for storing and displaying the graph representing the road network. This class has a void displayShortestPath() function which takes the source and destination vertices of the trip and displays the shortest route between them. Using the strategy pattern, draw a class diagram of the system which will allow for the NavigatorApp to display the shortest driving, walking, or cycling route when the displayShortestPath() function is called. You can assume that another developer is in charge of making sure the appropriate strategy is correctly set and for calling the displayShortestPath() function Starter code /* Modify NavigatorApp (if necessary) */ class NavigatorApp { private: Graph map; public: void displayMap(Window * window); void displayShortestPath(Vertex source, Vertex destination, Window * window); /* write pseudo code for this function…Double Bubble For this exercise you need to create a Bubble class and construct two instances of the Bubble object. You will then take the two Bubble objects and combine them to create a new, larger combined Bubble object. This will be done using functions that take in these Bubble objects as parameters. The Bubble class contains one data member, radius_, and the corresponding accessor and mutator methods for radius_, GetRadius and SetRadius. Create a member function called CalculateVolume that computes for the volume of a bubble (sphere). Use the value 3.1415 for PI. Your main function has some skeleton code that asks the user for the radius of two bubbles. You will use this to create the two Bubble objects. You will create a CombineBubbles function that receives two references (two Bubble objects) and returns a Bubble object. Combining bubbles simply means creating a new Bubble object whose radius is the sum of the two Bubble objects' radii. Take note that the CombineBubbles function…
- Parking Ticket SimulatorFor this assignment you will design a set of classes that work together to simulate apolice officer issuing a parking ticket. The classes you should design are:• The Parkedcar Class: This class should simulate a parked car. The class's respon-sibilities are:To know the car's make, model, color, license number, and the number of min-utes that the car has been parkedThe BarkingMeter Class: This class should simulate a parking meter. The class'sonly responsibility is:- To know the number of minutes of parking time that has been purchased• The ParkingTicket Class: This class should simulate a parking ticket. The class'sresponsibilities areTo report the make, model, color, and license number of the illegally parked carTo report the amount of the fine, which is $2S for the first hour or part of anhour that the car is illegally parked, plus $10 for every additional hour or part ofan hour that the car is illegally parkedTo report the name and badge number of the police…Lab Goal : This lab was designed to teach you more object oriented programming and start you down the path of creating larger programs and games like BlackJack and Elevens [ one of the new AP CS A Labs ]. You will create a Deck class that contains a List < Card >Lab Description : You need to design a class that contains an instance variables which is a List < Card > and an int that keeps track of the top card position . You then need to make a constructor and related methods. You will need a dealCard method and a shuffle method. Use the template shown below. /make a Deck classpublic static final int NUMCARDS = 52;public static String[] SUITS = "CLUBS HEARTS DIAMONDS SPADES".split(" ");private List<Card> cards;private int top;//make a Deck constructor//refer cards to new ArrayList//set top to the top of the deck 51//loop through all suits//loop through all faces 1 to 13//add a new BlackJackCard to the deck//make a dealCard() method that returns the top card//write…Library Information System Design and Testing Library Item Class Design and TestingDesign a class that holds the Library Item Information, with item name, author, publisher. Write appropriate accessor and mutator methods. Also, write a tester program(Console and GUI Program) that creates three instances/objects of the Library Items class. Extending Library Item Class Library and Book Classes: Extend the Library Item class in (1) with a Book class with data attributes for a book’s title, author, publisher and an additional attributes as number of pages, and a Boolean data attribute indicating whether there is both hard copy as well as eBook version of the book. Demonstrate Book Class in a Tester Program (Console and GUI Program) with an object of Book class.
- Circle ClassWrite a Circle class that has the following fields:• radius: a double• PI: a final double initialized with the value 3.14159The class should have the following methods:• Constructor. Accepts the radius of the circle as an argument.• Constructor. A no-arg constructor that sets the radius field to 0.0.• setRadius. A mutator method for the radius field.• getRadius. An accessor method for the radius field.• area. Returns the area of the circle, which is calculated asarea = PI * radius * radius• diameter. Returns the diameter of the circle, which is calculated asdiameter = radius * 2• circumference. Returns the circumference of the circle, which is calculated ascircumference = 2 * PI * radiusWrite a program that demonstrates the Circle class by asking the user for the circle’s radius, creating a Circle object, and then reporting the circle’s area, diameter, and circumference.Make Album in c++ You are going to develop a new class named Album. This class will has (at a minimum) teh following attributes and features: Attributes: Album Title Artist Name Array of song names (Track Listing) Array of track lengths (decide on a unit) At most there can be 20 songs on an album. Behaviors: Default and at least one argumented constructor Appropriate getters for attributes bool addTrack(string name, type duration) - adds track to album. You decide type on duration. Make sure you document what dis is. getAlbumLength() - method dat returns total length of album matching watever units / type you decide. getAlbumLength_string() - method dat returns total length of album in mm:ss format string. I would suggest using you're other getLength function here. string shuffleAlbum(int n) - method dat returns a formatted string made up of n random tracks from teh album. The string will be in the format [1] track_name (mm:ss), [2] track_name (mm:ss)... Well formatted print()…Make Album in c++ You are going to develop a new class named Album. This class will has (at a minimum) teh following attributes and features: Attributes: Album Title Artist Name Array of song names (Track Listing) Array of track lengths (decide on a unit) At most there can be 20 songs on an album. Behaviors: Default and at least one argumented constructor Appropriate getters for attributes bool addTrack(string name, type duration) - adds track to album. You decide type on duration. Make sure you document what dis is. getAlbumLength() - method dat returns total length of album matching watever units / type you decide. getAlbumLength_string() - method dat returns total length of album in mm:ss format string. I would suggest using you're other getLength function here. string shuffleAlbum(int n) - method dat returns a formatted string made up of n random tracks from teh album. The string will be in the format [1] track_name (mm:ss), [2] track_name (mm:ss)... Well formatted print()…
- Computer Engineering lab Assignment 3:- Apex (Salesforce) - Create an apex class - In the apex class we have to create 1 method. - Method return type is void & the argument is null. - Method : - Map<String,String> static 4 values---- Put the value at the time of initialization---- Put the value using the map method PUT.We use the _____ operator to create an instance of (object in) a particular class.StockList Class • This class will contain the methods necessary to display various information about the stock data. • This class shall be a subclass of ArrayList. • This class shall not contain any data fields. (You don't need them for this class if done correctly). • This class shall have a default constructor with no parameters. o No other constructors are allowed. • This class shall have the following public, non-static, methods: • printAllStocks: This method shall take no parameters and return nothing. ▪ This method should print each stock in the StockList to an output file. ▪ NOTE: This method shall NOT print the data to the console. The output file shall be called all_stock_data.txt. The data should be printed in a nice and easy to read format. o displayFirstTenStocks: This method shall take no parameters and return nothing. ▪ This method should display only the first 10 stocks in the StockList in a nice and easy to read format. ▪ This method should display the data in the…