Create a class Car with some properties and inherit those in another class CarPrice. Use differnt OOP concepts such as overloading, overriging ,super, this, etc. in the program wth proper input and output.
Q: Queue operates in FIFO and Stack operates in LIFO’ - explain their operations according to this phen...
A: Stack (LIFO): It is a linear data structure in which the elements can be inserted and deleted only f...
Q: What are the four essential activities that occur throughout software development?
A: The four fundamental activities in software processes in the following: Software requirement specif...
Q: java : Syntax errors detected by the compiler during compilation? Choose one of the options: True F...
A: here in this question we have asked that syntax error are detected by compiler during compilation. t...
Q: Match expression (exprN) with code! expr1 for (; expr2; expr3) expr4 expr1: Answer 1 expr2: Ans...
A: The syntax in the given question is using a for loop.
Q: Compute in GF(28): (x4+x3+x2+1)/(x7+x5+x3+x2+1) where the irreducible polynomial is the one used in ...
A:
Q: You are given a weighted, undirected graph G = (V, E) which is guaranteed to be connected. Design a...
A: Graph of edges, E = V(V-1)/2 nearly to V2 'V' invocation in Dijkstra algorithm => O (VE log V)...
Q: In light of the fact that percent is a wildcard character, how does the LIKE operator search for a l...
A: Introduction: There are two wildcards that are often used with the LIKE operator: The percent sign m...
Q: Lab work 2: Show the result from the above experiment using binary representation E F Convert the re...
A: 2) The Given Floating point Number are 2.75 and 4.5 Its binary representation are 10. 11 ...
Q: x = y + (z - 4)
A: Code: lw $2,0($fp) sub $2,$2,4 lw $1,4($fp) addu $t,$1,$2 sw $t,8($fp) move ...
Q: You have been tasked with designing and producing the audio components of a multimedia production. T...
A: According to bartleby guidelines we need to answer only first question p;lease repost remaining ques...
Q: Create a website using HTML and CSS. Apply internal CSS. Minimum of 3 webpages.
A: Web page Desi gn using CSS and html <style> * { margin: 0; padding: 0; ...
Q: When the waterfall model is utilized, why are iterations often restricted to a certain number?
A: Introduction: In a waterfall model, iterations are limited: The waterfall model separates project ac...
Q: may be unable to make even a single move. Design an algorithm which runs in O(n log
A: It is given that some numbers are provided to bob and a positive integer k is given such that Bob is...
Q: If each pixel of an acquired image is represented by 11 bits, the number of distinct gray intensitie...
A:
Q: java Which of the following examples is an example of implicit type conversion? int x = 5; int i =...
A: The answer is given below.
Q: Write a logic statement that corresponds with the given logic circuits:
A: Given logic circuit contains three input variables A, B and C and one output variables X. This circu...
Q: 4. Determine whether these biconditionals are true or false a. If 1+1= 3, then unicorns exist b. If ...
A: A biconditional statement is a logic statement that includes the phrase, "if and only if," sometimes...
Q: java You must print the number declared double x; on the screen. With which of the following option...
A: Format specifiers begin with a percent sign (%) and end with a converter. Since x is of type double,...
Q: Display all the events happening on venue F3R21. Display all the events starting on November 21, 201...
A: SQL is a nonprocedural language that helps users to create queries to interact with the data. The be...
Q: Why should you save your internet history, and how long should you preserve your surfing history if ...
A: The answer is given below.
Q: java A constructor is a special method that has the same name as the class and the return type void...
A: Constructor it is a special method it has same name as class and it return type is void because it ...
Q: House +DwaberReomint +type:String +Qisplaxlatol); Bungalow +location:String +gwnerNameStriog. Displa...
A: class House{ int numberRoom=123; String type="delux"; void DisplayInfo() { System.out.println(n...
Q: Write a program that swaps two numbers without requiring the use of a third variable. Do it in C++ ...
A: It is possible to swap two variables' values without using a third variable. We need to make use of ...
Q: Enumerate three examples, each for series and parallel connections
A: A series connection is any switch in your home that controls a single bulb. The light and the switch...
Q: condider 125,100,88,14,69,78 head =50. perform scan. ehat are the total head movements
A: Introduction: In SCAN Scheduling, the disc arm begins on one side of the disc and proceeds to the op...
Q: Java A class always has a constructor that does not take any parameters even if there are other con...
A: A constructor in Java or a Java constructor is a basic term which is used to define a process which ...
Q: (Python), how to number elements of user input? example output: Input number: 1) 100 2) 200 3) ...
A: Given To do python program that take numbers from user like 100,200,300 and print like Input number...
Q: Simplify the expression using Boolean algebra and identities. Given the function F(X,Y,Z) = X’Y’Z’ ...
A: In this question we need to simplify the question given to us. For this we need to keep in mind abou...
Q: When it comes to NFV hardware, what are the different options?
A: Introduction: Network Functions Virtualization is an acronym for Network Functions Virtualization. B...
Q: What is the difference between linear code sequences and all definition use?
A: What is the difference between linear code sequences and all definition use?
Q: What are the differences and similarities between congestion and packet loss in computer networks? T...
A: Packet loss means whenever the data is transmitted from one host to another host, the packets or the...
Q: Compile a list of six operators that may be used while creating a LINQ expression
A: Introduction: LINQ: The abbreviation LINQ stands for Language Integrated Query. It is a component o...
Q: What exactly is a business rule, and how does it help with data modeling?
A: The purpose of business rules is to establish the structure of the company or to affect or govern th...
Q: Differentiate between users of an organization's information system who are vertical and horizontal ...
A: Given: Differentiate between users of an organization's information system who are vertical and hori...
Q: What does the physical layer provide?
A: Introduction: First and lowest in the Open System Interconnection Model, the physical layer (OSI Mod...
Q: In what way does data mining differ from other methods? Give an example of a data mining job descrip...
A: Introduction Data Mining: Data mining is the method of finding anomalies, patterns, and correlations...
Q: Java Assume that you have written a method as follows: public int square (int x) { return x * x...
A: Code:- class s1{public int square (int x) { return x * x;}}public class Main{ public static void m...
Q: Why aren't the NATURAL JOIN keywords available as a choice for generating a self-join?
A: Natural join: It is a form of join that joins tables together based on their column names and types ...
Q: Define test variable
A: Introduction: A test variable is a user-defined name-value pair that saves and refers to information...
Q: "Should information systems be created with the security requirements of society, as well as the own...
A: "Should information systems be created with the security requirements of society, as well as the own...
Q: Write a C program using the while loop print the number series below: 1 3 5 7 9 11 13 15 17 19
A: The program clearly wants us to print all the odd numbers between 1 and 19(inclusive)
Q: ython- Write a script that uses the hashlib module to hash a user entered password and then write t...
A:
Q: can anybody tell me what the meaning and (((draw )))) partial key of the weak entity type? if you...
A: In their identifying link with the owner identification, the weak entities face a whole participatio...
Q: Give an example of a database management system for each of the systems listed above in your respons...
A: A computerized data-keeping system is all that a database management system (or DBMS) really is, Use...
Q: Assume x goes to $s0, y goes to $s1, and z goes to $s2. Convert the following C code to MIPS. Use te...
A: Here we use temporary register to Perform that task: ============================= Explanation: We ...
Q: In no less than 5 words, explain how the instruction set handled data and operations.
A: INTRODUCTION: A processor's instruction set is a collection of all the instructions that it can exec...
Q: 3. Libraries The Android UI toolkit is not thread-safe. What does it mean that the library is not th...
A: Different threads can access different objects simultaneously, and access to shared data is protecte...
Q: Is there an usual connection between an untrusted network, a firewall, and a trustworthy network, an...
A: Introduction: Because of robust firewalls, computers on trusted networks are safer and more secret. ...
Q: Write a program that includes the following while loops and LABEL EACH LINE OF THE LOOP WITH A COMME...
A: package com.company;import java.util.Scanner;public class Circle { public static void main(String[...
Q: Write a program in C to implement the following in a queue of size 9: Read the input from keyboard a...
A: Code: #include <stdio.h>#include <string.h>#include <stdlib.h>#include <stdbool...
Create a class Car with some properties and inherit those in another class CarPrice. Use differnt OOP concepts such as overloading, overriging ,super, this, etc. in the program wth proper input and output.
Step by step
Solved in 3 steps with 3 images
- write the classes integerManipulationImp.cpp and primeFactorizationImp.cpp Write the definitions of the functions of the class primeFactorization (Example 11-4) declared in the primeFactorization header file. Write a program that uses this class to output the prime factorization of an integer. Your program should prompt the user for an integer, determine if the input is a prime number, and display the factorization of the integer. An example of the program is shown below: Enter an integer between 2 and 270,000,000,000,000: 1005427 1005427 is a prime number. Its factorization is: 1005427 = 1005427Implement “SoftwareEngineer” and “CheifEngineer” class derived from “Employee” class with necessary properties so that the expected output is generated. Do not change any given code. # Write your codes here.# Do not change the following lines of code.sw1 = SoftwareEngineer("Bob","Software Engineer",40,1200)print('1.------------------------------------')sw1.calculateWeeklyIncome()print('2.------------------------------------')print(sw1)print('3.------------------------------------')sw2 = SoftwareEngineer("Carol","Software Engineer",45,1200,5)print('4.------------------------------------')sw2.calculateWeeklyIncome()print('5.------------------------------------')print(sw2)print('6.------------------------------------')print(Employee.employeeInfo)print('7.====================================')ce1 = ChiefEngineer("John","Chief…Create a class MyTime which has the datamembers as follows: 1. hour: integer (1 to 12)2. minute: integer (0 to 59)3. second: integer (0 to 59)4. pm: bool variable. True means PM time and false means AM time. Implement a default constructor, a parameterized constructor and a copy constructor. Write set and get functions for all the four members of the class. Overload these operators: 1. Extraction operator >> : Prompt the user for hours, minutes, seconds and for am/pm and initialize the structure. Left operand istream object and right operand MyTime2. Assignment = : Assign the right object to the left object. Both operands are of type MyTime.3. Insertion << : Print the time in the format HH:MM SS PM. Left operand of type ostream and right operand of type MyTime. this in c++.
- Java- Suppose that Vehicle is a class and Car is a new class that extends Vehicle. Write a description of which kind of assignments are permitted between Car and Vehicle variables.Download the file Insect.cpp(mentioned below) and use this as your start file. Inside the file you will see the implementation of the class Insect. Do the following: a. Write a class BumbleBee that inherits from Insect. Add the public member function void sting() const . This function simply prints "sting!" and a newline. b. Write a class GrassHopper that inherits from Insect. Add the public member function void hop() const . This function simply prints "hop!" and a newline. When you are done your program output should look exactly like the output provided at the end of the file. insect.cpp #include <iostream>using namespace std; // Insect class declarationclass Insect{ protected: int antennae; int legs; int eyes; public: // default constructor Insect(); // getters int getAntennae() const; int getLegs() const; int getEyes() const; }; // BumbleBee class declaration // GrassHopper class…Create a base class called Insect. All insects belong to an Order [i.e. “Hemiptera” (ants), “Siphonaptera” (fleas), “Termitoidae” (termites), “Gryllidae” (crickets), etc.] and have a size that is measured in millimeters (use a double data type). Provide a default constructor that initializes the size to zero and outputs the message “Invoking the default Insect constructor” and another constructor that allows the Order and size to be set by the client. This other constructor should also output the message “Invoking the 2-argument Insect constructor.” Also create a destructor for this class that outputs the message “Invoking the default Insect destructor.” Your Insect class should have a function called Eat that cannot be implemented. That is, it should be declared as a purely virtual function. Your class should also have Get and Set methods to allow the order and size to be accessed.
- Create a class BeautyProduct with name, color, brand. Provide Constructors, getters, setters and also write toString method. Now create a class Lipstick which extends the class BeautyProduct as Lipstick is-a Beauty Product it has totalVolume, remainingVolume, price, texture (gloss, matt) as private data members. Provide Constructors, getters, setters and an apply() method whenever this method is called a beauty item is applied and its volume decreases by 10.This should also check that volume must not be zero if it then u have to throw exception. Also write toString method which prints all details like name, color, brand, price, texture and volume. Create another class foundation having totalVolume, remainingVolume, price, texture (liquid, cake) and lastingTime (number of hours foundation remain intact on face and does not crease) as private data members. This also extends the base class i.e. BeautyProduct. Provide Constructors, getters, setters and an apply() method whenever this…Create a new class called Dog that is derived from the Pet class given in Listing 6.1 of Chapter 6. The new class has the additional attributes of breed (type String) and boosterShot (type boolean), which is true if the pet has had its booster shot and false if not. Give your classes a reasonable complement of constructors and accessor methods. Write a driver program to test all your methods, then write a program that reads in five pets of type Dog and displays the name and breed of all dogs that are over two years old and have not had their booster shots.Create a Right Triangle class that has two sides. Name your class rightTraingle. Code getter and setters for the base and the height. (Remember class variables are private.) The class should include a two-argument constructor that allows the program to set the base and height. The constructor should verify that all the dimensions are greater than 0. before assigning the values to the private data members. If a side is not greater than zero, set the value to -1. The class also should include two value-returning methods. One value-returning method should calculate the area of a triangle, and the other should calculate the perimeter of a triangle. If either side is -1, these functions return a -1. The formula for calculating the area of a triangle is 1/2 * b*h, where b is the base and h is the height. The formula for calculating the perimeter of a triangle is b+h+sqrt (b*b+h*h). Be sure to include a default constructor that initializes the variables of the base, height to -1. To test…
- Implement the following using JAVA: a.Design a class named Person and its two subclasses named Student andEmployee. b.Make Faculty and Staff subclasses of Employee. Please note that,● A person has a name, address, phone number, and email address. A student has aclass status (freshman,sophomore, junior, or senior). You can define the status as aconstant.● An employee has office & salary.● A faculty member has office hours and a rank.● A staff member has a title. c. Draw a UML diagram of the system.Question 14 papa.Write a Java class “ShoppingCart” and a Java tester class “ShoppingCartTestDrive” to implement the OOP class design: “ShoppingCart”. - Apply “Encapsulation” concept in your classes- Implement three methods addToCart(), removeFromCart(),checkOut() and print demo results to the screen Full explain this question and text typing work only We should answer our question within 2 hours takes more time then we will reduce Rating Dont ignore this lineJava ProgramFollowing the example of the Circle class in Section 9.2, design a class named Rectangle to represent a rectangle. The class contains:- Two double data fields named width and height that specify the width and height of the rectangle. Thedefault values are 1 for both width and height.- A no-arg constructor that creates a default rectangle.- A constructor that creates a rectangle with the specified width and height.- A method named getArea() that returns the area of this rectangle.- A method named getPerimeter() that returns the perimeter Draw the UML diagram for the class then implement the class. Write a test program that creates two Rectangle objects—one with width 4 and height 40, and the other with width 3.5 and height 35.9. Display the width, height, area, and perimeter of each rectangle in this order.