1. Calculate the Overtime Pay for 5 Service men Enter the Service man Name, Enter the Type of Service, Enter Monthly Basic Salary, Enter Number of Days of Overtime. The options of Type of Service men will be "Army", "Navy" and "Airforce". If the type of Service is "Airforce'", the Overtime Rate is 30%. If the type of Service is “Army", the Overtime Rate is 28%. If the type of Service is “Navy", the Overtime Rate is 26%. Overtime pay = Daily rate * Numbers of Days Overtime * Overtime Rate. Daily rate = Monthly Basic Salary/ 22. Display Service man Name / Service Type / Daily Rate / Overtime Pay for all the 5 Service men Save your shell script as servicemen.sh
Q: #include int main() float Bread = 1.09, Water = 2.18, Banana = 1.00, Meat = 7.99; // Unit for bread…
A: Solution: These two line are: //line-1 printf("You have %d loaves of bread, %d bottles of…
Q: Lael is always on the lookout for students who might be interested in running for office in student…
A: EXPLANATION: The Nested if statement is used to check multiple conditions at a single instance.…
Q: To be eligible for the leadership training program offered by the office, a student must have at…
A: Actually, the answer has given below:
Q: Write a C++ function to calculate the BMI of a person. (BMI = Mass / Height^2 ) where mass is in kg…
A:
Q: Ex\#3 3. The ABC manufacturing Company plans to give a year -end bonus to each of its employees.…
A: The flow chart for given scenario is given below As no programming language is specifies, I have…
Q: Experienced students may serve as mentors if they are at least age 21 and have at least 3 years of…
A: Here have to determine about Microsoft Excel problem statement.
Q: A year in the modern Gregorian Calendar consists of 365 days. In reality, the earth takes longer to…
A: Start Input year If year is multiple of 4 If year is multiple of 100 If year is multiple of 400,…
Q: Using C++ common year in the modern Gregorian Calendar consists of 365 days. In reality, Earth…
A: Logic:- check for leap year logic. If userYear%400==0 then it is leap year simply return 1 from…
Q: 1. Prompt the user and read in the number of a team playing the current game, i.e. Team 1, Team 2,…
A: #C code- #include <stdio.h>#define SIZE 7 int main() { int points[SIZE] = {0}; int…
Q: The table below shows the profit each subway line between two stations: Stations a b d a 30 20 50 b…
A: eg_1 = find_station_within_distance(subway_map, origin = 'a', dist = 0) eg_2 =…
Q: Assume you work as a cashier in a restaurant. You must keep track of the amount of money your…
A: Solution:-- 1)The given question has required for the solution to be provided with the help of an…
Q: Specifically, you need to complete: Inputs Birth Date Start Date Retirement Date Initial Investment…
A: Explanation: Include the necessary header files. Create a class to store data members. In the main…
Q: Using the switch, case, · · · , otherwise control structure, write a MATLAB program for calculating…
A: Given: Using the switch, case, · · · , otherwise control structure, write a MATLAB program for…
Q: 2.11 LAB: Pizza party Given the number of people attending a pizza party, output the number of…
A: Here is the program regarding the problem and its explanations:
Q: Langkawi Ro-Ro Ferry Services Sdn. Bhd provide a services of carrying cars to Langkawi Island. As a…
A: We have to design a program for ferry service as per the given instruction. Programming Language : C…
Q: To be eligible for a particular ride at an amusement park, a person must be at least 12 years old…
A: Explanation: The condition "age must be at least 12 years old" can be expressed by the statement…
Q: Primary 0.S. interstate nighways are numbered 1-99. Odd numbers (like the 5 or 95) go north/soutn,…
A: Code : ------------------------- number = int(input()) if(number <= 0 or number > 999):…
Q: QUESTION 2 An event for a company is designed to bring customers from Kuala Lumpur to a gathering in…
A: As the language is not specified answer written in c++ Introduction to the problem: 1)using if…
Q: Jeff and Gern run a furniture company specializing in tables and chairs. To save time, when a new…
A: Complete answer is below:
Q: This function, named fruit_cost, takes two arguments, named qty and price; Display product of price…
A: We have one python function fruit_cost which displays the value of its arguments: qty and price…
Q: The following code finds if age is between 18 and 40 (both inclusive) or not. What will be the…
A: According to the Question below the Solution:
Q: To determine the falling distance (dist) of an object to the ground due to the gravity (g), the…
A: Note: Here we are using the g value as 8.9 based on the requirements mentioned in the question. The…
Q: To determine the falling distance (dist) of an object to the ground due to the gravity (g), the…
A: Note: The Program is written based on the requirement with g = 8.9. But the sample output is based…
Q: Brittany wants to identify employees who are eligible to take a CPR course at the clubs' expense.…
A: Answer :
Q: 4. To qualify for a particular scholarship, a student must have an overall grade point average of…
A: Student gets scholarship when overallGPA is greater than 3.0 and scienceGPA is greater than 3.2
Q: fice of plane 1000$ by default, but discounts are applied to it based on different criteria. 1-…
A: As per the given question, Case 1: If the person is student, then the student gets 20%discount. Case…
Q: Create the following variables: Gender (e.g. male or female) Age (e.g. 0, 1, 2, etc.) Handedness…
A: Note: Answering the first three subparts and in python as no language is mentioned. Task : Create…
Q: Use the IF function to calculate the down payment starting in H11. If type = Finance, then the down…
A: In the given question , The values of the column : "Down Payment" have to be evaluated based on the…
Q: Question 9 Electrical resistors are said to be connected "in series" if the same current passes…
A: Note :- You have not mention the language of program, so i'm answering your question in C++. Your…
Q: Question 1: Ask user to enter age, sex ( M or F ), marital status ( Y or N ) and then using…
A: I have provided JAVA CODE along with CODE SCREENSHOT and also provided OUTPUT…
Q: In cell B32, create a formula that multiplies the value of cell B31 (Charlie’s gross monthly…
A: In cell B32, create a formula that multiplies the value of cell B31 (Charlie’s gross monthly…
Q: The operator that returns the remainder of a division between A and B A/B A/=B A%B A |= B
A: correct answer is A%B
Q: To be eligible for the leadership training program offered by the office, a student must have at…
A: As Given, we need to create a function that will return "Yes", if at least one of the criteria is…
Q: Write a function, named qualityPoints (Note: only a function), that receives a student’s average…
A: Note : Since the programming language is not mentioned, I have done the code in python. We can check…
Q: Brittany wants to identify employees who are eligible to take a CPR course at the clubs' expense.…
A: Solution: Given: Brittany wants to identify employees who are eligible to take a CPR course at the…
Q: CHALLENGE 3.1.2: Reading multiple data types. ACTIVITY Type two statements. The first reads user…
A: Coded using Python 3.
Q: Input age from user and check if user eligible for vaccination or not. eligible if age>=18. In C++.…
A: Take input the age and use if condition to check if age>=18 or not. If age>=18 then print that…
Q: To be eligible for the leadership training program offered by the office, a student must have at…
A: Explanation: The IF-function authorizes the user to compare two values in a logical-manner. If the…
Q: 20. An employee in a company gets special allowance based on employee category. Input his basic…
A: "Since you have not mention any programming language, So we will write our program in C language."…
Q: LA program that continuously accepts policy holders' data and displays the data for any policy…
A: f. start declration num policynum string fname string lname num age num pyear num pdate num pmoth…
Q: Fortune Enterprises has two categories of staff; fulltime staff and parttime staff. Regardless of…
A: I have implemented the given requirements in C language as per specification. Comments are mentioned…
Q: b. if (score > 25): level 4 score result 19 elif (score >= 15): level 3 25 11 elif (score > 10):…
A: Please find the answer below :
Q: A customer want to buy five items. He has only 220.0 OMR with him. The price of the products are…
A: Given: Table is given with item name and price (OMR) as columns. Each item has some price. Goal: We…
Q: In C++ A carpet company has determined that every 50 square feet of floor coverage will require 6…
A: #include<iostream>using namespace std; bool inputValidate(double);void getInfo(double&,…
Q: Trucks take up more space on the road and are slowed down more by hills and steep inclines. Each…
A: Start. Initialize the variable. Perform the operations. Print the result. Exit.
Q: Computer Science Write a code to take input as course name and generate absent report for all…
A: As no programming language name is mentioned I am doing this using java. Written code: import…
Q: Given a box of balls having 20 balls and each ball is numbered in the range 1-100 randomly. Write a…
A: rand() - This function returns a pseudo-random integral number in the range between 0 and RAND_MAX.…
Q: SOLVE IN C# Canada Government has announced 250 immigration visa lottery for third world countries.…
A: Lets analyze what information is provided to us and what is expected out of it. Programming language…
Step by step
Solved in 2 steps
- P1 - Loan Payment Schedule Main Street Bank is offering an annual interest rate discount based on the client’s credit score. The discount for each credit score level is provided in the table below. The lowest credit score is 300 while the highest credit score is 850. For example, the new interest rate for a client with a credit score of 755 and a current interest rate of 4.25% would be 4.25 – 0.75 = 3.50% interest rate Credit Score Rating Interest Rate Discount 300 - 579 Very Poor 0.00 580 – 669 Fair 0.25 670 - 739 Good 0.50 740 - 799 Very Good 0.75 800 - 850 Exceptional 1.00 Use modular programming concepts Create a program that includes a WHILE loop to generate a payment schedule for loans that are paid in equal monthly payments Input the loan number and retrieve required loan account from MS_LOANS table Output is shown below Monthly interest is calculated by dividing the yearly interest rate by 12 to get a monthly interest…The company « Super discounted used cars inc.» pays their employees according to this chart: 250$ per months plus 50$ per car sold. If the salesman sells more than 10 cars, the employee receives a bonus of 5% of the total of his sales, in addition to his regular salary. Each month, the owner sits in front of the computer, and enters the following information: The name of the employee, the number of cars sold, as well as the total of all the sales for the month. algorithm that will calculate the salary of an employee for the month, and then display on the screen, his name, total cars sold, base salary, bonus if applicable and entire salary. Each input must be validated.and make trace memory screenThe company « Super discounted used cars inc.» pays their employees according to this chart: 250$ per months plus 50$ per car sold. If the salesman sells more than 10 cars, the employee receives a bonus of 5% of the total of his sales, in addition to his regular salary. Each month, the owner sits in front of the computer, and enters the following information: The name of the employee, the number of cars sold, as well as the total of all the sales for the month. Write an algorithm that will calculate the salary of an employee for the month, and then display on the screen, his name, total cars sold, base salary, bonus if applicable and entire salary.
- in a shop ,there are 10 employee and 20 kinds of goods,goods id between 1-20 EMPLOYEE id first name last name gender 10001, 'Tom', 'Brown', 'F'10002, 'Elizabeth', 'Tremblay', 'F'10003, 'Gladys', 'Julie', 'F10004, 'John', 'Taylor', 'M10005, 'Amelia', 'Smith'10006, 'Logan', 'Katherine'10007, 'Leo', 'Brown'10007, 'Lem', 'Thompson'10009, 'Tom' 'Smith'10010, 'Emma', 'Campbell' ------------ and I want to add a name library in it ,like this how could i create a HTML file ,with will randomly create customers with these employee . there is a start button on the page . press "start "bottom ,and it will It will randomly match 10 items, customers, and goods, display goods id ,customername and gender ,employer name , id and gender . how to do such a page ?Problem 2 Concert Tickets 8 points There are three tickets for a concert. The VIP tickets cost $120, premium tickets cost $80, and regular tickets cost $40. Prompt the user how many tickets of each category he would like. Then print an invoice with overview of the order and total price. Include a sales tax of 9.25%. How many tic kets would you like to order? VIP Tickets ($120): 0 Premium Tickets ($80) : 4 Regular Tickets ($40): 2 Invoice: $120 x 0= $ 0.00 $ 80 X 4 = $320.00 $ 40 x 2 = $ 80.00 9.25% $ 37.00 VIP: Premium: Regular: Sales Tax: Total Price: $437.00Q7:The electricity accounts of residents in a very small town are calculated as follows: if 500 units or less are used the cost is 2 cents per unit; > if more than 500, but not more than 1000 units are used, the cost is $10 for the first 500 units, and then 5 cents for every unit in excess of 500; > if more than 1000 units are used, the cost is $35 for the first 1000 units plus 10 cents for every unit in excess of 1000; in addition, a basic service fee of $5 is charged, no matter how much electricity is used. Q8:Write a program which enters the following five consumptions into a vector, and uses a for loop to calculate and display the total charge for each one: 200, 500, 700, 1000, 1500. (Answers: $9 $15, $25, $40, $90)
- Q5) Develop a limited entry decision table for the following problem for a book store company. The company offers sales using their mobile app, website, or phone sales. The company provides discount based on order method. The details of actions are as follows: If the customer uses mobile app to make an order and the order is more than $100, the discount is %10. If the customer uses mobile app to make an order and the order is less than or equals to $100, the discount is %7. If the customer uses the website to make an order and the order is more than $200, the discount is %10. If the customer uses the website to make an order and the order is less than or equals to $200, the discount is %7. If the customer uses phone to make an order and the order is more than $500, the discount is %10. If the customer uses phone to make an order and the order is less than or equals to $500, the discount is %7.Problem: Read your name, distance to college, cgpa and allowance. Find new allowance based on the following conditions: If your cgpa is more than 3.5 and distance is more than or equal to 50 You get double the allowance. If your cgpa is more than 3.0 and distance is more than or equal to 50 You get 1.5 times of allowance Otherwise No change is allowance. Print your name, cgpa, distance to college and new allowance.A software company sells a package that retails for $100. Quantity discounts are given according to the following tables. Quantity 10-19 Discount 20% 30% 40% 50% 20-49 50-99 100 or more Asks for the number of units sold and computes the total cost of the purchase.
- Primary U.S. interstate highways are numbered 1-99. Odd numbers (like the 5 or 95) go north/south, and evens (like the 10 or 90) go east/west. Auxiliary highways are numbered 100-999, and service the primary highway indicated by the rightmost two digits. Thus, I-405 services I-5, and I-290 services I-90. Note: 200 is not a valid auxiliary highway because 00 is not a valid primary highway number. Given a highway number, indicate whether it is a primary or auxiliary highway. If auxiliary, indicate what primary highway it serves. Also indicate if the (primary) highway runs north/south or east/west.Primary U.S. interstate highways are numbered 1-99. Odd numbers (like the 5 or 95) go north/south, and evens (like the 10 or 90) go east/west. Auxiliary highways are numbered 100-999, and service the primary highway indicated by the rightmost two digits. Thus, I-405 services I-5, and I-290 services I-90. Note: 200 is not a valid auxiliary highway because 00 is not a valid primary highway number. Given a highway number, indicate whether it is a primary or auxiliary highway. If auxiliary, indicate what primary highway it serves. Also indicate if the (primary) highway runs north/south or east/west. Ex: If the input is: 90 the output is: I-90 is primary, going east/west. Ex: If the input is: 290 the output is: I-290 is auxiliary, serving I-90, going east/west. Ex: If the input is: 0 the output is: 0 is not a valid interstate highway number. Ex: If the input is: 200 the output is: 200 is not a valid interstate highway number.Five students in college ; Mike, Abby, James, Anne, and Ali are preparing for an upcoming running competition organized by Sports Development Center in UOL. At every alternate day. They practice running in a football stadium for a certain distance and write down their time and distance covered. At the end of the week, they would like to know the number of meters runs each day, the total distance for each week, the total time they achieved as well as the furthest distance achieved. Write a c++ program that reads the data recorded by the five runners that contain the following: An array to store the names of the five runners and a two-dimensional array of five rows and eight columns of type double to store the distance and time for each runner. A function named read_data() to read data from the user and display the runner’s names and the distance (in meters) covered and the time achieved each working day. Runner’s name should be stored in a one-dimensional array of type string A…