Develop a C++ program that will determine the gross pay for each of the employees. The company pays “straight-time” for the first 40 hours worked by each employee and pays a “time-and-a-half” for all hours worked in excess of 40 hours. You are given a list of employees of the company, the numbers of hours worked by each employee last week and the hourly rate of each employee. Your program should input this information for each employee, and should determine and display the employee’s gross pay. Your program will end if a negative value was entered.
Q: What is the meaning of a relocatable object file?
A: The answer of this question is as follows:
Q: Consider a dataset from an online store consisting of selected sets of five ebooks, which are repres...
A: As the data given above cannot clearly conclude the genre given. So.
Q: Construct an E-R diagram for a car-insurance company whose customers own one or more cars each. Each...
A: E-R Diagram An entity relationship diagram (ERD), also known as an entity relationship model, is a g...
Q: What exactly is an executable object file?
A: Introduction: We must first explain what an executable object file is. The term "executable object f...
Q: Create a structure flowchart and pseudocode that will ask for an integer number (3 digit) and determ...
A: Pseudo Code: Read n set a to n%10 set n to n/10 set b to n%10 if(b%3==0) Write "Middle digit is...
Q: When it comes to conducting static analysis in-house, what are the benefits and drawbacks?
A: The Answer in step-2.
Q: Write a function in C++ that adds two nodes at the end of the singly link list Like add two nodes af...
A: Disclaimer: “Since you have asked multiple questions, we will solve the first question for you. If y...
Q: What the following values for the Marketing Team? Use only the x.x.x.x notation for the IP addresses...
A: We Have: The optimal IP address is 98.127.64.0/22 For Technology Team, we require 157 IP addresses, ...
Q: Why is the system time of a computer a suitable source of random seed values?
A: Introduction: An integer (or vector) known as a random seed is entered into the input field to start...
Q: For the first project, we focus on reviewing the basics of Java as you have learned in COMP 110. Wri...
A: import java.util.*;import java.io.*;public class Main{ public static void main(String[] args) { ...
Q: This question concerns environments and scope chains. We will use the following definition for envir...
A: 1. error 2.NumValue(20) 3.closure(x,e,σ2)
Q: How a physically addressed cache might be merged with virtual memory is discussed in detail in this ...
A: INTRODUCTION: Virtual memory: It is a temporary segment of volatile memory created on the storage dr...
Q: Make A Flowchart in this C program code. //C program that lists all the prime numbers from 35 to 15...
A: Answer the above questions are as follows:
Q: In this problem, you must implement the following methods: MIN, MAX, RANGE, AVÉRAGE, MODE The first ...
A: Java Program: JAVA Code:- import java.util.*; public class Main { public static int minWordLengt...
Q: Explain to them what a "Firewall" is and how to use it.
A: Introduction: A firewall is essentially a software application that offers system security.
Q: 6B) Describe some of the different strategies that interest groups use to gain influence on public p...
A: ANSWER:-
Q: in html Explain how we can extract the options that are selected from a group of radio buttons. Writ...
A: In step 2, I have provided brief explanation---- In step 3, I have provided a program as ...
Q: In comparison to other industrial products, there are three fundamental differences between software...
A: Introduction: Differences between software and other industrial goods. Product complexity, developme...
Q: Where do you get your symbols from?
A: Introduction: You may check up a code chart online or search for a particular sign using the Windows...
Q: Describe the elements for project failure and what are the stakeholders for the project
A: Elements for Project Failure : 1. Goals that are unclear or changingEach venture should have a parti...
Q: В - (В -А) = AnB (А -С) ) n (С -B) —Ф
A:
Q: Computer Science Write a program called ArrayNames.java creating an array list of three buckets. ...
A: According to the information given :- We have to edit the code to take 3 array string input to sort ...
Q: Write a static recursive method in Java called mRecursion that displays all of the permutations of t...
A: import java.util.Scanner;public class Main { //Get input from in to call recursive method //to...
Q: computer science - What exactly is a parallel system? Explain the reasoning behind its design.
A: Introduction: Many systems are made up of several pieces or elements. These components are organised...
Q: Explain how electronic connectivity across diverse development teams might aid in the support of sof...
A: Introduction: Planning, analysis, design, development & implementation, testing & deployment...
Q: b. import java.util.ArrayList; public class Main { public static void main (String[]args) { ArrayLis...
A: - We have to talk for the ArrayList and get the output of the program. - In the program, we have a...
Q: What are the benefits and drawbacks of bipolar coding schemes? Describe why NRZ coding is unsuitabl...
A: Bipolar: A variant of the RZ code is bipolar return-to-zero (BPRZ) secret writing, wherever the sign...
Q: How Linkers Resolve References Using Static Libraries
A: Here, you be must decide whether or not to use Linkers with Static Libraries.
Q: What is the Line Replacement on Misses in Set Associative Caches?
A: Introduction: When none of the cache lines in a given set contain the appropriate tag value, the set...
Q: Let assume we have a list of numbers contains even and odd numbers, so you need to build an algorith...
A: ANSWER: # Python program to segregate even and odd elements of array def segregateEvenOdd(arr): ...
Q: specify virtual memory
A: Introduction In computers, virtual memory is a memory management method used by the operating system...
Q: 4- Calculate the sum of 1.011 x 2-1 and -1.101 x 2-2 by hand. Assume you have 3 digits binary precis...
A: The complete solution is given step by step in the next step.
Q: Name three C++ classes that can be used to generate output streams.
A: Output Stream Classes The output stream the sequence in which data can be recorded. The monitoring s...
Q: We have the following relation: Subscriptions(ID, startingdate, length, customerID, customerName,...
A:
Q: Problem 3: Perform the following calculations in the stated bases. (18 points) 001101112 010110112 +
A: In step 2, I have provided ANSWER with BRIEF EXPLANATION----------------
Q: What is the time complexity of each iteration of Jacobi's method? O O(n) O On) O On O On lg n)
A: The answer is given below.
Q: Modern-day information mining is as good as gold! Why or why not?
A: Answer:
Q: Explain why uninitialized data is referred to as. Isn't that a bss?
A: INTRODUCTION: DATA: Information has been put into a form that makes it easier to move or process.
Q: What are some of the most important physical security aspects that enterprises should take into cons...
A: Introduction: Protect physical activities and occurrences that might cause major loss or harm to a c...
Q: Select an equivalent statement for each statement below. : -3x p(x) A 3x p(x) B. 3y p(y) (x)d xA- : ...
A: The first expression to be matched is : ¬∃x p(x) With the help of quantifier negation rule, it can ...
Q: What are a few of the most common uses of host software firewalls? Explain
A: Introduction: A host software firewall is a computer that filters incoming and outgoing traffic. It ...
Q: Explain briefly the hosted software model for corporate software and analyse its key appeal to small...
A: INTRODUCTION: SMEs: When a company has fewer employees, it is classified as a small or medium-sized ...
Q: Project description The problem here is to make change using the smallest number of American coins. ...
A: Code: #include<stdio.h>#include<stdlib.h>int *change(int amount){ int *data = malloc(...
Q: What is the purpose of exploratory data analysis? Computer science
A: Introduction: Exploratory Data Analysis (EDA) is a method of analyzing data through the use of visua...
Q: Question 1 Consider an empty list. Which pointers are updated if a node with data 5 is inserted to t...
A: if the list is empty so which pointers are updated if a node with data 5 is inserted to that list h...
Q: What security policy would mitigate the use of no encryption or hashing to regulate data flow and un...
A: Encryption It is the process of sending data in a way that guarantees confidentiality. The encrypti...
Q: medičal savings e traffic adequately
A: To find the BCR, BCRM and the comment is given as,
Q: Describe the put member function's purpose.
A: put member function The put() function is a member of ofstream class. It is used to write a single ...
Q: What are Compiler Drivers and How Do I Use Them? What is the purpose of using them?
A: INTRODUCTION: Compiler: It is a language processor that reads an entire source program written in th...
Q: short answer How can the hardware performance of a single CPU be improved? Computer science
A: Introduction: Simply simply, computer hardware refers to the components that are required for a comp...
Develop a C++
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- Note: Please answer in C++ Programming language. During Eid, it is a tradition for every father to give his children money to spend on entertainment. Chef has N coins; denote the value of the coin i by vi. Since today is Eid, Chef gives one coin to each of his two children. He wants the absolute value of the difference between the values of the coins given to the two children to be as small as possible to be as fair as possible. Help the chef by telling him the minimum possible difference between the values of the coins given to the two children. Of course, the chef cannot give the same coin to both children. Possible input 1 3 142 Required Output 1Develop a C++ program that will determine the gross pay for each of the employees. The company pays “straight-time” for the first 40 hours worked by each employee and pays a “time-and-a-half” for all hours worked in excess of 40 hours. You are given a list of employees of the company, the numbers of hours worked by each employee last week and the hourly rate of each employee. Your program should input this information for each employee, and should determine and display the employee’s gross pay. Your program will end if a negative value was entered. Submit: Source code and OutputDesign a C++ program to do the administration for a fun run competition. Participants can run a distance of 5 kilometers, 10 kilometers or 15 kilometers. Ask the user if they wish to register a participant (Y or N). Ask whether the person is a member (Y or N)Ask the distance that the person wishes to run (5, 10, 15). Information on using a switch statement for Y or N questions can be found in Beginning C, page 119.You may choose whether to use switch statements, if statements, or both for this practical. Registration fees for club members are as follows:5km = R 65.0010km = R 100.0015km = R 150.00 Non-members:For the 5 and 10 kilometers distances, the participation fees must be increased by 25%For the 15 kilometer distance the registration fee is double that of club members. Use the given criteria and input information to calculate the registration fee. The program must keep track of the total number of participants per distance category, the total amount received per distance…
- Pakistan online Daraz company has four agent (1 to 4) who sell 5 different products ( 1 to5). Once per day, each agent passes in a slip for each different type of product sold. Every agentpasses in between 0 to 5 slips each day. Each slip has the following information on it: The agent number The product number Total rupees of that product sold that day.Write a program in C++ that will read all this information for last month’s sales and brief thetotal sales by agent by product. The output should be in tabular form.Write a C++ program that helps calculate how long it would take a user to pay off a loan with compound interest. You should prompt the user for the principle amount, how much interest is being charged, and how much they are able to pay back each month. You should assume that all amounts are in dollars and cents, that interest is charged monthly, and that payments are also made monthly. The program should display a table with the following columns: the month number, the amount remaining on the loan, and the total amount already paid. For *each* row, you should: 1. *FIRST* subtract the payment from the amount remaining on the loan.2. *THEN* add interest based on this new total amount. You should continue to print out rows in the table until either the amount remaining is <= $0 or if 100 months have passed. Then, print out a summary showing the number of months that will elapse and how much total has been paid. If the table stops at 100 months, print out a message telling the user that…You are tasked with writing a C++ program that simulates a simple library system. The program should allow users to check out and return books, display available books, and keep track of late returns. Here are the specific program details: The program should start with an initial list of at least 10 books in the library, each with a unique identifier, title, and availability status. * Allow the user to check out a book by entering the book's identifier. • If the book is available, mark it as checked out and display a due date (assume a 14-day checkout period). * If the book is already checked out, inform the user. Allow the user to return a book by entering the book's identifier. If the book is returned on time, update the availability status. * If the book is returned late, display a message indicating a late return and calculate the late fee (assume a fee of $0.50 per day). Provide an option to display the current list of available books in the library. Please write a C++ program…
- a C++ program that recommends the number of calories a person should eat each day. Calories are units of energy found in all foods. Base your recommendation on the person's weight and whether the person has an active or sedentary (inactive) lifestyle. If the person is sedentary, that person's activity factor is 13. If the person is active, that person's activity factor is 15. Multiply the activity factor by the person's weight to get the recommended number of calories. Start your program by: having the user enter their weight, as a floating point number; having the user enter whether they have active or sedentary lifestyle, as a character, 'A' for active or 'S' sedentary; use a switch (or else if) selection statement to use the appropriate calculation for the recommended calories for the selected lifestyle. · print out your results on the screen.Employees in a company receives net salary after the deductions for tax, Staff Provident Fund (SPF), and Global Insurance (GI): Basic Salary Range ($) Tax Rate SPF GI 0 – 1999 0 % 11 % 1 % 2000 – 2999 5 % 12 % 2 % 3000 – 4999 8 % 13 % 5 % Above 5000 10 % 17 % 8 % Based on the table given, you are required to write a C programming for a system that accepts the employee’s basic salary, and generates the net salary after the respective deductions as described aboveIn c++ Language . MATCh INPUT AND OUTPUT ----------------- ABC Bank announced a new scheme of reward points for a transaction using an ATM card. Each transaction using the normal card will be provided by giving a reward percentage of the transaction amount as a reward point. If a transaction is made using a premium card and it is for fuel expenses, additional 10 points will be rewarded. Write a program to calculate the total reward points.Strictly adhere to the Object-Oriented specifications given in the problem statement. All class names, member variable names, and function names should be the same as specified in the problem statement.A class VISACard has the following attributes. Access Specifiers Data type Variable protected string type protected double amount private int rewardPercentage Include the following method in VISACard class. Method Description public void ComputeRewardPoints() In this method, calculate and display the reward pointsbased on…
- Please assist with this C++ programming question. A teacher at Leva Primary School needs to divide her class in different group sizes according to the activity they have to do. This will help her to prepare workstations for each group. For example, for art projects the class has to be divided in groups of 6; for science projects the class has to be divided in groups of 4. She asked you to write a program to determine the number of groups as well as the number of pupils who are left to form a smaller group. There are 56 pupils in the class. The program has the following structure: Declare three int variables nrPupils, nrGroups, and nrLeft. nrPupils represents the number of pupils in a class, nrGroups represents the number of groups the class is divided into, and nrLeft represents the number of pupils, if any, who are in the remaining smaller group. Assign the value 56 to nrPupils. Declare an int variable groupSize that is used by a cin statement to input a value from the keyboard…The problem is from Introduction to Programming and Data Structures with C++, 4th edition Write a program that prompts the user to enter the number of students and each student’s name and score, and displays the name and score of the student with the highest score and the student with the second-highest score.Sample RunEnter the number of students: 5Enter a student name: SmithEnter a student score: 60Enter a student name: JonesEnter a student score: 96Enter a student name: PetersonEnter a student score: 85Enter a student name: GreenlawEnter a student score: 98Enter a student name: ZhangEnter a student score: 95Top two students:Greenlaw's score is 98.0Jones's score is 96.0write a C++program that finds the total amount to be spent on a vacation. In Main ask the user for the number of days for the trip and the name of the person booking the trip. It should then call FindHotelCost() and pass both of these variables to that function. The FindHotelCost() function should give a message using the persons name who is booking the trip with the hotel bill. The bill will be 550 dollars for each day of the trip. It should then call AddRentalCar() and pass the name and number of days and the hotel bill to that function AddRentalCar() asks the user for the number of miles that were driven on the rental car and calculates the price of the car. It is $50 per day and .08 cents per mile driven. Show this charge to the user and then add it to the hotel bill for the total bill for the stay. Show this total to the user as well with the person’s name booking the trip.