Q8) Write a C++ program by creating an 'Employee' class having the following members Three Private variables name, salary and hours of work per day. Three functions: 1 - A Constructor, which initializes the name, salary and number of hours of work per day of the employee. 2 - 'AddSal()' which adds 1500 SR to the salary of the employee if it is less than 8500 SR. 3- 'AddWork()' which adds 500 SR to the salary of the employee if the number of hours of work per day is more than 6 hours.
Q: Complete the following program. Line (7) should include statement to skip the current iteration of…
A: Find the required answer with explanation given as below :
Q: Is it possible to provide instances of invasion of privacy and doxing in the real world?
A: Answer:
Q: What exactly is the distinction between ASCII and Unicode?
A: When it comes to text data processing, storage, and exchange, Unicode is the universal character…
Q: What does the LIKE operator in SQL do? Give an example to back up your claim.
A: The LIKE operator is used in a WHERE clause for search for a specified pattern in a column.…
Q: The core ideas of software engineering ignore the void. Explain?
A: Software development: Software engineering is a rigorous, disciplined, and quantitative approach to…
Q: When compared to a database extension like mysqli for MySQL, what are the advantages and…
A: When compared to a database extension like mysqli for MySQL, what are the advantages and…
Q: Because to languages like Java and C++, it is now possible to create software that is not reliant on…
A: Machine Independence Programs for System Development - A program is said to be machine-independent…
Q: The ______ broad category of BI/analytics includes genetic algorithms and linear programming.
A: Introduction: There are numerous elements that are shared by all optimization models:
Q: EXPLAIN THIS PYTHON CODE FOR EMOTION DECTECTION IN STEP BY STEP import cv2 from deepface import…
A: Answer - Let's understand the code line by line -
Q: Is software engineering lacking any fundamentals? explain?
A: A programme is a set of instructions that may be executed: To complete a specified computing job. A…
Q: What are the underlying principles of software engineering that are absent from our understanding of…
A: This question clarifies what key concepts of software engineering are missing: Failure to Recognize…
Q: 4.04-1. IPV4/IPV6 co-existence: tunneling (a). Consider the mixed IPV4/IPV6 network shown below,…
A: - We have to talk about the network diagram.
Q: G-Codes programming process
A: G-Code Programming process The goal of every G-code program is to produce parts in the safest and…
Q: Use words to describe the language defined by the regular expression (a|b)*a(a|b).
A: The given regular expression is : (a|b)*a(a|b)
Q: What are the different parts of a typical Web application?
A: Answer:
Q: hysical hard drives, but it reduces the hard drive's useable capacity. Do you want backup at the…
A: Strike represents Redundant Array of an Independent or Inexpensive Disks, and it is a storage…
Q: A multi-specialty hospital hires doctors anc chey are categorized to Specialists and General…
A: Please find the answer below :
Q: The JavaScript statementlet pizzaPrice = rewardsCustomer ? 20.0 : 18.5;_____. a. assigns the value…
A: Solution and Explanation: Ternary operator: We use ternary operator to assign value based on…
Q: RAID allows you to generate live backups of physical hard drives, but it reduces the hard drive's…
A: The, ATTACK The RAID: Redundant Array of Inexpensive Disks (RAID) is a data storage virtualization…
Q: What happens if many processes in CPU scheduling have the same priority levels?
A: Priority Scheduling is a priority-based process scheduling system in which the scheduler prioritizes…
Q: Acquire a comprehensive knowledge of social networking Autonomous computing: what is it and where…
A: When we talk about "social networking," we refer to the different online platforms that enable users…
Q: Compare and contrast the numerous challenges that arise when designers attempt to elicit demands for…
A: Iterative design is a simple concept: After determining a user's need and producing ideas to meet…
Q: What is system testing? Describe the many sorts of testing methodologies.
A: System testing and different system testing methodologies
Q: Write a blog post describing the allocation approach known as static. Indicate the drawbacks of a…
A: Prior to programme execution, static memory allocation is performed: During programme execution,…
Q: what is Cluster computing, Grid computing, or Cloud computing?
A: Introduction: This form of computing is known as distributed computing, and it consists of a system…
Q: To make a user interface usable, you need to be able to list and identify its functional…
A: Effective user interface navigation: A user interface (UI) is a communication and interaction point…
Q: How can a user-friendly interactive system be created? Is there a specific example I can use to…
A: Answer is given below-
Q: When it comes to coding, what is the difference between Huffman and LZW? Describe in detail the kind…
A: Huffman Coding: Huffman encoding is an algorithm for lossless data encoding. The scheme's approach…
Q: In no more than 250 words, describe polymorphism and its applications in software.
A: Answer: Polymorphism: Polymorphism refers to the fact that something exists in several forms.…
Q: What are the different parts of a typical Web application?
A: The following are the different components of a typical Web application: Database for Client-Side…
Q: Computer Science 8. For selected non-schedulable set of tasks draw in one graph, processor demand…
A: In the schedule analysis , if the task set is schedulable, the algorithm is guaranteed to return the…
Q: Bestro is a satellite television provider. It offers three types of monthly subscription packages.…
A: Code :- import java.awt.EventQueue;import javax.swing.JFrame;import javax.swing.JPanel;import…
Q: Suppose you have initialized a variable in your JavaScript program using this statement: let weight…
A: JavaScript JavaScript is a light-weight, web base, interpreted programming language. It is sometimes…
Q: Foo wants to send a message securely to Alice. Describe a security feature which can be used to…
A: Given: Foo wants to send a message securely to Alice.
Q: How might a unified user interface (UX) benefit the SoS interface design process? Many variables…
A: In the design of SoS interfaces, a unified user interface is advantageous: Users may learn the…
Q: In terms of SoS interface design, what are the benefits of a unified user interface (UX)? The…
A: In the interface design of Sops, a unified user interface is advantageous: The Advantages of a…
Q: What is missing from the fundamentals of software engineering is not taken into consideration.…
A: Software Engineering: Software Engineering Fundamentals is unusual in that it covers subjects like…
Q: The operator concatenates two strings & ++ None of the answers are correct
A: Concatenation means when 2 strings are joined.
Q: In the context of information security, what exactly does the term "privacy" mean? Do individuals of…
A: Information Security: It's difficult to tell the difference between privacy and security for the…
Q: Are there recording sessions on data-storage CDs?
A: Introduction: Are there recording sessions on data-storage CDs?
Q: For example, what are the benefits and disadvantages of sequential and binary search algorithms?
A: Sequential and binary search are two basic algorithms used to execute a search within a given data…
Q: Why do different operating systems put disc folders at different track places on the disc? What are…
A: There are several positions in the disk on which folders are placed 1>Center position2>Outer…
Q: In a few phrases, explain the advantages and disadvantages of frequent software updates.
A: In this question we have to discuss the advantages and disadvantages of frequent software updates.
Q: C transmission ra ons to occur in a
A: It represents Hybrid Fiber Coax.it utilizes both coaxial links and filaments.In the downstream…
Q: What type of scanning can show whether or not a server is using Telnet?
A: Telnet: Telnet is a bidirectional interactive text-oriented communication protocol that uses a…
Q: What is your relationship with the molcajete?
A: Objects from many civilizations contribute something special and unique to their way of life. The…
Q: Is there a lack of fundamental software engineering principles? explain?
A: Reversibility is also seen in database applications: where, to maintain the consistency of ACID…
Q: What are some of the common aspects seen in network diagrams
A: An network diagram will assist organisations and teams with envisioning how gadgets like Computers,…
Q: In HPC, a(n) _______________________ is a place in a program where processors may have to wait. It…
A: Ready Queue: It is a one type of queue where the process that are waiting process. It is reide in…
Q: How to upload live html website using infinity?
A: Infinity: Infinity is the platform which provides the server to host the application online. It…
Step by step
Solved in 4 steps with 2 images
- C++(OOP)Write a program that implements the following situation.A marketing organization ABC Ltd helps to promote the sales of other brands and products. ABCLtd has permanent employees and also hires employees from outside as well for different occasionson contract basis. A permanent employee gets monthly salary whereas contractual employee getspaid on daily wage rate along with basic salary.You need to create a class Employee with following data members.• String name• Int age• Int contact• Int CNIC• String educationYou will inherit the Employee class into Permanent_EMP and Contractual_EMP classes.In Permanent_EMP you are required to create following data members• Int basic_salary• Int allowancesIn addition, you are required to write down following class functions• A constructor that takes values of salary & allowances at the time of object declaration.• A method that calculates and returns the salary with following formulao Salary = basic_salary + allowances.In Contractual_EMP…Use C++ language Create a class called Fraction for performing arithmetic with fractions. Use integer variables to represent the private data of the class—the numerator and the denominator. Provide a constructor function that enables an object of this class to be initialized when it is declared. The constructor should contain default values in case no initializers are provided. Provide public member functions for each of the following: a) Addition of two Fraction numbers (included in the Frac.cpp as an example). b) Subtraction of two Fraction numbers. c) Multiplication of two Fraction numbers. d) Division of two Fraction numbers. e) Printing Fraction numbers in the form a/b where a is the numerator and b is the denominator. f) Printing Fraction numbers in double floating-point format.error_outlineHomework solutions you need when you need them. Subscribe now.arrow_forward Question in c++ Create a class time24, each object is a value represented the time ofday in the form hours, minutes and seconds. Provide a constructorthat enables an object of this class to be initialized when it isinstantiated. The constructor should contain default values in case noinitializes are provided.Provide Public member functions for each of the followingoperations: set the time, print the time, increment the time by onesecond, compare two times for equality, increment the time by onehour, determine if one time is “less than” (comes before) anothertime, and final print the time in format 12 hours.Include any additional operations that you think would be useful foryour class.Design, implement, and test your class.
- C++ Personal Information Class: Design a class that holds the following personal data: name, age, and phone number. Write appropriate accessor and mutator functions. Demonstrate the class by writing a program that creates three instances of it. One instance should hold your information, and the other two should hold your friend's or family member's information.C++ Write a class named Car with member variables: yearModel, Make, Speed as private.Use a Constructor that accepts year model and make as arguments. It should also assign 0 to thespeed use accelerate and brake functions that add and subtract 5 from speed each time it is called.Demonstrate the class in a program that creates a Car object, and then calls the acceleratefunction 5 times. After each call to the accelerate function, get the current speed of the car anddisplay it. Then, call the brake function five times. After each call to the brake function, get thecurrent speed of the car and display itC++ please! Please type it and no pictures. 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.
- Write a C++ program to calculate the total salary of an employee using Class and Constructor. You must use the following formula to calculate the total salary of an employee: Basic+HRA+TrasportAllowance + Bonus - IncomeTax You have to declare a class named as Employee. Create data member according to total salary of an employee. Create a parameterized constructor to initialize variables according to total salary of an employee. You have to calculate total salary of an employee using function named as TotalSalary. You must create three objects and initialize different data members. For first object take the data member values as 7000.5, 1000.5, 300.5, 40.5, 05.5 For second object take the data member values as 6000.5, 0900.5, 200.5, 40.5, 05.5 For third object take the data member values as 5000.5, 0800.5, 100.5, 40.5, 05.5 Find the output for 3 different employees’ salary by access the member function. YOUR OUTPUT SHOULD BE AS FOLLOWS: Total Salary of employee 1:…(Program) a. Complete the following class by including functions corresponding to the two prototypes listed in the declaration section: classElevatorprivate:intelNum;//elevatornumberintcurrentFloor;//currentfloorinthighestFloor;//highestfloorpublic:Elevator( int=1,int=1,int=15);//constructorvoidrequest( int);; In this definition, the data member elNum is used to store the elevator’s number, the data member currentFloor is used to store the elevator’s current floor position, and the data member highestFloor is used to store the highest floor the elevator can reach.The constructor should allow initialization of an object’s three data members with the data passed to the constructor when an Elevator object is instantiated. The request function should code the following algorithm: If a request is made for a nonexistent floor, a floor higher than the topmost floor, or the current floor Do nothing ElseIf the request is for a floor above the current floor Display the current floor number While not at the designated floor Increment the floor number Display the new floor number EndWhile Display the ending floor number Else // the request must be for a floor below the current floor Display the current floor number While not at the designated floor Decrement the floor number Display the new floor number EndWhile Display the ending floor number EndIf b. Include the class written for Exercise 3a in a complete program, and verify that all member functions work correctly.Research assistants provide support to professionals who are conducting experiments or gathering andanalyzing information and data. Suppose you are working as RA (research assistant) with a Professor who isworking on a project and evaluating complex mathematical equations. Your duty is to assist him, so in thisregard he has assigned a task to you. Your task is to write a oop c++ program to create a class named equation which will have the data members a, b and c which are the coefficients of the quadratic equation. The class will have two more data members namely proot and nroot which stand for the positive root and negative root of the equation. Suppose that variables a, b and c are integers. Where proot and nroot are floats. Input Function to get values of a, b and c Then design a friend function which will determine the proot and nroot of the equation. Create another friend function which will display the values of proot and nroot.
- SUBJECT: OOPPROGRAMMING LANGUAGE: C++ ALSO ADD SCREENSHOTS OF OUTPUT. Write a class Distance to measure distance in meters and kilometers. The class should have appropriate constructors for initializing members to 0 as well as user provided values. The class should have display function to display the data members on screen. Write another class Time to measure time in hours and minutes. The class should have appropriate constructors for initializing members to 0 as well as user provided values. The class should have display function to display the data members on screen. Write another class which has appropriate functions for taking objects of the Distance class and Time class to store time and distance in a file. Make the data members and functions in your program const where applicableC++ 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).c++ Friend function concepts Do not use operator overloading Create a class Circle with member variable radius R of type float. Create a constructor for assigning value to R and a method "int compare(Circle c)" for comparing the radii. In main method, create two objects of Circle and compare their radii and display which one is bigger