Payroll Software A Programming Company uses freelance programmers for some of their projects and they pay them at a given hourly rate. Sometimes the projects are so big such that they request the freelance programmers to exceed the weekly contracted 40 hours, and then pay the extra hours (excess of 40 hours) at an overtime rate. The total hours, including the extra hours, should not be over 60 hours and can never be zero or below. The normal hourly rate is R520.45 per hour and the overtime rate factor is 1.4072. Everyone of their ten (10) freelance programmers must submit weekly hours for the calculation of their salaries. Design a C++ Program that will accept into parallel arrays the following details: Name, Surname and hours worked. Note that the name and surname should be stored separately. We assume that the surnames are unique for each programmer. The salary calculations done per employee are: Basic Salary (rate and hours worked), Medical Allowance (Basic Salary and 8.2%), Data Allowance (Basic Salary and 5%), Gross Pay (Basic Salary, Medical Allowance and Data Allowance), PAYEE (Gross Pay and 9.34%), UIF (Gross Pay and 1%), and Net Pay (Gross Pay, PAYEE and UIF).
Your program should be menu driven with the following options:
[C]apture Employee Details
[L]ist Employee Details
[A]ll Employees Payslips
[S]ingle Employee Payslip
[E]xit
Use a switch statement to evaluate the menu options and consider the small or capital letters for each option. The program should use functions to do the following: Capture all employee details (name, surname, hours), Display all employee details from the arrays, Display all the employees’ payslips, Display a single employee’s salary (this requires you to search for the employee using the surname only) and therefore the other function should search for the index number for the location of the employee’s surname in the array. Note that, the display payslip function should display a payslip for only one employee, it should only accept the name, surname and hours worked of a single employee and then make the calculations from within the function. You can use variables for the calculations within this function. Please format the payslip output as we did in the lesson. You are not limited to the suggested functions above, you can have more functions if you feel you need them, but the ones listed above are compulsory.

Answers

Answer 1

The C++ program should be designed to provide the following options: capturing employee details, listing employee details, generating payslips for all employees, generating a payslip for a single employee, and exiting the program. These options will be evaluated using a switch statement based on user input. The program should utilize parallel arrays to store the name, surname, and hours worked for each employee. Functions should be implemented to perform tasks such as capturing employee details, displaying employee details, generating payslips, and searching for an employee's surname in the array. The payslip calculations, including basic salary, medical allowance, data allowance, gross pay, PAYEE, UIF, and net pay, should be performed within the appropriate functions. The program should display the payslip output in the desired format.

The C++ program will be structured to handle the payroll calculations and management for a programming company that employs freelance programmers. The program will use parallel arrays to store the necessary employee details, including their names, surnames, and hours worked. The menu-driven approach will provide a user-friendly interface for interacting with the program.

When the user selects the "Capture Employee Details" option, the program will prompt for and store the relevant information in the corresponding arrays. This function ensures that all employee details are accurately captured and stored for future use.

The "List Employee Details" option will display all the employee details stored in the arrays. This function allows the user to view the names, surnames, and hours worked for each employee in a convenient format.

The "All Employees Payslips" option generates payslips for all the employees. This function will iterate through the arrays, performing the necessary calculations for each employee to determine their basic salary, medical allowance, data allowance, gross pay, PAYEE, UIF, and net pay. The payslips will be displayed in the desired format, providing a comprehensive overview of the employees' salaries.

The "Single Employee Payslip" option allows the user to generate a payslip for a specific employee by searching for their surname in the array. This function will locate the employee's index number and perform the required salary calculations for that employee. The payslip will be displayed in the specified format.

The program also includes an "Exit" option to gracefully terminate the program when the user is done with their tasks.

Overall, this program provides an efficient and user-friendly solution for managing the payroll calculations and generating payslips for freelance programmers in a programming company.

Learn more about C++ program

https://brainly.com/question/33180199

#SPJ11


Related Questions

Write an assembly program to find the largest item in an array and store it in a variable named MAXIMUM. Hint: Use both Jump and loop instructions to write the program. Logic: Assume that the first item of the array is the minimum and store it in variable MAXIMUM Write a loop. Inside the loop, compare the each array item with the minimum If the array item is less than the MAXIMUM, update MAXIMUM with that array item. . Data Array WORD 10, 2, 23, 45, 21, 11 MAXIMUM WORD

