Suppose there is XYZ Company and there are different departments like production, marketing, finance, sales etc. Manager of the company want to know about the detail of the employees who are highly paid in each of the department. Write a program using the concept of classes to implement the same.
How to evaluate my python file using pytest and how to install pytest from pip ????
Create a new project, and name it P1T5
Write a program that requests the following information from a user:
Name
Wage per hour
Number of hours worked
It should then calculate the total wage and display a message with this format (note the alignment and currency
Name : David
Wage/hour : R45.00
No Hours : 6
Total Wage : R270.00
Create a new project, and name it P1T4
Write a program that requests a number of minutes from the user and then converts and displays the minutes as hours and minutes
Hint – make use of the / and % operators
Your running program could resemble the following:
Write a program that declares four integers. Your program should request the user to enter the values of the 4 variables (one by one) and then the sum and average of these values must be calculated and displayed.
Your running program could resemble the following:
Create a new console application, and name your project P1T1 (short for Prac1 Task1). In Visual Studio you should see the following code:
Add the statements to make your program write “Hello World” on your screen.
You will need 2 lines of code – one line to put the text on the screen, and one line to ensure that the black output box does not disappear immediately.
To compile and execute your program, click on the
button.
Be sure to save your application.
you are given two integers, a and b. print the smallest value among a%b and b%a.
write a program that calculates and prints the monthly paycheck for an employee. The net pay is calculated after taking the following deductions:
Federal Income Tax: 15%
State Tax: 3.5%
Social Security Tax: 5.75%
Medicare/Medicaid Tax: 2.75%
Pension Plan: 5%
Health Insurance: $75.00
Directions: Give an example on how to illustrate the use of the following SQL DDL Commands.
1. Create a database using the CREATE DATABASE command.
2. Create a database table using the CREATE command.
3. After a table in SQL using the ALTER command, and show how to add new column to the existing table.
4. List the content of a table using the SELECT columnist command.
5. How to update table rows using the UPDATE command.
6 Delete a database in SQL using the DROP DATABASE command.
7.Delete a table in a database.
BankAccount class
In the main code:
In the class, add methods to: