Create a program to compute the pay of an employee. Pay is 12.75 and the number of hours is 25. Algorithm Pseudocode Flowchart Source Code


Pseudocode:
Function Main
Declare Integer hours
Declare Real hourlypay, allowance, pay
Assign hourlypay = 0.5
Assign allowance = 0.01
Output "Enter hours worked:"
Input hours
Assign pay = hours*hourlypay+hours*allowance
Output "pay ="
Output pay
End
//C++ code
#include <iostream>
using namespace std;
int main() {
int hours;
double hourlypay, allowance, pay;
hourlypay = 0.5;
allowance = 0.01;
cout << "Enter hours worked:" << endl;
cin >> hours;
pay = hours * hourlypay + hours * allowance;
cout << "pay =";
cout << pay << endl;
return 0;
}

//java code
import java.util.*;
public class Main {
private static Scanner input = new Scanner(System.in);
public static void main(String[] args) {
int hours;
double hourlypay, allowance, pay;
hourlypay = 0.5;
allowance = 0.01;
System.out.println("Enter hours worked:");
hours = input.nextInt();
pay = hours * hourlypay + hours * allowance;
System.out.print("pay =" +pay);
}
}
Create a program to compute the pay of an employee. Pay is 12.75 and the number...
Can you send the code and the screenshot of it running?
1) Create a PYHW2 document that will contain your algorithms in flowchart and pseudocode form along with your screen shots of the running program. 2) Create the algorithm in both flowchart and pseudocode forms for the following two functions: A. Write a Python function that receives a real number argument representing the sales amount for videos rented so far this month The function asks the user for the number...
Design a program(Creating a RAPTOR flowchart) that will read a file of employee records containing employee number, employee name, hourly pay rate, regular hours worked and overtime hours worked. The company pays its employees weekly, according to the following rules: regular pay = regular hours worked × hourly rate of pay overtime pay = overtime hours worked × hourly rate of pay × 1.5 total pay = regular pay + overtime pay Your program is to read the input data...
Program description: Write the necessary C++ statements (Program) to calculate the employee's weekly pay. Where : Hour = employee's work hours Rate = employee's hourly pay Wages = employee's weekly pay Given that ( Hour= 31.5 and , Rate = $11.45) Write the variable declarations and initialization sections necessary to compute and print the required calculations. The program should ask the user to input the hours and Rate of pay, then calculate the weekly Wages. Hint: Modify program in project...
You are to write a program that will process employees and their pay. For each employee the program will read in an employee’s name and hourly pay rate. It should also read in the number of hours worked each day for 5 days and calculate his or her total number of hours worked. You must read the hours using a loop. The program should output the employee’s name, gross pay, total withholding amount and net pay. Withholding is made up...
Within c++ Create a simple Employee class with name, department, and title. Create an hourlyEmployee class (which inherits from the Employee class) for a basic payroll program to compute the net pay salary of hourly based employees. Your program should also find the average net pay for a small company. To define the class, include the appropriate data members, member functions, constructors, and access modifiers. For simplicity, use a constant tax rate of 30% to compute the tax amount. Employees...
Write a program Java that gets an employee’s number, pay rate, and the number of hours worked in a week from a clerk. The program is then to validate the pay rate and the hours worked data and, if valid, compute the employee’s weekly pay and print it along with the input data. Company rules prohibit working more than 60 hours per week or having an hourly rate of more than $25.00/hour. Any data with these values should generate an...
Program 5: Design (pseudocode) and implement (source code) a program (name it Weekl yHours) to compute the total weekly hours for 3 employees. The program main method defines a two-dimensional array of size 3x7 to store employers' daily hours for the week. Each row represents one employee and each column represent one day of the week such that column 0 designates Monday, column 1 designates Tuesday, etc. The program main method populates the array with random numbers between 0 and...
Create the Python code for a program adhering to the following specifications. Write an Employee class that keeps data attributes for the following pieces of information: - Employee Name (a string) - Employee Number (a string) Make sure to create all the accessor, mutator, and __str__ methods for the object. Next, write a class named ProductionWorker that is a subclass of the Employee class. The ProductionWorker class should keep data attributes for the following information: - Shift number (an integer,...
Create a design document for a program that will take a number from the user and convert it to IEEE single precision format. The program displays the IEEE representation (Single precision) of the number entered by the user. PLEASE ADD THE PSEUDOCODE AND CODE WITH C PROGRAMMING
Use python to create this program.
1) Employee Class Write an Employee class that keeps data attributes for the following pieces of information: Note: For all classes, the attributes must be hidden Employee Name Employee Number Hire Date Create accessors and mutators Attributes should be hidden. Create a class attribute that determines a standard pay rate adjustment 4% for raises 2) ProductionWorker Class Write a class named ProductionWorker that is a subclass of Employee that holds the following attributes .Shift...