Answers

Use the knowledge of computational language in C++ to write the a code assembly program to find the largest item.

How to write a maximum function in C++?

To make it simpler the code is described as:

#include<bitd/stdc++.h>

Using namespace std;

Int main(){

Int arr[10]={10, 2, 23, 45, 21, 11};

Int min=INT_MAX;

Int max=INT_MIN;

for(int i=0;i<10;i++)

If(min<arr[i])min=arr[i];

for(int j=0;j<10;j++)

if(max>arr[j])max=arr[j];

Cout<<max<<” “<<min<<endl;

return 0;

See more about C++ code at brainly.com/question/19705654

Write an assembly program to find the largest item in an array and store it in a variable named MAXIMUM.

a business should be managed ethically to keep existing customers and attract new customers. true false

Answers

The statement given "a business should be managed ethically to keep existing customers and attract new customers." is true because  a business should be managed ethically to keep existing customers and attract new customers.

Managing a business ethically is crucial for maintaining and expanding customer base. When a business operates ethically, it builds trust and credibility with its existing customers. Customers are more likely to remain loyal and continue supporting a business that demonstrates ethical behavior, such as fair pricing, transparent practices, and high-quality products or services.

Additionally, ethical business practices contribute to a positive reputation, which can attract new customers. Word-of-mouth recommendations and positive reviews from satisfied customers can help a business attract a broader audience and expand its customer base. Therefore, the answer is "True."

You can learn more about business  at

https://brainly.com/question/24553900

#SPJ11

FILL IN THE BLANK. _________ is software that is completely free to use without any specified time restrictions.

Answers

Open source software is software that is completely free to use without any specified time restrictions.

Open source software is developed by a community of developers who believe in collaborative coding and sharing of their work. The source code of open source software is available for anyone to view, modify and distribute without any cost. This means that users can download, use and distribute open source software for free, without having to worry about any license fees or hidden costs. Examples of open source software include Linux operating system, Apache web server, Mozilla Firefox browser and LibreOffice productivity suite. Open source software has become an important part of modern computing and has helped to democratize access to technology.

learn more about Open source here:

https://brainly.com/question/29762628

#SPJ11


Matching. Match the number to the name of the trench. Not all
choices will be used.

69.
70.
71.
72.
73.

choices:
-philippine trench
-New hebrides trench
-Marianas trench
-Tonga kermadec trench
-Japa

Answers

To match the numbers to the corresponding trenches:
69 - Philippine Trench
70 - New Hebrides Trench
71 - Tonga Kermadec Trench
72 - Mariana Trench
73 - No corresponding trench in the given choices.

The number 69 corresponds to the Philippine Trench, while the number 70 corresponds to the New Hebrides Trench. The number 71 corresponds to the Tonga Kermadec Trench, and the number 72 corresponds to the Mariana Trench. The number 73 does not have a corresponding trench in the given choices.

The Philippine Trench is located in the western Pacific Ocean, off the eastern coast of the Philippines. It is one of the deepest parts of the Earth's seabed, reaching a depth of about 10,540 meters (34,580 feet). This trench is formed by the convergence of the Philippine Sea Plate and the Eurasian Plate.

The New Hebrides Trench is located in the southwestern Pacific Ocean, near the islands of Vanuatu and New Caledonia. It is about 1,250 kilometers (780 miles) long and reaches depths of around 7,440 meters (24,400 feet). This trench is formed by the convergence of the Australian Plate and the Pacific Plate.

The Tonga Kermadec Trench is located in the southwestern Pacific Ocean, between the islands of Tonga and New Zealand. It is one of the deepest trenches in the world, reaching a depth of about 10,882 meters (35,702 feet). This trench is formed by the convergence of the Pacific Plate and the Indo-Australian Plate.

The Mariana Trench is located in the western Pacific Ocean, east of the Mariana Islands. It is the deepest part of the Earth's seabed, reaching a depth of about 11,034 meters (36,201 feet). This trench is formed by the convergence of the Pacific Plate and the Philippine Sea Plate.

Therefore, to match the numbers to the corresponding trenches:
69 - Philippine Trench
70 - New Hebrides Trench
71 - Tonga Kermadec Trench
72 - Mariana Trench
73 - No corresponding trench in the given choices.

To know more about convergence, visit:

https://brainly.com/question/33797936

#SPJ11

~Föllòw gixannaa on tìktòk and then comment done~
(I will give brainliest answer if you tell me your user)

Answers

Answer:

my user is shut.upnow

Explanation:

lol

Answer:

I don't have tik tock sorry if I did I would have followed u

Explanation:

:D

Omar needs to build a website fast for a client. The website needs to be highly scalable as it is predicted to become quite popular. Due to time constraints, Omar can’t build all the code himself. Which of the following would be best for Omar to use?

A.
AngularJS

B.
Django

C.
SQL

D.
jQuery

Answers

B no reason why but I have done this just forgot explaining ")

write a method called digitsum that accepts an integer as a parameter and returns the sum of the digits of that number. for example, the call digitsum(29107) returns or 19 . for negative numbers, return the same value that would result if the number were positive. for example, digitsum(-456) returns or 15 . the call digitsum(0) returns 0 .

Answers

C++:

#include <iostream>

int digitsum(int n) {

   if(n==0) return 0;

   return (n%10)+digitsum(n/10);

}

int main(int argc, char* argv[]) {

   std::cout << "Enter a number to calculate: ";

   int x; std::cin>>x;

   if(x<0) std::cout << "Sum is: " << digitsum(x*(-1));

   else std::cout << "Sum is: " << digitsum(x);

   return 0;

}

Python:

def digitsum(n):

   if(n==0): return 0

   return int((n%10)+digitsum(n/10))

   

x = int(input("Enter a number to calculate: "))

if(x<0):

   print("Sum is:",digitsum(x*(-1)))

else:

   print("Sum is:",digitsum(x))

could someone please list the psychological impacts of Video games that differ the mind of teenagers. If you’ve previously completed a essay or report on this, please show me as an example. Thank you!

Answers

Answer:

Previous studies show that violent video games increase adolescent aggressiveness, but new Dartmouth research finds for the first time that teenagers who play mature-rated, risk-glorifying video games are more likely subsequently to engage in a wide range of behaviors beyond aggression, including alcohol use, smoking.

Explanation:

it has effected me by the way but im fine now it was for a short amount of time

A user’s smartphone has been experiencing performance issues, and it needs to be charged more often. A technician also notices there have been spikes in the smartphone’s CPU and memory usage. What would most likely improve the performance of the Smartphone?

Answers

An action which would most likely improve the performance of the Smartphone is: C. disabling unnecessary services.

What are smartphones?

Smartphones can be defined as hybrid versions of mobile devices that are designed and developed to have more features, so as to enable them run different software applications, functions and perform tasks with the aid of software applications such as web browsers, multimedia player, etc.

Types of smartphones.

In Computer technology, there are three popular types of mobile devices and these include the following:

Handheld computersPersonal digital assistants (PDAs)Smartphones.

What is a memory?

A memory can be defined as a terminology that is used to describe the available space on an electronic device that is typically used for the storage of data or any computer related information.

In this context, we can reasonably infer and logically deduce that an action which would most likely improve the performance of the smartphone is to disable all unnecessary services, so as to free some memory on the smartphone.

Read more on smartphones here: https://brainly.com/question/28464409

#SPJ1

Complete Question:

A user’s smartphone has been experiencing performance issues, and it needs to be charged more often. A technician also notices there have been spikes in the smartphone’s CPU and memory usage. What would most likely improve the performance of the Smartphone?

Configuring automatic updates

Conditioning the battery

Disabling unnecessary services

Turning off cellular roaming

This question has two parts : 1. List two conditions required for price discrimination to take place. No need to explain, just list two conditions separtely. 2. How do income effect influence work hours when wage increases? Be specific and write your answer in one line or maximum two lines.

Answers

Keep in mind that rapid prototyping is a process that uses the original design to create a model of a part or a product. 3D printing is the common name for rapid prototyping.

Accounting's Business Entity Assumption is a business entity assumption. It is a term used to allude to proclaiming the detachment of each and every monetary record of the business from any of the monetary records of its proprietors or that of different organizations.

At the end of the day, we accept that the business has its own character which is unique in relation to that of the proprietor or different organizations.

Learn more about Accounting Principle on:

brainly.com/question/17095465

#SPJ4

how many microprocessers will a small computer have

Answers

Answer:

for what i know its one hope that helps

how to paste text without changing the style

Answers

Explanation:

left click on the text and move the mouse icon

Critical thinking skills can be applied to reading.


Please select the best answer from the choices provided

T
F

Answers

T

Critical thinking means that you do not just accept what an author presents. By reading critically, you read skeptically, questioning the author against your own knowledge and your own world view. Sometimes your ideas will align with an author's.

Answer:

Explanation:

hello i know the answe and the anwer is TRUE

The most effective leaders treat everyone alike. True True False

Answers

Answer:

you have to have evidence they do that and on the question theirs no evidence so the answer would be false (as long as theirs no evidence)

Explanation:

Answer:

True

Explanation:

Describe a feature of a receptionist and explain how she deals with external customers. ​

Answers

Answer:

A receptionist is a (administrator) who deals with tasks such as, answering a phone call, and giving information to customers. They deal with external customers by letting them talk and not interrupting them..

if more than one class of shares is authorized, what type of information must be specified? (select all that apply)

Answers

Answer:

- Designation to distinguish each class

- Specific rights for each class

Resolving The Problem Of Port 5000 is in use by another program. either identify and stop that program, or start the server with a different port.

Answers

To resolve the problem of Port 5000 being in use by another program, you can either identify and stop that program or start the server with a different port. We can Identify and stop, Start the server with a different port.

Identify and stop the program using Port 5000: For Windows: Open Command Prompt and enter the following command: `netstat -a -n -o | find "5000"`. This will show you the process ID (PID) of the program using Port 5000. For macOS/Linux: Open Terminal and enter the following command: `lsof -i :5000`. This will show you the process ID (PID) of the program using Port 5000. Once you have the PID, use Task Manager (Windows) or Activity Monitor (macOS) to locate and terminate the process.

To Learn More About Port: https://brainly.com/question/14671890

#SPJ11

The way a student prepares for a test or reviews academic material is referred to as

a study environment.
study habits.
study hall.
a study schedule.The way a student prepares for a test or reviews academic material is referred to as

Answers

Answer:

study habits

Explanation:

Answer:

The Answer is Study Habits

Explanation:

Just got it right on edge

What is the best definition of a database?
O a well-structured organization of data
O an email application that also sorts data
O a presentation software that handles data
O a task manager that provides storage for data

Answers

Answer: The answer is A

a well-structured organization of data

Explanation: i just took it :)

