2: Write C++ program to create a class called car, that display three options (1- add car, 2-display car, 3- exit), create function to add three types of cars, function to display cars information.
Q: 2. Do some research on deterministic and non-deterministic finite automata and make a comparative…
A: Deterministic Finite automata is a five-tuple automata. M=(Q, Σ, δ,q0,F) Where Q : Finite set…
Q: Give two example computer applications for which connection-oriented service is appropriate. Now…
A: Connectionless service refers to fact that a terminal or node can send data packets to its…
Q: What hardware features are needed for efficient capability Can these be used for memory protection?…
A: Memory protection In Memory protection, we need to shield the working framework from client cycles…
Q: In the context of a computer with a restricted instruction set, what does "reduced" mean?
A: Definition: When compared to complicated instruction set computers, the reduced instruction set…
Q: Show that the language K = {(M) | M is a TM and does not accept (M)} is not Turing-recognizable.…
A:
Q: A chained hash table has an array size of 512; what is the maximum number of entries that can be…
A: Introduction: Hashing is one of the technology to transfer any value to different values in the key,…
Q: Hospitals and health care organizations are near the top of the list for cyber-attacks and…
A: Hackers have turned hospitals and healthcare institutions into a top target. Here we'll discuss some…
Q: What are some of the possible services that a link-layer protocol can offer to the network layer?…
A: In this question we have to discuss what are some of the possible service that a link layer protocol…
Q: In what circumstances is the system-call sequence fork() exec() most appropriate? When is vfork()…
A: The system-calls sequence fork() exec() more appropriate.
Q: Please explain what dynamic scoping is, when it's used, and how it might be optimized for improved…
A: Dynamic Scoping A global identifier, which is uncommon in current languages, corresponds to the…
Q: programme in C called pgmReduce which takes 3 arguments: an input file (either ASCII or binary) an…
A: It is defined as a powerful general-purpose programming language. It can be used to develop software…
Q: Which of the following allows a regular user to temporarily run a command as root? doas su euid…
A: Solution: 1.su is correct answer Explanation:su allow a regular user to temporarily run a command as…
Q: Imagine that three loop iterations on a parallel computer are the same as making a cake. In the…
A: The loop computation will be dependent on the actions taken during cake production: The first oven…
Q: Derive an election algorithm for bidirectional rings that is more efficient than the one presented…
A:
Q: what are 5 risks and 5 benefits to having a health database open for public use?
A: Introduction: A database, in its most basic form, is a grouping of material that has been…
Q: nged the exam(s) in 2013, CCNA students had to study 3 different routing protocols whic
A: Introduction: Below describe the Cisco changed the exam(s) in 2013, CCNA students had to study 3…
Q: What distinguishes embedded computers from general-use computers?
A: Differences between embedded and general-purpose systems General-purpose systems include personal…
Q: B' C' 6 5 A' 4 2 3 B 1. If A would like to send a frame to A, which machine(s) is going to see the…
A: Note: Due to company policies I am compelled to solve only one question and that is the first…
Q: In light of the availability of on-chip L3 caches, please discuss the merits and cons of using…
A: Shared caches :Pros - Limited resources have better utilization and cores handle sharing of data and…
Q: The access-control matrix could be used to determine whether a process can switch from, say, domain…
A:
Q: Think about the binary search tree, the hash table, and the linear array. When looking at overall…
A: Please find the answer below :
Q: What would happen if you changed the default runlevel/target of your system to reboot.target or…
A: First thing first, What are run-levels? A runlevel is one of the operating systems that a…
Q: True or untrue, and provide a short explanation for your answer: When both the transmitter and…
A: Given: It is a selective repetition technique that is used in the PSI model's data connection layer…
Q: Java - When using an array to do a binary search, what additional requirement is placed on the…
A: Binary Search: It's a searching algorithm for finding an element position in the given list of…
Q: Discuss ways in which the priority inversion problem could be ad dressed in a realtime system. Also…
A: Introduction: Priority Inversion: It is a concept in which a lower\lesser priority process preempts…
Q: You have the option of establishing PPP authentication using either PAP or CHAP. Which choice is the…
A: reliable protocol There are two authentication protocols: Password Authentication Protocol (PAP) and…
Q: Which Linux version served as the basis for Ubuntu?
A: Basis for Ubuntu: Ubuntu Base aims to develop an appropriate minimal environment for use in Board…
Q: Your company is building a computer network, and you are asked to develop a scheme for dealing with…
A: Introduction: Deadlock: Deadlock is a situation where a set of processes are blocked because each…
Q: The logical clock timestamp scheme presented in this chapter provides the following guarantee: If…
A: so first we will talk about logical time stamps so the main concept of logical clock is happend…
Q: Can you tell me the name of the SSH client file that is used to pre-configure a server's public key…
A: Basics: Secure Shell is like a cryptographic organization convention for dealing with organization…
Q: Typically, character devices transmit data faster than block devices. Is this a true or false…
A: Introduction: Character devices are those that are not buffered, whereas block devices are those…
Q: Contrasts between software engineering and web engineering
A: Following are some distinctions between web engineering and software engineering: Web Development:…
Q: A program evaluates binary arithmetic expressions that are read from an input file. All of the…
A:
Q: a. Find the subnet mask b. How many valid hosts are created?
A: The answer is
Q: What are the advantages of using dedicated hardware devices for routers and gateways? What are the…
A:
Q: Is it possible to use a Mechanical Turk to deceive someone today? What separates a modern Turk from…
A: No, it is not feasible to deceive someone using a technology such as mechanical Turk. Mechanical…
Q: def find (target, items): 1-len (items) 1=0 while i<1: if target==items [i]: return i 1+=1 return -1…
A: the correct python program is an given below :
Q: Discuss ways in which the priority inversion problem could be ad dressed in a realtime system. Also…
A: Please find the answer below :
Q: What happens to availability when the MTTR (time to failure) approaches zero? Is it possible to…
A: Availability approaching zero MTTR Mean Time To Repair (MTTR) is a fundamental metric for assessing…
Q: __________ is the command that ignores the carriage return. Group of answer choices…
A: The cin.ignore() function is used to ignore or delete one or more characters from the input buffer.…
Q: The solution of system of equation 4x-y-z=0.5 -x+4y-w=1.3 -x+4z-w=1 -y-z+4w=1.8 using jcobi's method…
A: The above question is solved in step 2 :-
Q: It's important to compare and contrast the concepts of virtual memory and virtual machines. How…
A: Comparison based on definitions The virtual memory / virtual memory seeks to demonstrate the full…
Q: Imagine that three loop iterations on a parallel computer are the same as making a cake. In the…
A: The cake-baking process will serve as the basis for the loop's computation. First, the oven will be…
Q: Solution of the dining philosophers problem using a monitor monitor dp program.
A: Solution of the dining philosophers problem using a monitor monitor dp program is:-
Q: In what circumstances is the system-call sequence fork() exec() most appropriate? When is vfork()…
A:
Q: Is there anything else that can be altered to prevent a change in page dimensions (and hence a…
A: Introduction: The function in question is a probability weighting function, and it represents the…
Q: Which Linux version served as the basis for Ubuntu?
A: Basis for Ubuntu: Ubuntu comes from Nguni and Bantu. The Zulu term means "human" Other languages…
Q: You should know how parallel and serial programming vary from one another.
A: All-Subset Regression It is also known as all models feasible or all regressions possible. Again,…
Q: knowledge on two subjects using a Boolean operator. Kevin must use which Boolean operator to get the…
A: The boolean operators are the simple AND , OR, NOT and AND NOT. Which is use to combine and exclude…
Q: Why are watchdog timers crucial for so many embedded systems?
A: Watchdog Timer:- A device which is used to assert a reset output in case it does not receive a…
(7(.
Step by step
Solved in 4 steps with 5 images
- C++ Create a class Student that contains three members: roll no, name and mark, and three functions. Write a first inputStudent() function to get data of student class. Write a second getMark() function that returns a student’s mark. Write a third display() function that displays a student’s data. In a main() function, you need to declare 40 students and get data of all students by using inputStudent() function. And also use a pointer array to keep all students by mark greater than 50 and display the searching data of each student in that pointer array (Use the access operator -> to access a pointer points to member functions of the Student class).Create class Employee that has the following pieces of information called first name, last name, day off and salary. Write a C++ program to implement the following functions for three employees: 1- Constructor to initialize data members. 2- Set and get functions for data members 3- Operate decrement operator to decrement the salary when the employee has a day off. 4- Display the results using friend function called Display().Question 5Write a C++ program, you will create a class called Books to hold the information about the books in a library. The information required for each book is as follows Book TitleAuthor namePublisherPublish yearSubjectBook ID (identical 5 digits’ number) a. Implement the following getBookInfo () member function that receives a pointer to a book and fills it up with user data. User input validation is necessary. The user should be properly prompted for each field. void getBookInfo (Books *b) b. Implement the following printBookInfo () member function. void printBookInfo (Books *b) Your function should print the book in the following format: Book Title : Object Oriented Programming Using C++Author : Chris M. SzalwinskiPublisher : AmazonYear : 2016Subject : Computer ScienceBook Id : 00034 Note: You need to add required constructors/destructors, member functions or data members/variables in your program to complete its execution.
- programming language :c++ make a program in c++ to store hiring date and date of birth for Managers and Employees. You need to create a Date class for this purpose. Create objects of Date class in Manager and Employee classes to store respective dates. You need to write print function in Manager and Employee classes as well to print all information of Managers and Employees. You need to perform composition to implement this task. Create objects of Manager and Employee classes in main function and call print function for both objects. Print Date class here. Print updated Manager class here. Print updated Employee class here. Print main function here.C++ please! Create a class called Employee that includes three data members: a firstname (type string), a last name (type string), and monthly salary (type int).The class will have a constructor that initializes the three data members.Include the set and get member functions for each data member. If the monthlysalary is not positive, the set function will set it to 0. Also include amember function that returns the yearly salary (i.e. twelve times the monthlysalary).Write a test program that prompts the user to enter the first and lastname of an employee as well as their monthly salary. The program will thenoutput the yearly salary of the employee, give them a 10 percent raise, andoutput the yearly salary again.C++ Write a function named “createPayStub” that accepts the number of hours(integer), and the hourly payrate (double). It will return the pointer to a newlycreated PayStub object. If the given hours or payrate is negative, it will returnnullptr. In addition, it also returns the total payout amount to the caller (in theoutput parameter).Please show how this function is called and returning the proper information.
- Write a c++ program Class student contains roll number, name and course as data members and Input_student and display_student as member functions. Create a class exam and publicly inherit it from student class. The derived class contains an array of marks and no_of_subjects as data members, and input_marks and display_result as member functions. Overload “Describe scenarios where passing function objects as arguments can be beneficial.Write a code for OOP based game in which a player (human) will play against computer, and the player to score 100 points first, will win the game. Follow these steps to complete your code. Create a class named game, with score as its private data • Define a function which will generate random numbers between 1 and 10 and store it to private data of the class and will add it to previous score • Another function will display the scores after each turn and if the score is 100 or more then declare the player (who scored 100 in less attempts) as a winner Create two objects in the main program named as player and computer • Player will press a specific key to play in his turn • The computer's turn will be executed after the player's turn • Keep on doing this until one of them scores 100 points To generate the random numbers the following two lines must be there srand (time (0)); // to make sure that different number is generated in each turn rand (); // it will generate random numbers You…
- PROGRAMMING LANGUAGE: C++ You need to store hiring date and date of birth for teachers, and for students store their admission date and date of birth. You need to create a Date class for this purpose. Create objects of Date class in Teacher and Student class to store respective dates. You need to write print function in Teacher and Student classes as well to print all information of Teachers and Students. You need to perform composition to implement this task. Create objects of Teacher and Student classes in main function and call print function for both objects. Print Date class here. Print updated Teacher class here. Print updated Student class here. Print main function here. Print Outputshere.Use Python Programming Language (The Stock class) Design a class named Stock to represent a company’s stock that contains: A private string data field named symbol for the stock’s symbol. A private string data field named name for the stock’s name. A private float data field named previousClosingPrice that stores the stock price for the previous day. A private float data field named currentPrice that stores the stock price for the current time. A constructor that creates a stock with the specified symbol, name, previous price, and current price. A get method for returning the stock name. A get method for returning the stock symbol. Get and set methods for getting/setting the stock’s previous price. Get and set methods for getting/setting the stock’s current price. A method named getChangePercent() that returns the percentage changed from previousClosingPrice to currentPrice. Write a test program that creates a Stock object with the stock symbol INTC, the name Inte lCorporation, the…C++ Write a function named “createPurchaseOrder” that accepts the quantity (integer), the cost per item (double), and the description (string). It will return a newly created PurchaseOrder object holding that information if they are valid: quantity and cost per item cannot be negative and the description cannot be empty or blank(s). When it is invalid, it will return NULL to indicate that it cannot create such PurchaseOrder object.