C++ Assume we want to determine the commission received by a salesperson. The commission rate is based on two factors, the amount of sales and the class to which the salesperson belongs. The input will be the sales and the class which the sales person belongs. The output will be the salesperson's name, number and commission. The commission rate will be based on the following: Class =1 If sales is equal to or less than $1000, the rate is 6 percent Class 2= If the sales is less than $1000, the rate is 4 percent. Class 3= If the sales is $1000 or greater, the rate is 6 percent
Q: C++, create a class called Employee that includes three pieces of information as data members—a…
A: IN C++, create a class called Employee that includes three pieces of information as data members—a…
Q: c++ (A) write the definition of the Circle class. (B) Write a test program implementing the…
A: Hello student. Warm welcome from my side. Hope you are doing great. I will try my best to answer…
Q: Write the following C++ program Create a class BankSyS which hold information regarding customer.…
A: #include<iostream.h> #include<string.h> #include<process.h> class details {…
Q: In C++ Create a class called Point which will have 2 co-ordinate value x & y and will be able to…
A: #include <iostream>#include<cmath> using namespace std; class Point{ private:…
Q: C++ program . (Add the function print to this class to output the radius, area, and circumference of…
A: Actually, c++ program is a powerful general purpose language.
Q: The television seller wants to control the television inventory in his television store through a…
A: I have tried to explain all the steps in the code with various comments.
Q: Write a code in c++ Maintain a bookshelf that initially contain 2 books. Now you purchased three…
A: In this program we will use stack data structure as the statement says the last book that will be…
Q: C++ program IF NOT COMFORTABLE WITH CLASSES,I WOULD START WITH DEFINING THE CLASS WITH ONE…
A: The implementation for the given criteria is as follows,File name:…
Q: Basketweaving 101 is a class that is graded on a Pass/Fail basis. This means he either gets a “P”…
A: using System;using System.Collections.Generic;using System.Linq;using System.Text; public class…
Q: Write C++ program to create class called human that has data members name, eye coior and age, also…
A: Solution
Q: Create a class and declare a function fun() inside the class but do not define the function inside a…
A: PROGRAM CODE: #include <iostream> // include header file for input output stream using…
Q: Practice 2: DESCRIPTIONS OF PROBLEM: DapaStore, a cloth department would like to have a cash…
A: NOTE: Since programming language is not mentioned. Therefore answering questions in C++ language.…
Q: Write a code for OOP based game in which a player (human) will play against computer, and the player…
A: below is the code:
Q: In C++ QUESTION 14 class rectangleType { public: void setLengthWidth(double x, double y);…
A: In order to write and test the function definition of perimeter we also need to write the function…
Q: Using C++ Suppose you have a Bank Account with an initial amount of $50 and you have to add some…
A: C++ program for the above problem is given below:
Q: Q8) Write a C++ program by creating an 'Employee' class having the following members Three Private…
A: ALGORITHM:- 1. Declare and create the class. 2. Create the class object and initialise it. 3.…
Q: C++ PROGRAM a. Construct a class named circle with 2 integer variables named xCenter and yCenter…
A: C++ PROGRAM a. Construct a class named circle with 2 integer variables named xCenter and yCenter and…
Q: Write a C++ Program in which a class name Bank contains Name, account_number and balance as a data…
A: Given: Write a C++ Program in which a class name Bank contains Name, account_number and balance as a…
Q: Write C++ program to create class called human that has data members name, eye color and age, also…
A: We need to write a CPP program to perform mentioned functions.
Q: Problem 2: Employee Payment The Stark Industry needs a program to calculate how much to pay their…
A: Java program to calculate the employees payment. The name of the class is StarkIndustry. Create a…
Q: In C++ create a program that acts like a bank account. It prompts the user for their input whether…
A: Step 1: Start Step 2: Make class A define the variables deposit, withdraw, interestRate, serviceFee…
Q: PYTHON CODE Write a student class that will keep track of the grades of students and generates a…
A: Here, in step 1, I have provided the code using python as stated in the question i.e., using class…
Q: ABC Bank announced a new scheme of reward points for a transaction using an ATM card. Each…
A: Coded using C++.
Q: Write a student class that will keep track of the grades of students and generates a final mark. You…
A: The weightage can be calculated by multiplying the weightage percentage with unit marks
Q: I'm Using Python Design an Employee class that has fields for the following pieces of information:…
A: class Employee: EmpName ="" EmpNum = 0 #Accessor methods def getEmpName(self):…
Q: Create a class Time which contains: ● Hours Minutes Seconds Write a C++ program using operator…
A: In C++, we can change the way operators work for user-defined types like objects and structures.…
Q: Create a class Time which contains: ● Hours Minutes Seconds Write a C++ program using operator…
A: Code: #include<bits/stdc++.h> using namespace std; class Time{ int…
Q: Python code: Write a student class that will keep track of the grades of students and generates a…
A: def calculateOverallScore(quiz, mid_term,final_exam): # percentage of Qiz 15% and mid_term is 35%…
Q: In C++ create a program that acts like a bank account. That has 3 classes. The first class must be a…
A: A class is a user-defined new data type that encapsulates the data members and member functions into…
Q: Input data of three countries and display the name of country with greater population
A: Program: // C++ version 14#include<iostream>#include<string.h>using namespace std;//…
Q: Suppose in Islamabad International Airport the plans arrivals and departures are frequent and they…
A: Sample Response: //C++ program to computes the kinetic energy#include <iostream>using…
Q: Q3 using object oriented programming oop c++ Write a program that will calculate and display the…
A: Program description: n1 and n2 are the user input integer variables of the class TotalWeight that is…
Q: C++ Problem: Write a program that will calculate a student’s final score in this class based on the…
A: Following is your code with comments which provide the required result: //Define include-header…
Q: the basis of account age). While in current account there will be no interest. There should be the…
A: with C++ write the following program Create a class BankSyS which hold information regarding…
Q: ppose your program contains the following class definition: class Automobile{ public void…
A: According to class definition mentioned above, there is a colon after the getPrice(). class…
Q: In this task, we’re going to be simulating an email message. Some of the logic has been filled out…
A: Algorithm: 1. Declare has_been_read, email_contents, is_spam and from_address. 2. Input from the…
Q: Problem C In this problem you will use the design pattern for maintaining state and write a Toddler…
A: Here I have created a class named Toddler. Inside the class, I have declared the variables and then…
Q: Use C++ Programmign language: Write a complete program that demonstrates the following classes by…
A: ANSWER :-- CODE :--
Q: Create a class: Doctor, with private data members: id, name, specialization and salary with public…
A: code: #include <iostream>using namespace std;class Doctor{ int id, doc_sal; string…
Q: In C++ create a program that acts like a bank account. It asks the user whether to deposit or…
A: Answer is given below-
Q: Write a program having a base class Student with data member rollno and member functions getnum() to…
A: #include <iostream>class Student{public: int rolno{0}; virtual void getnum() { std::cout…
Q: In this task, we’re going to be simulating an email message. Some of the logic has been filled out…
A: Program Plan: Define an Email class as given below: Define a constructor that initialized…
Q: 2- Write C++ program to create class name ration card enter the information, quantity for ration…
A: In this question, we are asked to write a ration card class and fill 7 items with 2 object and print…
Q: write a C++ program Wheels and Cars A Car is composed of four Wheel thingies. If a car is moving,…
A: code: //header files#include <iostream>#include <string>using namespace std;// define a…
Q: C++(OOP) Write a program that implements the following situation. A marketing organization ABC Ltd…
A: Given: C++(OOP)Write a program that implements the following situation.A marketing organization ABC…
Q: Define a class to calculate the electricity bill. The rates of electricity per unit are as follow:…
A: import java.util.Scanner; class electricity_bill{ void ebbill(){ Scanner obj= new…
Q: Write a C++ program to calculate the total salary of an employee using Class and Constructor. You…
A: Step-1: StartStep-2: Create a class Employee Step-2.1: Create public data members basic, hra,…
Q: Write a C++ program to calculate the area of a rectangle using Class and Constructor. You have to…
A: A class is a group of objects which have common properties. A constructor is a method that is used…
Q: OU ONLY NEED TO EDIT date.h, dateOFYear.h, and dateOFYear.cpp date.h | date.cpp | dateOfYear.h |…
A: The program is implemented below in C++:
Q: Assume that a bank maintains two kinds of accounts for customers, one called as savings account and…
A: The C# code is written below:
C++
Assume we want to determine the commission received by a salesperson. The commission rate is based on two factors, the amount of sales and the class to which the salesperson belongs. The input will be the sales and the class which the sales person belongs. The output will be the salesperson's name, number and commission. The commission rate will be based on the following:
Class =1 If sales is equal to or less than $1000, the rate is 6 percent
Class 2= If the sales is less than $1000, the rate is 4 percent.
Class 3= If the sales is $1000 or greater, the rate is 6 percent
Step by step
Solved in 2 steps with 1 images
- PROGRAMMING LANGUAGE: C++ ALSO PUT SCREENSHOTS WITH EVERY TASK. TASK 1 : A class of ten students took a quiz .The grades (integers are in range 0-100) for this quiz are available to you .Determine class average on quiz . TASK 2: Write c++ code that print summery of exam result and decide either student should have makeup class or not .If more then 30% of class fails in exam it’s mean they need a makeup class otherwise they don’t need any makeup class. For class strength take input from user (Hint: take two variables pass and fail) TASK 3: write a c++ that will determine whether a department-store customer has exceeded the credit limit on the charge account .For each customer , following facts are available : Account number (an integer) Balance at beginning of month Total of all items charged by this customer this month Total of all credit applied to this customer’s account this month. Allowed credit limit You are required to use a while structure to input each of these facts ,…C++ Programming Exercise: When you borrow money to buy a house, a car, or for some other purpose, you repay the loan by making periodic payments over a certain period of time. Of course, the lending company will charge interest on the loan. Every periodic payment consists of the interest on the loan and the payment toward the principal amount. To be specific, suppose that you borrow $1,000 at an interest rate of 7.2% per year and the payments are monthly. Suppose that your monthly payment is $25. Now, the interest is 7.2% per year and the payments are monthly, so the interest rate per month is 7.2/12 = 0.6%. The first month's interest on $1,000 is 1000 X 0.006 = 6. Becuase the payment is $25 and the interest of the first month is $6, the payment toward the principal amount is 25-6 = 19. This means after making the first payment, the loan amount is 1,000-19 = 981. For the second payment, the interest is calculated on $981. So the interest for the second month is 981 X 0.006 = 5.886,…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:…
- When you borrow money to buy a house, a car, or for some other purpose, you repay the loan by making periodic payments over a certain period of time. Of course, the lending company will charge interest on the loan. Every periodic payment consists of the interest on the loan and the payment toward the principal amount. To be specific, suppose that you borrow $1,000 at an interest rate of 7.2% per year and the payments are monthly. Suppose that your monthly payment is $25. Now, the interest is 7.2% per year and the payments are monthly, so the interest rate per month is 7.2/12 = 0.6%. The first months interest on $1,000 is 1000 0.006 = 6. Because the payment is $25 and the interest for the first month is $6, the payment toward the principal amount is 25 6 = 19. This means after making the first payment, the loan amount is 1,000 19 = 981. For the second payment, the interest is calculated on $981. So the interest for the second month is 981 0.006 = 5.886, that is, approximately $5.89. This implies that the payment toward the principal is 25 5.89 = 19.11 and the remaining balance after the second payment is 981 19.11 = 961.89. This process is repeated until the loan is paid. Write a program that accepts as input the loan amount, the interest rate per year, and the monthly payment. (Enter the interest rate as a percentage. For example, if the interest rate is 7.2% per year, then enter 7.2.) The program then outputs the number of months it would take to repay the loan. (Note that if the monthly payment is less than the first months interest, then after each payment, the loan amount will increase. In this case, the program must warn the borrower that the monthly payment is too low, and with this monthly payment, the loan amount could not be repaid.)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).Your task is to create two classes namely data and calculation. The calculation class is a friend of the data class. The data class will be composed of two floating point data members namely a and b. The class will also be composed of a friend function display that can display all the data members.
- C++ Language This is to confirm my work, the wording throws me off a bit in understanding how interest works (i.e., whats the purpose of "interest to be paid" , why the deduction, #6, does it need to be displayed on the console, etc etc i don't understand this), I want to make sure I'm doing this right. Thanks. Suppose a loan has a face value of $1,000, the annual interest rate is 15%, and the duration is 18 months. The interest-to-be-paid is computed by multiplying the face value of $1,000 by 0.15, yielding $150. That figure is then multiplied by the loan period of 1.5 years to yield $225 as the total interest owed. That amount is immediately deducted from the face value, leaving the consumer with only $775 (i.e. $1000 - $225). Repayment is made in equal monthly installments based on the face value (i.e. $1000 in this case). So the monthly loan payment will be $1,000 divided by 18, which is $55.56. This method of calculation may be alright if the client needs $775, but the…C++ A dice game called "21" It is a variation on BlackJack where one player plays against the computer trying to get 21 or as close to 21 without going over. Here are the rules of the game: You will play with dice that have numbers from 1 to 11. To win, the player or the computer has to get to 21, or as close as possible without going over. If the player or computer goes over 21, they instantly lose. If there is a tie, the computer wins. Starting the game: The player is asked to give the computer a name. For now, we'll simply call the computer opponent, "computer." The game starts with rolling four dice. The first two dice are for the player. These two dice are added up and the total outputted to the screen. The other two dice are for the computer. Likewise, their total is outputted to the screen. Player: If a total of 21 has been reached by either the player or the computer, the game instantly stops and the winner is declared. Otherwise, the player is asked if they…C++ programming It has been observed by management that some faculty member at the university demonstrates a lackadaisical attitude toward work. They seldom go to class yet at the end of each month they receive full salary. Management has decided that GHs 200, 300, 400, and 500 will be deducted from a faculty’s salary if he/she offends once, twice, third time and forth time respectively in a month. This means that if a faculty member offends once in a month GHs 200 will be deducted, if a faculty member offends twice in a month, GHs 500 (i.e. 200+300) will be deducted, if a faculty member offends three times in a month GHs 900 (i.e.200+300+400), will be deducted and if a faculty member offends four times in a month GHs 1,400 (i.e. 200+300+400+500). Assuming all faculty members are on a flat salary rate of GHs 2500. a. Write a program to request for the names of four faculty members and number times he/she has absented him/herself from class. One of them should have absented him/herself…
- Write program in C++ Language The other solutions on chegg were incorrect! Please read carefully! Write a program that defines and tests a class called COP3014. The class resembles aclassroom. It has the following grading scheme:3 quizzes 20 points each 20%Mid term 100 points 30%Final 100 points 50%Based on the total grade of any student for the course, the letter grade of each student can becomputed as follows:Any grade of 90 or more is an A, any grade of 80 or more (but less than 90) is a B, any grade of70 or more (but less than 80) is a C, any grade of 60 or more (but less than 70) is a D, and anygrade below 60 is an F.This class needs to have some member variables. The first name, last name, the Z-number, thegrades, the total grade and final letter grade are all considered to be private member variablesof this class.The class should also have the following public member functions/procedural attributes that canbring the objects (students of the class) to life and give them some…C++ Create a class of Vehicle. The class of Vehicle should include at least 3 attributes (example: Color, Brand, Model, year, isDiesel, isElectric, etc) The second class should be the class of Car which is a subclass of Vehicle. This class should have at least 2 attributes (Example: VIN, Registration(tablilla), Owner, etc.) The main menu should have 3 options (1) Enter a new Car, (2) View all cars (3) Exit As part of this lab you should verify that the car being entered is not repeated. To check for repeated you should check the registration of the car. You should submit the header files and source files (a total of 5 files): Vehicle .h Vehicle .cpp Car.h Car.cpp Main.cppCode needs to be in C# Basketweaving 101 is a class that is graded on a Pass/Fail basis. This means he either gets a “P” for passing, or “F” forfailing. To pass the class Jimmy needs to average at 70% or more on the assignments. Write a program in C# that will read in astudent’s name and three assignment grades (from 0 to 100) and compute the average of the grades. Compare theaverage to 70% and output a sentence indicating that the student passed (or failed). Your output should include thestudents name and their average grade for the class.