________ shrinks the width and height of the printed worksheet to fit a maximum number of pages.

Answers

Excel commands that let you adjust the width, height, or both of printed output to suit the most number of pages possible include: Size to Fit

What is a worksheet?

A group of cells arranged in rows and columns is referred to as a worksheet in Excel documents.

It is the work surface that you use to input data.

Each worksheet functions as a massive table for organizing data with 1048576 rows and 16384 columns.

A workbook typically has numerous worksheets with connected content, but only one of them is open at any given moment.

Each worksheet contains a sizable number of cells that can be formatted and given values. Worksheet cells can be added, changed, and deleted using the Cells property.

Hence, Excel commands that let you adjust the width, height, or both of printed output to suit the most number of pages possible include: Size to Fit.

learn more about worksheet click here:

https://brainly.com/question/1234279

#SPJ4

What does anyone who chooses to use speech recognition software need to do?

A) Create a Guest Account.
B) Create an on-screen keyboard.
C) Set up visual alternatives for sounds.
D) Train the computer to understand his or her voice

Answers

D I believe. I’m not %100 percent sure.

Answer:

Train the computer to understand his or her voice.

Explanation:

Thats what u need to do

true or false. in general, it costs more to make similar components that take up less space and require less power. this is one of the reasons why laptops are generally more expensive than desktops with comparable features.

Answers

True, in general, it costs more to make similar components that take up less space and require less power, this is one of the reasons why laptops are generally more expensive than desktops with comparable features.

What is desktops?

The desktop is a fundamental component of a personal computer that displays various types of objects such as project folders, reference sources, drawing tools, documents, writing tools, phone books, and telephones.

It is the primary user interface of a computer that sits on top of a physical desk. The desktop display is the default display, and it appears once the startup process is complete when the system boots.

The icons of files and folders you save to the desktop, as well as the desktop wallpaper, are displayed on the desktop. It includes a taskbar located at the bottom of the display screen in the Windows operating system.

To know more about desktops visit:

brainly.com/question/30052750

#SPJ4

Why is experience in their own factory setting
crucial for a manager in the manufacturing
business?

Answers

Answer:

How to Manage Manufacturing Operations Effectively

Ensure High-Quality Products. ...

Ensure High-Quality Equipment. ...

Know How To Maximize Resources. ...

Look Into Technological Advancements. ...

Check Your Customer Service. ...

Consider Reducing Waste. ...

Conclusion.

Explanation:

What symbol goes at the end of every if/else statement in python?

Answers

A colon goes after every if/else statement in python. For instance:

if 1 < 5:

   # do something.

As we can see, a colon is placed after the 5.

