2- Create a class named Test. The class must contain the main method. In the main method, you should create three objects from class Employee and store them in an array of type Employee (you must prompt the user to enter name and salary for each object). Then, you should print the name and salary of each object (using either the getters or the toStrong() method).
Q: ere a difference between a system subsystem and a logical division?
A: There a difference between a system subsystem and a logical division?
Q: Consider a computer with the following characteristics: total of 4 Mbyte of main memory; word size o...
A: 3 B B C A E : 0011 1011 1011 1100 1010 1110 main memory: 4MB = 222 Bytes word size = 1 Byte block si...
Q: When was the first video camera invented, and how did it wor
A: The first video camera was invented in 1918.
Q: Need help with this project in PYTHON. Thank you! Project to sort through data: - Make colle...
A: def bubble(self): def bubble_sort ( array ) : swap_test = False for i in range (...
Q: What do you see as the main planning and control tasks of the Wizard system?
A: The Wizard system: Whether we think about just the spell caster program, the major objective of the ...
Q: Polnt out the wrong statement? Select one: O Data visualization Is the graphic representation of dat...
A: What is bar chart? A bar graph is a chart that graphically represents the comparison between categor...
Q: Is there a known inventor of the microprocessor?
A: Answer is Yes
Q: The production rules for the derivation tree are as follows −E=E+E E=E*E E=a|b|c Here, let the inpu...
A: The production rules for the derivation tree are as follows −E=E+E E=E*E E=a|b|c Here, let the inpu...
Q: QUESTION 1 Give at least FIVE (5) activities that are carried out in the Implementation Phase of the...
A: A system development life cycle or SDLC is a process that defines different stages that are necessa...
Q: When it comes to infrastructure and architecture, what is the difference
A: InfrastructureInformation technology infrastructure is a broad term that refers to a collection of i...
Q: What is the purpose of spanning tree protocol? How it achieves this purpose? What are the fields tha...
A:
Q: Write algorithm and draw a flow chart to develop a simple calculator that perform addition, subtract...
A: Logic:- read two values and operator Use if condition to match operator. Based on input operator ...
Q: Question:: Case Exercises Amy walked into her office cubicle and sat down. The entire episode with t...
A:
Q: In what ways do SD cards vary from one other?
A:
Q: Surround the call to processNumbers with a try-catch statement. The catch block should assign proces...
A: The fixed javascript source code has been provided with an explanation in the next step.
Q: uler's Thm to find , 46
A: Lets see the solution
Q: What is disk storage, and how does it work?
A: Introduction: Computer Devices: Various devices in computer science may be used to enter or output ...
Q: Write a program in cpp language to reverse the bits of a user entered number and print the decimal f...
A: Ans:> Code: #include <iostream> using namespace std; unsigned int reverseBits(unsigned int...
Q: The term used to describe machines that have capability of dealing with a variety of different prob...
A: The term used to describe machines that have capability of dealing with a variety of different prob...
Q: Provide an explanation for excessive redemption requirements.
A: explanation for excessive redemption requirement
Q: A college portfolio can help you in your career search (and beyond). What should your portfolio cont...
A: A portfolio is a collection of achievements and work in a talent or passion that you have pursued. W...
Q: relationship of computer and science?
A: The term, “Science” defines all the facts and figures for every existing concept. This domain is hug...
Q: Create a function named mySum using R scripts to accept a matrix. The function will find the sum of ...
A: Algorithm: Start Implement a function mySum() that takes a matrix 'x' as argument Inside the metho...
Q: Payment Details Amount 4200 O Cash O Credit Card Payment Type Cash & Credit Card Gift Check 500 Cash...
A: Thenswer is given below:-
Q: 8.2 (The Stock class) Following the example of the Circle class in Section 8.2, design a class named...
A: The given is a java program which reads certain values from user and based on those values the perce...
Q: There are blank 3 digit counting numbers that are made using only the odd digits 1,3,5,7,9 ?
A:
Q: translate the following ER diagram into the appropriate relational schema(s):
A: ER diagram: ER stands for Entity Relationship. It looks like a flowchart. It is used to illustrates ...
Q: Exercise 7 Create a Python program that asks the user to enter the parameter Atand an upper limit of...
A: Create a Python program that asks the user to enter the parameter lambdat and upper limit of the sto...
Q: Vrite a C+ program that prompts the user to enter the earthquake magnitude and utputs its class. We ...
A: so, here we have to write a c++ Program that prompts the user to enter the earthquake magnitude and ...
Q: It includes all programs that analyze data, update files, and printout information and other process...
A: let us see the answers:- "Since you have asked multiple questions I am solving the first two for you...
Q: What happens to the CPU when a software makes a request for input/output (/0)? What mechanism is use...
A: Answer : Once the input/output request is made, the software sends a signal to the CPU to be proces...
Q: Is there a difference between a system subsystem and a logical division?
A: Introduction: A first channel subsystem image with a first channel subsystem image identifier that ...
Q: (x2 + y2)+ Cx-y) (x+y) W=
A: logic:- use Math.Pow() function to find nth root of a number. Syntax:- Math.Pow(num1,root)
Q: Demonstrate the output of the given program below. If there is a bug in the program, write PROGRAM E...
A:
Q: Let G be a formal grammar with the following production rules: Sigma --> 1A, A --> OB, B --> OB, B--...
A: Right Linear Regular Grammar because the tree is increasing right side. 1 A 0 B ...
Q: In Python Program: Create a small Family database with one table to include data about members of y...
A: DATABASE - DROP TABLE IF EXISTS `members`;CREATE TABLE `members` (`memberId` bigint(20) NOT NULL AUT...
Q: True or False
A: Answer: False Algorithms are the set of rules on which particular statements can be conveyed in a ...
Q: Which of the following identifier/variable name is considered as invalid? Select one: a. none of th...
A: let us see the answer:-
Q: CONVERT FOLLOWING C CODE INTO ARM ASSEMBLY CODE #include int main() { int i, space, rows = 8, star...
A: Assembly language code main: push rbp mov rbp, rsp sub rsp, 16 ...
Q: Find the correct asymptotic complexity of an algorithm with runtime T(n) where T(x) = O(n) + T(3 * ...
A: According to the information given:- We have to find the correct asymptotic complexity of an algorit...
Q: s there a difference between a system subsystem and a logical division?
A: Subsystem A component or element part of a larger system is referred to as a "subsystem." A disc su...
Q: What is the Single Audit Act, and how does it work? What impact has this statute had on the auditing...
A: The Single Audit Act mandates that any organisation receiving grants or funding produce its financia...
Q: How long ago was the term "computer literate" coined?
A: Andrew R. Molnar invented the term "Computer Literacy" in 1978.
Q: What is dynamic memory, and how does it differ from ordinary memory?
A: Introduction Ordinary Memory: Memory is a term used in computer science to describe storing data on ...
Q: Which of the following codes can be used to access "diamonds" data set which is found in the "ggplot...
A: A. data("diamonds",package="ggplot2")
Q: Is it possible to identify the inventor of Nintendo's game system?
A: Nintendo was founded as Yamauchi Nintendo by Fusajiro Yamauchi on September 23, 1889. Based in Kyoto...
Q: Why is Access preferable than Excel when it comes to tracking this data?'
A: Microsoft Access and Microsoft Excel have numerous likenesses, which can make it challenging to conc...
Q: Write a C++ program that prompts the user to enter a value in Meter and outputs its equivalent in Fo...
A: As given, I need to write a C++ program that converts Meter into Foot. I have provided the complete ...
Q: What information does stateful firewall maintain?
A: A stateful firewall is one that maintains track of all the traffic it encounters. Stateful firewalls...
Q: Write a python program to capitalize the first and last characters of each word in a user entered st...
A: PROGRAM EXPLANATION: Start. Define a function capitalize and this function will take a string as an...
Step by step
Solved in 3 steps with 2 images
- JavaDriver Program Write a driver program that contains a main method and two other methods. Create an Array of Objects In the main method, create an array of Food that holds at least two foods and at least two vegetables. You can decide what data to use. Method: Print Write a method that prints the text representation of the foods in the array in reverse order (meaning from the end of the array to the beginning). Invoke this method from main. Method: Highest Sugar Food Write a method that takes an array of Food objects and finds the Food that has the most sugar. Note that the method is finding the Food, not the grams of sugar. Hint: in looping to find the food, keep track of both the current highest index and value. Invoke this method from main.. Create a testEmployees class. Do the following: Declare an array called arrEmp of 10 Employee type objects in the main method. Write a static method called fillArray() that receives the arrEmp array. Use a while loop to enter the information (type of contract) of a number of new employees. Quit input by entering the character X instead of the type of contract. For each employee create an object and save the object in the array. Return the array to the main method. Call the static fillArray() method from the main method. Write a static method called displayArray() to receive the array and display a numbered list of the information of the employees using a for-loop and the toString() method. Call the static displayArray() method from the main method. Write a static method called updateEmpCommission() to receive the array and update the commission of some of the employees as follows: Use a loop to update a number of employees' commission. Use a sentinel value -1 to…Create a class named "Hotel" (3 marks) - The class must have 4 attributes. (Choose any 4 attributes you want) - This class must have two constructors, Getter Methods, and Setter Methods. - toString() method should return the name of the hotel. In the main class that has the main method: - In the main method, Create 4 objects or more from the class Hotel and store them in a normal array. (3 mark) - Create an external method that takes the array as an argument. It will add all the elements of the normal array into an ArrayList. Then, call the method to test it and print all elements data from the ArrayList
- Introduction In this project, you will complete a C++ class by writing a copy constructor, destructor, and assignment operator. Furthermore, you will write a tester class and a test program and use Valgrind to check that your program is free of memory leaks. Finally, you will submit your project files on GL. If you have submitted programs on GL using shared directories (instead of the submit command), then the submission steps should be familiar. In this project we develop an application which holds the information about a digital art piece. There are two classes in this project. • The Random class generates data. The implementation of this class is provided. It generates random int numbers for colors. To create an object of this class we need to specify min and max values for the constructor. The colors fall between 30 and 37 inclusively. The Art class generates random colors and stores the color values. You implement the Art class. An object of the Art class is a digital masterpiece.…Case Problem 1 - In previous chapters, you developed classes that work with catering event information for Carly’s Catering. Now modify the Event and EventDemo classes as follows: Modify the Event class to include an integer field that holds an event type. Add a final String array that holds names of the types of events that Carly’s caters—wedding, baptism, birthday, corporate, and other. Include get and set methods for the integer event type field. If the argument passed to the method that sets the event type is larger than the size of the array of String event types, then set the integer to the element number occupied by other. Include a get method that returns an event’s String event type based on the numeric event type. To keep the EventDemo class simple, remove all the statements that compare event sizes and that display the invitation Strings. Modify the EventDemo class so that instead of creating three single Event objects, it uses an array of three Event objects. Get data for…Create a BowlingTeam class The class has 2 fields: a field for the team name and an array that holds the team members’ names. Create get and set methods for the teamName field. Add a setMember method that sets a team member’s name. The method requires a position and a name, and it uses the position as a subscript to the members array. Add a getMember method that returns a team member’s name. The method requires a value used as a subscript that determines which member’s name to return. Create a BowlingTeamDemo class. In the main method include the following: Declare 2 variables: name and a constant NUM_TEAMS that holds 4 Bowling Team objects. Declare and instantiate an array teams of BowlingTeam objects. Using nested for loops, prompt the user to enter the 4 team names and enter the team members’ names. Using another nested for loop, output each team’s name and their team members’. Output should look like: Members of team The Lucky Strikes Carlos Diego Rose Lynn Members of team I…
- Please help with the following: Write a Student class which keeps track of grades and generates a final mark. You should store:3 quiz scores, an array of int between 0 and 20; 1 midterm score, an int between 0 and 50;1 final score, an int between 0 and 100;the overallScore (double) and letter grade (char). also create the appropriate accessor and mutator methods. Student should also include the methods: public void calculateOverallScore() { ... } Quizzes are worth 15% of the grade, Midterm is worth 35% of the grade, the Final is worth 50% of the grade. public void finalLetterGrade() { ... } 100 ~ 90: A 90 ~ 80: B 70 ~ 80: C 60 ~ 70: D 0 ~ 60: FYou are given a Restaurant class below, which represents restaurant information scraped from online reviews website. public class Restaurant { private String name; //name of the restaurant private String address; //restaurant's address private int rating; //average rating of all reviews (1-5) ... // constructors, getters, setters, toString() are already defined Assume 100 Restaurant objects are stored inside the array. Using the array: Calculate and print the average rating of all restaurants.: A point in the x-y plane is represented by its x-coordinate and y-coordinate. Design a class, pointType, that can store and process a point in the x-y plane. You should then perform operations on the point, such as showing the point, setting the coordinates of the point, printing the coordinates of the point, returning the x-coordinate, and returning the y-coordinate. Also, write a test program to test the various operations on the point.
- Design an application that declares an array of 10 StockTransactionobjects. Prompt the user for data for each object, and then display all the values. Design an application that declares an array of 10 StockTransactionobjects. Prompt the user for data for each object, and then pass the array to a method that determines and displays the two stocks with the highest and lowest price per share.Using java Hamburger ClassWrite a Hamburger class with the following six attributes:• bun - the type of bun the burger will be on• patties - the number of patties on the burger• cheese - whether or not the burger will have cheese• price - the price of the burger• toppings - an array of five toppings; it will need to start empty Write getters/setters for all attributesexcept the toppings array.Your constructor should create a single on white with no cheese and no toppings with a price of $2.99.Your class should include the following methods in this order, please: addCheese - this method has noparameters that adds cheese to the burger and increases the price by 75 centssuperSizeIt - this method has no parameters and adds a patty to the burger and increases the price by 1.50addToppings - this method would present the user with at least five toppings (your choice) stored in an array of Stringobjects. If the user indicates the wants the item, store the String in the toppings array. There…For each object class include the following: displayPromotion () method which can be used to display the following messages:Video Game: Only certain of video game will be getting 10% discount.Sport Game: Booking court on week days will be getting 15% discount.Overridden toString() method that returns a string containing all the data fields’values.(photo 111) Write a driver program that uses a polymorphic array to store information for various video games and sport games. Use an array initializer to initialize the array with values. Then, display a list with all the game information. A sample output is provided below:(photo 112)