Black Gold Oil Company accepts job trainees with pay. They want you to create a simple Payroll Application for the trainees. The program will accept trainee type, number of months, and number of days absent. If the trainee type is "Junior", then monthly rate is 50 OMR and absence fee is 2 OMR. Otherwise, monthly rate is 100 OMR and absence fee is 5 OMR. Gross pay is monthly rate multiplied by number of months. Deduction is absence fee multiplied by number of days absent. Partial pay is the difference of gross pay and deduction. If partial pay is greater than 300 OMR, bonus is 5% of the partial pay, otherwise bonus is 3% of the partial pay. Net pay is partial pay plus bonus. Display gross pay and net pay.
Q: If you have the following function in Mat lab, the title of the function can be placed using the…
A: Here, X and Y lines and graph is given.
Q: TOMBALA KARTLARI HAZIRLANIYOR=BINGO CARDS ARE PREPARIN Kart No= Card. Number TOMBALA KARTLARI…
A: def generate_card(): card = {} _min = 1 _max = 15 for letter in 'BINGO':…
Q: sing C#, write an application that computes the area of a circle, rectangle, and cylinder. Display a…
A: According to the Question below the Solution: Output:
Q: 1 original_total = "5.45" 2 donation = "e.55" 3 4 #You may modify the lines of code above, but don't…
A: Given data, Write some code that will print the customer's total and how much they donated. This…
Q: Create a calculator.py and ask user for two numbers and an operator (+.-J. ) and output the result.…
A: According to the Question below the Solution: Program Output:
Q: Write a program that allows a player to play Rock, Paper, Scissors. In this version, if there is a…
A: Find the required code in python as language not mentioned given as below and output :
Q: write a python application that can verify that the email has the corect Syntax. For example, that…
A: def isValid(Email): if Email.find(" ") != -1: return False if Email.find("@") == -1:…
Q: Write a program that prompts a user to input the city name, distance, and travel time for three…
A: CODE: #include <stdio.h>#include <string.h> typedef struct timeType //1st type def{…
Q: You have just started a sales job in adepartment store. Your pay consists of a base salary and a…
A: Take a variable for the commission. Take a variable for the number of sales. Use the if-else…
Q: Modify your working program from Assignment #19 so that when the user enters data into the Selling…
A: Description : Entry widgets are the basic widgets of Tkinter used to get input, for example text…
Q: Modify your working program from Assignment #19 so that when the user enters data into the Selling…
A: Note: Follow proper indentation to get output. Basic Methods used in Program: mainloop(): mainloop…
Q: , I get an invalid syntax espana['R_score'] = espana["Recency"].apply(lambda x : (1 if x <…
A: It is defined as an interpreted, object-oriented, high-level programming language with dynamic…
Q: With the statement, int option=1; switch(option){ int a=1; case 1: printf("1"); while(a<=10){ case…
A: Given code: int option = 1; switch (option) { case1: printf("1"); case2: printf("2"); case3:…
Q: ost. For example, Your Student ID= 011193127. So, last_three_digits_of_your_ nclude = a, b; t…
A: Answer (1):- Manually tracing the given code:- Here, We will start tracing the whole code from the…
Q: Write an application named EnterUppercaseLetters that asks the user to type an uppercase letter from…
A: Here, Code instruction is given.
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: K Chapter 4 Project - new Fall 10-21-20... Project Name: Chpt4_Project Class Name: Chpt4_Project…
A: Java program that accepts names of members on a tug of war team, computes their total weight, and…
Q: Three-letter acronyms are common in the business world. For example, in Java you use the IDE…
A: import java.util.*; public class ThreeLetterAcronym{ public static void main(String[] args) {…
Q: uppose, you are working in a company ‘X’ where your job is to calculate the profit based on their…
A: Note:- I am taking the Python part. Program: class FinalQ: def print(self,array,idx):…
Q: Bob employs a painting company that wants to use your services to help create an invoice generating…
A: An algorithm is created during the early stage of a program design. It helps in understanding how a…
Q: IN C# (reject if you can't do C# please): Write an application that runs 1,000,000 games of craps…
A: Answer has been explained below:-
Q: Write an application that prompts the user for two integers and then prompts the user to enter an…
A: Here is the program screenshot in java:
Q: In the code given below, the values of installment1.dueDate and installment2.dueDate is getting…
A: Debug the given JavaScript code such that there is a difference of 5 months in the dueDate of the…
Q: A company has two categories of solar system installation, the small system and the large system.…
A: Find Your Code Below
Q: Write a C++ program for STC company , that asks the user to enter his "Neqaty" points and his…
A: 1)Enter your Neqaty points 2)Enter your invoice value 3)using else if ladder based on the Neqaty…
Q: This C# program assignment requires that you write and call two programmer defined methods as…
A: As the label is not supported in online compilers, we are writing the c# code with given 2…
Q: In the following expression, the variable truckWeight has the value 70000 and the variable…
A: Explanation: here truckweight < weightLimit actually trying to compare 70000 < 80000. which is…
Q: You are playing a game that has two dice – one die has 6 sides numbered 1 through 6 and the second…
A: In the program below, I have generated random numbers to simulate the dices but you can modify the…
Q: In this question, you will need to create a design for a program that helps the user compare the…
A: The inputs will be details of both companies and also the distance that user has to be travelled
Q: a) A prime number is an integer greater than 1 that is evenly divisible by only 1 and itself. For…
A: """PrimeNumber application that prompts the user for a number and thendisplays a message indicating…
Q: public class IncreasedProduction { publicstaticvoidmain (String[] args) { // Write your code here }…
A: Define package java.text.DecimalFormat for formatting output in java Define class…
Q: Write a C++ application that will allow the user to order the Pizza. For the pizza, it could be…
A: Given : topping price are given vegetarian topping=0.25 meat topping=0.50…
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: The Freemont Automobile Factory has discovered that the longer a worker has been on the job, the…
A: After fixing the errors, I have provided JAVA CODE along with CODE SCREENSHOT and OUTPUT…
Q: With multine text, you can do all of the following, except
A: We cannot insert an image.
Q: write a program in c++ in which A Paint Company has asked you to write an application that…
A: Note: Formula for calculating the area of a room is considered as length * width. area = length *…
Q: QUESTION 8 Kebabo Internet Services offers customers with 600 weekday minutes for a flat rate of…
A: ANSWER:-
Q: As part of the discussion forum for this unit, you will be solving a programming problem from the…
A: Modulus operator(%) is used to remainder of division.
Q: Question 3 Write an application that prints each number between 1 and 100 that are divisible by 5 or…
A: Code: public class Main{ public static void main(String[] args) { //declaring required variables…
Q: Programming Challenge (Upload the .cpp file) A long-distance carrier charges the following rates for…
A: Solution : ---- as the requirement specification is given in the problem statement , here is the C++…
Q: Write the Java code to calculate your 'Term GPA (TGPA)'. TGPA is calculated using following formula,…
A: Code: import java.util.*;public class Demo { public static void main(String args[]) {…
Q: a- Write a method that calculates and returns the distance between two points. The method takes four…
A: Only the first question will be answered. Java program: import java.util.Scanner; public class Main…
Q: 3. Which among the following shows a valid use of the Direction enumeration as a parameter to the…
A: Ans - b) moveCharacter(x: 0, y: 0, facing: Direction.north) option (b) would be correct.
Q: You are developing a restaurant recommender program. This is a snippet of your code. Pick all of the…
A: Given: You are Developing a restaurant recommender program. this is the snippet of your code . Pick…
Q: Write a program to: Prompt the user for each employee’s id (an integer value) and the sales…
A: C++ Program Code: #include<iostream>#include<iomanip>#define MAX 20using namespace std;…
Q: In your programming project, you are expected to realize the game of chance called Bingo as a C ++…
A: In your programming project, you are expected to realize the game of chance called Bingo as a C ++…
Q: you are required to ask the user to enter three words and save these words to a string, what C++…
A: Since you have asked multiple questions, we will solve the first question for you. If you want any…
Q: bob employs a painting company that wants to use your services to help create an invoice generating…
A: Display "Please enter the working hours in week" Declare a variable workingHours Input the number of…
Step by step
Solved in 2 steps with 1 images
- When I type the following, I get an invalid syntax espana['R_score'] = espana["Recency"].apply(lambda x : (1 if x < q["Recency"][0.30]) elif (2 if x < q["Recency"][0.55]) else 3) All I'm trying to do is have a column such that for some column ("Recency") before it, it returns a number (either 3,2,or 1) for each row depending on whether the number is below the .30 percentile, above the .55 percentile and anything above that is given a 1 What's wrong with code? Also do I need to explicitly state in the second case that I also need to be above the the .30 percentile or will this take care of itself? Note, for clarification, q["Recency"][0.30] just picks off the "Recency row column corresponding to the index .30 of a table I created (using the quantile function)You are working for a lumber company, and your employer would like a program that calculates the cost of lumber for an order. The company sells pine, fir, cedar, maple, and oak lumber. Lumber is priced by board feet. One board foot equals one square foot that is one inch thick. Theprice per board foot is given in the following table: Pine 0.89Fir 1.09Cedar 2.26 Maple 4.50Oak 3.10 The lumber is sold in different dimensions (specified in inches of width and height, and feet of length) that need to be converted to board feet. For example, a 2 x 4 x 8 piece is 2 inches wide, 4 inches high, and 8 feet long, and is equivalent to 5.333 board feet (2 * 4 * 8 = 64, which when divided by 12 = 5.333 board feet). An entry from the user will be in the form of a letter and four integer numbers. The integers are the number of pieces, width, height, and length. The letter will be one of P, F, C, M, O (corresponding to the five kinds of wood) or T, meaning total. When the letter is T, there are no…In this problem you will calculate the area of a house and compare it with another house to see which one is bigger. House1 vs. House2 We need to have a struct that has width and length in it. This struct represents a rectangular room. From room we need to define: Bathroom, Livingroom, Bedroom and Kitchen. An example of the struct and Bathroom, Livingroom, Bedroom and Kitchen is shown below. Also, it is shown how to set value of Bathroom Length and Width- values are assumed in feet. House area is in Square Feet (sqrft) and can be calculated by adding all room areas together in sqrft. Program example: Struct room { Length; Width: }; Struct room Bathroom1 , Livingroom1, Kitchen1, Bedroom1; Bathroom1.Length=10; Bathroom1.Width=7; Now Given: House1 is comprised of: Bedroom1 (L=15,W=10) Bathroom1 (L=10,W=7) Kitchen1(L=15, W= 10) Livingroom1 (L=25,W=20) House2 is comprised of: Bedroom2_1 (L=10, W=10) Bedroom2_2(L=10, W=12) Kitchen2(L=16,W=10) Livingroom2 (L=15,W=12) Calculate each House area…
- You have just started a sales job in adepartment store. Your pay consists of a base salary and a commission. The base salaryis $5,000. The scheme shown below is used to determine the commission rate. Note that this is a graduated rate. The rate for the first $5,000 is at 6%, the next$5000 is at 8%, and the rest is at 10%. If your sales amounts to $25,000, the commissionis 5,000 * 6% + 5,000 * 8% + 15,000 * 10% = 2,200. Your goal is toearn $30,000 a year. Write a program to find the minimum sales you have to generatein order to make $30,000.Write a code for craps game. Craps is a dice game in which the players make wagerson the outcome of the roll, or a series of rolls, of a pair of dice.The rules of the dice game craps are as follows:You roll two dice. Each die has six faces, which contain one, two, three, four, five and six spots,respectively. After the dice have come to rest, the sum of the spots on the two upward faces iscalculated. If the sum is 7 or 11 on the first throw, you win and play is over. If the sum is 2, 3or 12 on the first throw you lose and play is over. If the sum is 4, 5, 6, 8, 9 or 10 on the firstthrow, that sum becomes your “point.” To win, you must continue rolling the dice until you“make your point” (i.e., roll that same point value). You lose by rolling a 7 before making yourpoint(in python)When you use a mortgage to purchase a home, the lending institution effectively owns the home. You buy back part ownership in the home with each monthly payment. The part you have bought back is your equity in the home. If the mortgage amount is P dollars, the monthly interest rate is r as a decimal, and the term of the mortgage is t months, then your equity after k payments is E(k) = P((1 + r)k − 1) (1 + r)t − 1 dollars. In this exercise, assume that the mortgage amount is $200,000, the APR is 6% so r = .06/12 and the term of the loan is 30 years (360 months). (a) Find a formula for the equity. (b) Make a graph of the equity over 360 months, the term of the loan. (c) Does the graph show that you have half-ownership in the home halfway through the term of the mortgage? Halfway through the term of the mortgage corresponds to k1 = _______ payments. From the graph, we see that E(k1) is ________ half of the mortgage amount, so we _______ have half-ownership in the home…
- When you borrow money to buy a house, a car, or for some other purpose, you repay the loan by making periodic payments over a certain period of time. Of course, the lending company will charge interest on the loan. Every periodic payment consists of the interest on the loan and the payment toward the principal amount. To be specific, suppose that you borrow $1,000 at an interest rate of 7.2% per year and the payments are monthly. Suppose that your monthly payment is $25. Now, the interest is 7.2% per year and the payments are monthly, so the interest rate per month is 7.2/12 = 0.6%. The first months interest on $1,000 is 1000 0.006 = 6. Because the payment is $25 and the interest for the first month is $6, the payment toward the principal amount is 25 6 = 19. This means after making the first payment, the loan amount is 1,000 19 = 981. For the second payment, the interest is calculated on $981. So the interest for the second month is 981 0.006 = 5.886, that is, approximately $5.89. This implies that the payment toward the principal is 25 5.89 = 19.11 and the remaining balance after the second payment is 981 19.11 = 961.89. This process is repeated until the loan is paid. Write a program that accepts as input the loan amount, the interest rate per year, and the monthly payment. (Enter the interest rate as a percentage. For example, if the interest rate is 7.2% per year, then enter 7.2.) The program then outputs the number of months it would take to repay the loan. (Note that if the monthly payment is less than the first months interest, then after each payment, the loan amount will increase. In this case, the program must warn the borrower that the monthly payment is too low, and with this monthly payment, the loan amount could not be repaid.)For this assignment, write a program named PizzaPrices that prompts the user to make a choice for a pizza size - S,M, L, or X - and the number of pizza the user wants to order. The price for different size pizzas are $6.99, $8.99, $12.5, and $15.0 respectively. There is also a discount based on the number of pizza ordered: no discount for one pizza, 10% discount for 2 pizzas, 15% discount for 3-5 pizzas, and 20% for more than 5 pizzas. Display a full accounting of the transaction, similar to the sample screenshot. Please make sure you use parallel arrays and range match in your solution.bob employs a painting company that wants to use your services to help create an invoice generating system. the painters submit an invoice weekly. they charges $30 per hour worked. they also charge tax -15%. bob likes to see an invoice that display all the information- number of hours, the charge per hours, the total Before tax and total After tax. since this is an invoice, we also need to display the name of the company (painting Xperts) at the top of the invoice. display all of the information on the screen. Using Pseudocode, develop an algorithm for this problem.
- You are part of a team writing a system which keeps track of envelopes people sendthrough the postal system. The process begins when a person gives the envelope to apost office, at which point a barcode (containing all necessary information) is generated,and the envelope is labelled. Then, it is possible to keep track of the envelope betweendifferent cities/offices. The software has the following functions:i. generateBarcode()ii. createDatabaseRecord()iii. updateDatabaseRecord()iv. decodeBarcodeAndUpdateEnvelopPosition()v. getEnvelopPosition() (a) State and describe TWO types of beneficial module couplings that may be present inthis piece of software. (b) For each function, pick an example of possible module cohesion and explain the typeof that module cohesion. (c) We know that function updateDatabaseRecord() alters the actions of functioncreateDatabaseRecord(). State and describe the type of module coupling that exists inthe code containing these two functions.Jeff and Gern run a furniture company specializing in tables and chairs. To save time, when a new order comes in, a special shorthand is used to describe the order. The rules for their shorthand are as follows • The first character is "T" for a set of tables, or "C" for a set of chairs. If the order includes both tables and chairs, the order shorthand begins with "TC" • Next they indicate the number of tables or chairs for the order. If the order includes both tables and chairs, they'll write the number of table first, then the number of chairs, separated by a dash. An order comes in for three standard tables constructed using Oakwood. What would the order shorthand be for this order?Write a VB.NET program that will show the average family size by zipping based on data collected. The user will provide the zip code and their household family size. The program should be able to receive as many entries throughout the day as possible through a textbox At any time, the application should be able to display the mean family size per zip code collected, the median family size per zip code collected, the mean family size of all zip codes collected, the median family size of all zip codes collected. For this problem, you will have to use Array.Sort and ReDim The zip codes that can be collected through the combobox are: 45202 45203 45204 45205 45206