1) Create a class Worker with attributes name, age and salary. This class contain default constructor, GetData and Display.
a) A function SalariedEmployeeComission calculates the commission of the worker and display total salary constantly.
b) A function HourlyEmployeeComission calculates the commission of the worker with of 5% and display total salary constantly
Note: Declare variables as per need, Commission of an employee of Salaried class is 10% and for class Hourly employee is 5%
In the given prefix and suffix program, how to print no overlapping statement
#How to run this server #Use the datetime classes to create, extractt and munipulate dates and times.
from datetime import datetime
#Use json to format your response
import json
#import the requests library to be able to SEND request
import requests
#From the flask library, import only the Flask, request ad Response classes.
#the request class (not the same as the requests library) is used to to used to recieve requests
#if you have to convert several objects as one nested json structure, you cannot use flask,jsonify.
app = Flask(__name__)
CORS(app)
@app.route("/", method = ["POST"]) # Run this method when receiving any POST request
@cross_origin(origin='*') #Allow requests from any domain
def myMainFunction():
...
Using a switch statement, write a program that prompts the user for a numeric code and two operands. The numeric codes of 1, 2, 3, and 4 represents addition, subtraction, multiplication, and division respectively. Before division, your program should check whether the second operand is not zero. If it is, it should display “Division by zero not allowed” to the screen.
Write a java program for the following-
Class person
Derive two classes-student and employee [identify inheritance]
For student
Input: Name, roll no, marks in 4 subjects (use arrays of object]
Output: student information, total marks [create necessary function, Use of constructor
For Employee
Input: empno, empname, basic
Process:
a. DA=50%of basic
N
b. HRA=25%of basic
c. CCA=Rs240/-
d. PF=10%of basic
You have been requested to create a program that that helps the Namibian Defence Forces’ (NDF) Captain to calculates the BMI of a person (BMI = weight/height2) and also determine whether the person has also completed running 10 km in the required time. Men should complete 10km in less than 60 minutes for them to be accepted. Women should do that under 80 minutes. Both males and females are accepted if their BMI is less than 25 and greater than 18.5. For 2018 intake, there are already 6 males selected and 1 female.
Sample Run 1
Welcome to NDF Captain's Selection Aid.
***************************************
Gender: male
Mass in kilograms: 82
Height in metres: 1.82
Time for completing 10 km in minutes: 45
Output1: Candidate Selected! The number of males is now 7.
VISUAL BASIC
Design and develop a simple application System that determine the most economical quantity to be stocked for each product that a manufacturing company has in its inventory this quantity called economics order quantity (EOQ) is calculated as following
EOQ = sqrt (2RS/I)
R = total yearly Production Requirement
S = Set up Cost per order
I = inventory carrying cost per unit
Note: After the user enter the total year production Requirements (R) its set up cost per oder (S) and inventory carrying cost per unit (I) at text baxes 1,2 & 3 expectively the user should Click button (with a compute caption) before the resulting computed value will be displayed at the text box 4
Use the Convert.TextString(Math.Eqrt(intNum1)); mathematical function to get the square root value
Write a java application using the concepts of multithreading for a flower
shop where flowers are delivered based on order.