"Using Ubuntu, use "sudo" where needed:
1) Network information. Please attach screenshots for each step.
a) Use the GUI tool to view network card and connection information (particularly IP address).
b) Use the nmcli command to view network card and connection information.
c) Use ifconfig and ip command to view IP address.
d) Use ifconfig command to disable your network connection. Use the ping command to test the connection.
e) Use ifconfig command to activate the connection again.
2) Check remote host information. Please attach screenshots.
a) Review and practice relevant commands to check information about "spsu.edu"
3) Review the /etc/services file. Please attach screenshots for each step.
a) What do you see?
b) What is the port number for the following service? What’s the most effective way to find it?
i) www
ii) ftp
iii) ssh
c) What is the service for the following ports
i) 443
ii) 389"

Answers

Network info: - Open Ubuntu settings for GUI tool. Go to "Network". View network card and connection info, such as IP address. Use nmcli command to view network card and connection information in terminal.

What is the network?

Type "sudo nmcli" to see network connection details, including your IP. To view IP address, use ifconfig and ip command in a terminal. Enter "sudo ifconfig" command and locate the desired network interface's IP in the output. Use "ip addr" command: sudo ip addr or "ifconfig" command to disable network:

Type: sudo ifconfig down, replacing with the name of your network interface (e.g. "eth0" or "wlan0"). Use ping command: ping <IP_address> , with reachable host's IP. No network, no ping. Activate connection with ifconfig in terminal:

Learn more about network from

https://brainly.com/question/1326000

#SPJ1

use the two starter java files and read, read, read, the comments to figure out the problem. use the ‘war_n_peace.txt’

Answers

The problem with the provided Java files is that they are missing the implementation for reading the contents of the "war_n_peace.txt" file. To fix this, you need to add the code that reads the file and stores its contents.

In the `FileReader.java` file, you can add the following code inside the `readFile` method:

```java

try {

   BufferedReader reader = new BufferedReader(new FileReader("war_n_peace.txt"));

   String line;

   while ((line = reader.readLine()) != null) {

       // Process each line of the file

       System.out.println(line);

   }

   reader.close();

} catch (IOException e) {

   e.printStackTrace();

}

```

This code opens the file, reads it line by line, and processes each line as needed. The `try-catch` block is used to handle any potential exceptions that may occur while reading the file.

In the `Main.java` file, you can then call the `readFile` method from the `FileReader` class inside the `main` method:

```java

public static void main(String[] args) {

   FileReader reader = new FileReader();

   reader.readFile();

}

```

This will invoke the `readFile` method and display the contents of the "war_n_peace.txt" file in the console.

The provided solution involves adding code to read the contents of the "war_n_peace.txt" file. The `FileReader` class contains a `readFile` method that uses a `BufferedReader` to read each line of the file and process it as needed. The `Main` class then creates an instance of the `FileReader` class and calls the `readFile` method to display the file contents. By incorporating this code, the program can successfully read and display the content of the "war_n_peace.txt" file.

Learn more about Java files  here:

https://brainly.com/question/30764228

#SPJ11

Before a URL is added to listOfPendingURLs, line 25 tests whether it has been traversed. Is it possible that listOfPendingURLs contains duplicate URLs? If so, give an example.

Answers

