52- We have a class named Students which only has double gpa as its private member. You don't need to write the class. Write a driver for the class Students and create array of 100 students. We assume each student has a gpa, you don't need to assign any value. ASsume that we only have getGpa() member function in this class which returns gpa. Display the gpa of 100 students.
Q: Describe the requirement for a continuous information security maintenance programme.
A: Intro We store and access information on various devices like computers, mobiles, records, etc.…
Q: What is the phrase used to describe all input and output devices in a computer system?
A: Introduction: Hardware refers to all physical components or sections of a computer.
Q: What is a stable database state, and how is it achieved? The DBMS gives no guarantee that the…
A: Introduction: Let us define the term "consistent database state":
Q: 2. Write a C++ program to read an array of n integer elements. Create another array with n integer…
A: Solution: C++ Program: #include <iostream> using namespace std; // This find() function…
Q: Provide a normalized version of the Index metadata relation and explain why utizing it will result…
A: Metadata: There are a number of methods to talk about metadata. In other words, data that tells us…
Q: To launch a successful distributed denial-of-service attack, the malicious hacker must first…
A: Intro A successful distributed denial-of-service attack requires the malicious hacker to download…
Q: What are the many types of memory storage levels in computers?
A: Generally, memory can be divided into primary and secondary memory; in addition, there are many…
Q: Write a program that prompts the user to enter two integer numbers A and B. The program must check…
A: Using if else and for loops we can solve this problem.
Q: Give particular examples to back up your claim about Internet searching?
A: Introduction: A search engine is a software program machine this is designed to perform internet…
Q: When a packet goes from one network to another, what happens to its MAC address? When a packet goes…
A: Introduction: A network consists of two or more computers that is linked in order to share resources…
Q: Is hacktivism distinct from other forms of cybercrime in terms of cybercrime and terrorism?
A: Answer: Hacktivism is the peaceful application of unlawful or legally unclear digital tools for…
Q: What are some of the standard organization involved in Computer Networking? Assume if you, as a…
A: The standard organization involved in Computer Networking are given below:
Q: A binary tree is a rooted tree in which each node has at most two children. Show that in any binary…
A: The question is: A binary tree is a rooted tree in which each node has at most two children. Show…
Q: Which network device belongs to the OSI model's L-2 layer?
A: Introduction: Layer 2 of The OSI Model: Data Link Layer provides the functional and procedural tools…
Q: What are some of the methods an attacker might employ to conceal tools on a hacked computer?
A: Introduction: Insider treachery: The most disheartening aspect of malicious insider assaults is…
Q: Due to the increasing power of computers, this is possible. How can we establish that computers have…
A: Computers have shown to be dependable since their introduction, but they have become omnipresent; we…
Q: A single LAN connects 200 workstations and four servers through switches. You're noticing too many…
A: A local area network (LAN) is a collection of computers and peripheral devices that share a standard…
Q: Explain why authentication remains a problem in our information-based society.
A: Introduction- Authentication is a process in which a legitimate user is separated from an…
Q: A system security engineer is testing several approaches for storing user passwords in an…
A: Intro A system security engineer is testing several approaches for storing user passwords in an…
Q: the benefits and drawbacks of international organisations, as well as the type(s) of information…
A: Introduction: There are three major types of knowledge systems, each serving a completely different…
Q: How should physical and virtual networking devices be deployed and managed throughout a network…
A: Given: What is the best strategy for installing and managing both physical and virtual networking…
Q: What does it mean to have a ForkJoinTask? What are the similarities between RecursiveAction and…
A: Intro Unique base class for assignments that run inside a ForkJoinPool. A ForkJoinTask is a…
Q: Create a one-of-a-kind shopping website using html and CSS.
A: Introduction: HTML is an abbreviation for Hyper Text Markup Language.
Q: Is there a noticeable difference in scientific and technical advancements across the three…
A: Included among the Ancient scientific and technological advancements are: Matchbox Papermaking…
Q: Describe the CSMA protocol.
A: Answer: CSMA stands for Carrier Sense Multiple Access. With the help of this CSMA protocol, stations…
Q: Consider sliding window protocol for 80Mbps point - to - point link with propagation delay of 2 sec.…
A: Given, Bandwidth = 80 Mbps Frame Size = 4 KB = 4096 * 8 bits = 32768 bits Propagation delay = tp = 2…
Q: Describe the benefits of employing polymorphism in Java. Are there any drawbacks? If there are any,…
A: Introduction: Polymorphism in Java refers to the phenomenon of an object gaining the capacity to act…
Q: Explain the dashboard concept in RStudio
A: Dashboards are the Central concept in collecting and showing the information in one place and we can…
Q: Discuss the importance of information security governance in achieving a secure information system.
A: Intro INFORMATION SECURITY GOVERNANCE: Information Security Governance is basically the set of the…
Q: Oa) Assume an unlimited supply of coins worth 5 cents and 9 cents. Prove that some combination of…
A: Algorithm to find out number of coins used to calculate the value equal to 35 from 5 and 9 cents…
Q: Computer science bhow search engines and online directories are used in e-commerce.
A: Introduction: Computer science how search engines and online directories are used in e-commerce.
Q: What are the roles of design patterns in software engineering, and how may they be utilised…
A: Introduction: Design Patterns: Design patterns describe the best practices used by experienced…
Q: Examine how inheritance encourages software reuse, saves time during programme development, and…
A: Introduction: Inheritance enables developers to build subclasses that reuse code that has previously…
Q: How can you make your programmes more temporally local?
A: Intro What is Temporal Locality? Temporal locality is the notion of referencing a resource at a…
Q: Preparing feasibility studies, which include technical, economic, legal, operational, and schedule…
A: Introduction: SDLC is a systematic approach for developing software packages that ensures the…
Q: Discuss the source to destination data transfer in virtual circuit network and Differentiate packet…
A: The answer is given in the below step
Q: Compute the storage space requirement of double num[256] (in bytes only)
A: The answer for the given question is as follows.
Q: Use the expression below to construct a parse tree. a = b - c + d / e - (f + 7 + g)
A: Given expression is a = b - c + d / e - (f + 7 + g) This expression can split into three parts a,…
Q: What are the distinctions between IT security implementations in a traditional on-premises data…
A: Introduction: Systems in on-premise data centres are linked via a local network.
Q: Computer science why electronic transactions including credit card numbers are risky.
A: Introduction: Missed payments may have a major impact on your credit because your payment history is…
Q: What causes a hierarchical file system?
A: Introduction: Hierarchical File System (HFS) is a proprietary file system developed by Apple Inc.…
Q: Write a Java program that would resemble banking transactions of deposits, withdrawals, bank to bank…
A: SCREENSHOT OF THE JAVA PROGRAM: Bank Account Class SS arrow_forward DailyTransactions…
Q: Describe three system development strategies in system analytics.
A: System Analysis It is a process of collecting and interpreting facts, diagnosing problems, and…
Q: What is the purpose of Artificial Intelligence, and what is its domain?
A: Introduction: Artificial intelligence is a technology that makes systems and software work smarter…
Q: Explain the link between information security policy and a security plan.
A: Intro Information security policy is the basic level. Based on the information security policy, the…
Q: EXPLAIN the steps involved in saving a variable to memory.
A: The variable used in a program are stored in the memory called Random Access Memory (RAM). RAM takes…
Q: How would you describe the aim of a system security policy as an information systems security…
A: Intro A brief, high-level statement defining what is and is not permitted during the operation of…
Q: true information o
A: False or deceiving material taking on the appearance of true news is alluded to as fake news.…
Q: s specified in page
A: Given as, Inherit LinkedStack.java, implement StackInterface2.java Add String toString()method as…
Q: Answer 1) How many times this for-loop will repeat? for (int System.out.println ("Hello"); a. zero…
A: public class Main{ public static void main(String[] args) { for(int i=10;i>1;i--)…
OOPs
In today's technology-driven world, computer programming skills are in high demand. The object-oriented programming (OOP) approach is very much useful while designing and maintaining software programs. Object-oriented programming (OOP) is a basic programming paradigm that almost every developer has used at some stage in their career.
Constructor
The easiest way to think of a constructor in object-oriented programming (OOP) languages is:
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 3 images
- User-defined Class:You will design and implement your own data class. The class will store data that has been read asuser input from the keyboard (see Getting Input below), and provide necessary operations. As thedata stored relates to monetary change, the class should be named Change. The class requires atleast 2 instance variables for the name of a person and the coin change amount to be given to thatperson. You may also wish to use 4 instance variables to represent amounts for each of the 4 coindenominations (see Client Class below). There should be no need for more than these instancevariables. However, if you wish to use more instance variables, you must provide legitimatejustification for their usage in the internal and external documentation.Your class will need to have at least a default constructor, and a constructor with two parameters:one parameter being a name and the other a coin amount. Your class should also provide appropriateget and set methods for client usage. Other…: A designer in 3D graphics company wants to design a matrix as a two-dimensional array. The size of 2D array could be the last two digit of arid number. Initially he creates a class matrix that provides the member function to check that no array index is out of bounds. Make the member data in the matrix class a 10-by-10 array. A constructor should allow the programmer to specify the actual dimensions of the matrix (provided they’re less than 10 by 10). The member functions that access data in the matrix will now need two index numbers: one for each dimension of the array. Here’s what a fragment of a main() program that operates on such a class might look like: If my Arid Number is 20-Arid-254 then: // in case of zero consider next digit matrix m1(5, 4); // define a matrix object int temp = 12345; // define an int value m1.put(3, 4, temp); // insert value of temp into matrix at 3,4 temp = m1.get(3, 4); // obtain value from matrix at 3,4# Coding - Simulate a robot Write a program that simulates the movements of a robot. The robot can have three possible movements: turn right turn left advance The robot is placed on a hypothetical infinite grid, facing a particular direction (north, east, south, or west) at a set of `{x,y}` coordinates,e.g., `{3,8}`, with coordinates increasing to the north and east. Create a Class `Robot` that contains a method `execute` which given a number of instructions will calculate the robot's new position, and the the direction in which it is pointing. ## Example The letter-string "RAALAL" means: Turn right Advance twice Turn left Advance once Turn left yet again Say a robot starts at `{7, 3}` facing north. Running this stream of instructions should leave it at `{9, 4}` facing west. ## Inputs and Outputs The argument of the `execute` is `string` in the format `X Y BEARING COMMANDS`. The method should return a one-liner `string` in the format `X Y BEARING`. In the…
- Create a class Student that contains three members: roll no, name and mark, and threefunctions. Write a first inputStudent() function to get data of student class. Write a secondgetMark() function that returns a student’s mark. Write a third display() function thatdisplays a student’s data. In a main() function, you need to declare 40 students and get dataof all students by using inputStudent() function. And also use a pointer array to keep allstudents by mark greater than 50 and display the searching data of each student in thatpointer array (Use the access operator -> to access a pointer points to member functions ofthe Student class)In a course, a teacher gives the following tests and assignments:• A lab activity that is observed by the teacher and assigned a numeric score.• A pass/fail exam that has 10 questions. The minimum passing score is 70.• An essay that is assigned a numeric score.• A final exam that has 50 questionsWrite a class named CourseGrades . The class should have a member named gradesthat is an array of GradedActivity pointers. The grades array should have four ele-ments, one for each of the assignments previously described. The class should have thefollowing member functions:setLab : This function should accept the address of a GradedActivityobject as its argument. This object should already hold the stu-dent’s score for the lab activity. Element 0 of the grades arrayshould reference this object.setPassFailExam : This function should accept the address of a PassFailExamobject as its argument. This object should already hold the stu-dent’s score for the pass/fail exam. Element 1 of the grades…Please submit the pseudocode of your program for your project below. Need a class which will contain: Student Name Student Id Student Grades (an array of 3 grades) A constructor that clears the student data (use -1 for unset grades) Get functions for items a, b, and c, average, and letter grade Set functions for items a, n, and c Note that the get and set functions for Student grades need an argument for the grade index. Need another class which will contain: An Array of Students (1 above) A count of number of students in use You need to create a menu interface that allows you to: Add new students Enter test grades Display all the students with their names, ids, test grades, average, and letter grade Exit the program Add comments and use proper indentation. Nice Features: I would like that system to accept a student with no grades, then later add one or more grades, and when all grades are entered, calculate the final average or grade. I would like the system to display the…
- Read the Note below before solving the question also add Screenshot of output and answer/Code should be in Text form Write a class Array that contains an array of integers as data member. The class contains the following member functions: A constructor that initializes the array elements to -1 Input function to input the values in the array. Show function to display the values of the array. Overload == operator to compare the values of two objects. The overloaded function returns 1 if all values of both objects are same and returns 0 otherwise. Note: Use concepts of CLASSES,OPERATER OVERLOADING(Use OOP)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…Question-1: The abstract Animal class has four concrete subclasses named mammals, amphibians, Reptiles, and Birds. Each of these four classes has a different number of legs and weights in kilograms. The weights of each category are 100, 40, 200, 25 KGs respectively. Create six different objects from these four categories, and store them in a one-dimension array. Display the entries in the array and their total weights and legcounts. Question-2 is assigned to even registration numbers Question-2: Write a java program for the course registration using a string array. The number of courses available is B. Name the courses according to your conveyance, initialize a list with the Register numbers of 20 students. Assign the registration numbers randomly from this list to eight courses. The program has to ensure that no student is allowed to register for more than five courses, If a student is registered for more than five-course, throw a textual error message and print the same with the…
- Create an Organization class. Organization has 10 Employees (Hint: You will need an array of pointers to Employee class) Organization can calculate the total amount to be paid to all employees Organization can print the details(name & salary) of all employees note: write code in main,header and function.cpp fileCreate a class Distance with feet and inches as a private dada members. Feet has int type and inches has float type. Create getdist & showdist functions which take values from user and then display these values respectively. Create another class Sign with sign as a private data member. Sign has a char data type. Class sign is inherited with distance class. Create getdist and showdist function to get values from user and then display all values. Create default & arrguments constructor also. Add a static data member named objCount, initialize it to 0 using scope resolution operator outside the class, add a function in the class to print the value of objCount.Create a class called employee that contains a name( an array of char) and an employee number (type long). Include a member function tion called getdata() to get data from the user and another function called putdata() to displny the date. You must handle embedded spaces in the name of employee Write a main program to exercise this class. It should create an array of type employee, and then invite the user to input data for up to 10 employees. Finally it should print out the data for all the employees