The input file called StaffDetails.txt contains a list of records of employees working for USP. The file is generated automatically by the biometric sign-in used by all USP staff and passed to payroll department for calculation of monthly wages. Each record is on a single line and the fields are separated by spaces. The names of the fields are: • Employee ID • Employee Last name • Employee First name • Hourly rate • Hours worked in that month An example record may have the following form but the file can have a maximum of 300 records: H111007 Bond James 40.0 150
A. You must read this file and store the records of employees into appropriate arrays. B. Program should provide user with the following menu. 1) Print all employees’ data. 2) Print all data about of employees which match a given last name that is entered by a user 3) Calculate the net wages for all employees and store it in an array. 4) Display payroll results. 5) Write results to file 6) Exit program.
a2 + b2 = c2
| \
| \
| \
| \
| \ c
a | \
| \
|__ \
|__|______ \
b
2.Create a function that will compute for c given that there are inputs for a and b
3.Create a function that will compute for a given that there are inputs for c and b
4.Create a function that will compute for b given that there are inputs for c and a
SCREEN LAYOUT / DESIGN
(Home Screen when programs runs. User can choose a, b, or c.)
Pythagorean Theorem
Compute for
[a] altitude
[b] base
[c] hypotenuse
Input [a| b |c]:_
(When c is clicked this screen/ layout below will be shown. If Y is inputted in the Try Another control, go back to screen 1 else program will exit.)
Pythagorean Theorem
Function 1 (find c)
Input a: 4
Input b: 3
Computed value of c: 5
Try Another [Y/N]:
(When a is clicked, do function 2, If b is clicked do function 3)
Pythagorean Theorem
Function 2 (find a)
Input c: 5
Input b: 3
Computed value of a: 4
Try Another [Y/N]:
Pythagorean Theorem
Function 3 (find b)
Input c: 5
Input a: 4
Computed value of b: 3
Try Another [Y/N]:
How do you implement abstraction and encapsulated in c++
Write a C# application that asks the user to input ‘A’ and ‘B’ and prints the sum of squares of all odd numbers between ‘A’ and ‘B’.
Write aprogramm using Array 1,2,3,4,5 and insert middle 5,6 and delete 3
Write a program that prompt the
user to enter a number and determines whether the entered number is a perfect number. Your
program should determine and print all the perfect numbers between 1 and 1000. Print the
divisors of each perfect number to confirm that the number is indeed perfect.
Write a C++ program to obtain the given output:
Enter any number or enter 0 to exit: 8
Enter your choice, star[s] and hash[h]: h
########
Enter any number or enter 0 to exit: 4
Enter your choice, star[s] and hash[h]: s
****
Enter any number or enter 0 to exit: 0
Are you sure you want to exit? (Y/N): Y
Thank you for using this program. Have a good luck!
Press any key to continue . . .
Write a C++ FUNCTION named getData()that prompts the user to enter results for a
number of students passed to it using the following data structure: (5 MARKS)
struct result
{
string name;
int matNum;
double mark;
};
Write a C++ program to find roots of a quadratic equation using Ternary conditional operator.
Write a program in c++ to read the radius of a circles and prant its area