If the program adds each URL to listOfPendingURLs as it encounters them, then the list would contain duplicate entries for https://example.com/page1.

When the program attempts to process the duplicate URL, it would first check whether the URL has already been traversed by calling listOfProcessedURLs.contains(s). If the URL has been processed, the program would skip it and move on to the next URL. However, if the URL has not yet been processed, the program would add it to the list of pending URLs by calling listOfPendingURLs.add(s).Therefore, the program may encounter duplicate URLs in listOfPendingURLs, and it is important to handle these duplicates appropriately to avoid unnecessary processing or other issues.

To learn more about program click the link below:

brainly.com/question/13445413

#SPJ11

Bruce needs to have a drive to rerecord data on the used DVD

Answers

Answer:

DVD- RW

Explanation:

Order the steps to use a logical argument as a rule type.

ANSWER:
Click the home tab, then click the styles group > Click conditional formatting > Click new rule > Use a formula to determine

Answers

pleaaase I need the points

Explanation:

As the Social Media Strategist at a company, your coworker comes to you and asks you to explain that if your ads and products are all over the Internet, how would anyone ever find them? Which would be your best explanation?

Answers

Explanation:

They can find the ads all over the internet. The ads will be seen by people using all kinds of websites, and of all age groups.

Other Questions
choose any of the signs someone may be going in to heat exhaustion. write the symbol for the ion of each element. classify the ion as an anion or a cation, and name the ion. a) potassium b) oxygen c) tin ( 2 electrons lost) d) bromine e) beryllium f) cobalt (3 eletctron lost ) While doing a math problem in class, Jared's answer was different from his teacher's. So she had him come up and work the problem on the board. Here's Jared's work. .What was his mistake?A. There are not enough numbers after the decimal.B. The sum of 7,294 and 3,647 is incorrect.C. He left out the place holder under the 4.D. He multiplied incorrectly 0.34 pts when movement along a normal fault and detachment fault causes enough uplift and erosion to expose the deep lower crustal ductile deformation zone, that exposed rock formation is group of answer choices a listric fault or spoon-dip outcrop a metamorphic core complex or turtleback a tilted fault block or leaning domino a graben a horst compound interest is a very important concept when evaluating the return on an investment you plan to hold for a long time. T/F the government passed the cares act to address the economic fallout of the covid-19 pandemic. which of these provisions were included in the legislation? i'd appreciate someones help !!!Solve for angles x, y, and z. In the answer choices, the first number is for angle x. The second number is for angle y.The third number is for angle z.A)65, 65, 65B)65, 115,65C)115, 65, 115D)115, 115, 115 Which set of measurements will form a unique triangle?angle measures of 45, 45, 90angle measures of 60, 60, 60side measures of 20 cm, 20 cm, 20 cmside measures of 1 cm, 1 cm, 100 cm the archaeological record shows that human groups adapted to the changed climatic conditions of the holocene by: Find the area of the regular figure Which process is a from of mechanical weathering What is the synonym and antonym for this word :Acquitted. And form three sentence with the synonym and antonym each Exercise 1 Complete each sentence with the appropriate tense of the verb in parentheses.Taylor says they are going to Hawaii, which _____________ their original destination. (be) . A car travels 605 miles in 11 hours. What is the average number of miles traveled per hour? Which description is evidence of chemical weathering?kO A. A rock in a windy desert has scratches onits surface.B. A rock in a tundra has deep cracks filledwith ice.C. A rock turns a reddish color whenexposed to air and water.D. A rockban a steep slope falls to theground and breaks apart.Check Ce sont de ____personnes. the rain-shadow effect would be most evident in which direction relative to the rocky mountains?group of answer choiceseastsouthsouthwestwestnorthwest lin is booting up his computer. sometimes during the boot process, the computer will shut down, but more often than not it will reboot on its own or simply freeze. he thinks the problem could be due to an intermittent undervoltage problem with the power supply, so he uses a power supply tester. the test shows that the power supply is functioning properly. what should lin check next in the troubleshooting process? One of the 13 states in the Union, __________ chose not to send delegates to the Constitutional Convention of 1787. a client with deep partial-thickness and full-thickness burns on the arms receives autografts. two days later, the nurse finds the client doing arm exercises. the nurse provides additional client teaching because these exercises may: