SalaryStmt.py Write a python program that accepts name of an employee and employee's yearly sales of last five years. The data should be collected for n employees. The value of n should also be accepted as input. All amounts should be displayed with three decimal places. The output should be displayed as a table containing the Employee name, Average Sales and Bonus. The program must define and use a function with Total Sales as a parameter and should calculate the Average Sales and Bonus for each employee. Bonus must be calculated based on the following table: Average Sales (AS) Bonus c000
Q: 6.33 LAB: Toll calculation Toll roads have different fees based on the time of day and on weekends.…
A: Solution: Given,
Q: Create a function which counts how many lone 1s appear in a given number. Lone means the number…
A: Input - Integer Output - count loon ones In this problem, we need to design the code in the JS…
Q: please code in python. Each problem will be placed in its own function. You will have a main…
A: The problem is based on the basics of functions in python programming language.
Q: SalaryStmt.py Write a python program that accepts name of an employee and employee's yearly sales of…
A: Code: SalaryStmt.py numbers=int(input("Please enter no of Employee…
Q: nt fact(int x); BIUS AV Slides Drawing Editi Aa AA %3D roid main() Font Paragraph int result;…
A: According to the Question below the Solution: Output:
Q: ython!!!!! Create a function, showEmployment. It will have three arguments. 1. Employees:…
A: Python is the code in which that can emphasis the significant that has the object-oriented…
Q: Ibra Bakery wants you to create a simple python program for calculating cashback offers on cakes for…
A: In step 2, you will get python code. In step 3, you can see the sample output.
Q: The formula for converting a temperature from Fahrenheit to Celsius is C=5/9(F-32) where F is the…
A: Python program to convert temperature in Fahrenheit to Celsius
Q: python Write a program that uses a custom function to return the cost of purchasing an item,…
A: Program Approach- Define the custom function named Calculate_tax() with parameters…
Q: A number is said to be Disarium if the sum of its digits raised to their respective positions is the…
A: Algorithm - Take input from the user. Now use the below logic - logic - for val in n:…
Q: About beginner python programming: - Make a function in Python called SIGA, which receives a tuple…
A: Coded using Python 3.
Q: n this program, your task is to calculate average of grades and then display the final grade. Your…
A: According to the Question below the Solution: Output:
Q: (a) Write a function get_month() that asks the user for a month, using the prompt string "Please…
A: The function is the block of the organized code which is used to perform the specified task.
Q: Medium Speed (meters per sec.) Carbon dioxide 258.0 Air 331.5 Helium 972.0 Hydrogen 1270.0 Write a…
A: PROGRAM EXPLANATION: - Create and initialize string and double [] with values of different medium s…
Q: SalaryStmt.py Write a python program that accepts name of an employee and employee's yearly sales of…
A: CODE TO COPY:- numbers=int(input("Please enter no of Employee "))names=[]average=[]bonus=[]def…
Q: When analyzing data sets, such as data for human heights or for human weights, a common step is to…
A: As no programming language is mentioned, it is solved using basic C++
Q: Q1. Write a php function that accepts the salary of an employee then calculates and prints his net…
A: Hello, here is the completed code you wanted. Every important statement is explained using comments.…
Q: Create a function that takes a number and return a string with the number in expanded notation (AKA…
A: As the programming language is not mentioned here, we are using JAVA The code and output is given…
Q: Modify Program 7.4 so the value of triangularNumber is returned by the calculateTriangularNumber()…
A:
Q: python Write a function called CalculateTip() which takes 2 parameters: the monetary amount of a…
A: def CalculateTip(bill,tip) : total=bill*(1+(tip/100)) return total print("Welcome to Tip…
Q: Write it in python. Check the example properly. You have been hired as an app developer for the…
A: Here, Code instruction is given.
Q: Create a function which counts how many lone 1s appear in a given number. Lone means the number…
A: Input - Integer Output - count of lone ones In this problem, we need to design the code in the JS…
Q: This function should reverse the words in a string. A word can be considered to be any characters,…
A: Function: void reverseWords(char *s){ int len=strlen(s); int j=0; for(int i=0;i<len;i++){…
Q: Program 2: Write a Python program to accept employee name and basic salary of n number of employees…
A: def calculate_allowance(basic_salary): """returns allowance value for given basci_salary"""…
Q: SalaryStmt.py Write a python program that accepts name of an employee and employee's yearly sales of…
A: Note: we are only allowed to solve one question in one post. I am solving the first on here. To get…
Q: PS: Do not use regular expressions or built in function. Please answer it according to the…
A: Python code: def operateList(A, n): even = [] odd = [] for i in range(n): if ((i % 2) == 0):…
Q: *Make sure to include only the one function in your file and please explain where the variables come…
A: Program code: #define a function to get max sumdef get_highest_sum(grid): tMax = 0; for row in…
Q: • Write a function named moveElements with the following header void moveElements (char* str) The…
A: Below is the required C program: - Approach: - Include the header file. Declare the global…
Q: write a program is c++ using function loading make a list of five disease and their respective…
A: Program approach:- Using the necessary header file. Using the standard namespace I/O. Define the…
Q: The use ofcomputers in education is referred to as computer-assisted instruction (CAI). Write a…
A: #include <iostream>using namespace std;int ResultChecking(int a, int b){ while(true)…
Q: Write a python program. This program will be a working hangman game. our hangman game should be…
A: Q: Write a python program. This program will be a working hangman game. our hangman game should be…
Q: The formula for converting a temperature from Fahrenheit to Celsius is C = 5 (F - 32) where F is the…
A: Source Code: #include <iostream>#include <iomanip>using namespace std;double…
Q: Toll roads have different fees based on the time of day and on weekends. Write a function…
A: Here I have created a function named calc_toll(). In this function, I have used a nested if-else…
Q: In Python Assume that you have a data structure of the following: A list of hockey players. Each…
A: Required: Assume that you have a data structure of the following: A list of hockey players. Each…
Q: Write a function in python named calculate-attendance. This function gets a single list containing…
A: The solution involves use of functions, dictionaries. NOTE:Number of students are to be entered and…
Q: Write a python program that accepts name of an employee and employee's yearly sales of last five…
A: Required:
Q: Create a void function and a parameter that will display “Welcome to Ibra bakery ”. example: Welcome…
A:
Q: The distance between two points pA (XA,YA) and pB (XB,YB) is calculated as follows Distance =…
A: The program is written in C. Please find the solution and output in the following steps.
Q: Write in Python Write a function named max that accepts two float values as arguments and returns…
A: """Program that defines function max that accepts two float values as argumentsand returns the value…
Q: Write a python program that accepts name of an employee and employee's yearly sales of last five…
A: Algorithm : main function Step 1 : asking for the number of employees n. Step 2 : declaring all the…
Q: Create a function that takes a number and return a string with the number in expanded notation (AKA…
A: Algorithm - Take input from user. Now you have expand the given integer and display the expanded…
Q: 4. (Prime Numbers) An integer is said to be prime if it is divisible by only 1 and itself. For…
A: Below is the required C++ program: - Approach: - Importing the header file and the namespace.…
Q: Phython: Create a function so that when giving you a month it tells you the season of that month,…
A: 1) Below is Program that create a function so that when giving you a month it tells you the season…
Q: This code read the variables n and m then calculate p using Function. p = n! / (n-m)!* m! where…
A: The given program The solution of the same is given below
Q: Toll roads have different fees based on the time of day and on weekends. Write a function…
A: Given Toll roads have different fees based on the time of day and on weekends. Write a function…
Q: struct Quaternion { float x, y, z, w; }; struct AABB { Vec3 min, max; };
A: Using c++ write the function to find if target is visible to the camera, you may create and use…
Q: Create a function that takes in top and bottom. You should return a random number between top and…
A: C++ used to answer this question
Q: In this program, your task is to calculate average of grades and then display the final grade. Your…
A: NOTE: Since the programming language is not mentioned. Therefore answering the question in Python…
Q: Program 2: Write a Python program to accept employee name and basic salary of n number of employees…
A: # Method for Calcualting Allowanancedef calculate_allowance(basic_salary): """returns allowance…
Step by step
Solved in 2 steps with 2 images
- Question 3 The results from the mayor's race have been reported by each precinct as follows: Table 2: Results of mayor's race Precinct Candidate A Candidate B Candidate C Candidate D 1 192 48 206 37 147 90 312 21 186 12 121 38 4 114 21 408 39 267 13 382 29 Write a program to do the following: (a) Display the table with appropriate labels for the rows and columns. (b) Compute and display the toral number of votes received for each precinct. (c) The program displays the highest votes among the precinct. (d) The program displays the total number of votes for Candidate A.Hospital Charges In Python - Write a program that computes and displays the charges for a patient’s hospital stay. First,the program should ask if the patient was admitted as an in-patient or an out-patient. If thepatient was an in-patient the following data should be entered:• The number of days spent in the hospital• The daily rate• Charges for hospital services (lab tests, etc.)• Hospital medication charges.If the patient was an out-patient the following data should be entered:• Charges for hospital services (lab tests, etc.)• Hospital medication charges.Use a single, separate function to validate that no input is less than zero. If it is, it shouldbe re-entered before being returned.Once the required data has been input and validated, the program should use twoseparate functions to calculate the total charges. One of the functions should acceptarguments for the in-patient data, while the other function accepts arguments for out-patient data. Both functions should return the total…Code in Python: Your hangman game should be broken into appropriate functions, contain a main function, anddo the following:1. The program should randomly select a word from the list: kangaroo, capybara, wombat,koala, wallaby, quokka, platypus, dingo, kookaburra2. Repeatedly prompt the user to guess a letter.3. Validate the input4. All guessed letters should be stored in a two-dimensional list (from problem 2). If thenumber of times a letter has been guessed is greater than 1, then the user should benotified that they have already guessed this letter and prompted to guess a differentletter. The hangman won’t update (grow) if the same incorrect letter is guessed multipletimes.5. The word should be printed where all correctly guessed letters are revealed, and allunguessed letters are replaced with underscores6. A hangman reflecting the number of incorrect guesses should be printed7. If all the letters in the word are guessed, then the user wins. If the hangman / number ofincorrect…
- Student Registration System is an approach that enables colleges and universities to better supervise a growing number of enrollments. Create a menu system for registration program in c++ that asking an input based on the choices below. If the input is A then the program will ask for name and program (course) store in two arrays, if B then the program will display all the data stored on the array and the program will be terminated only if the input is E. Apply also function on the program: Menu System – 1st Way of Function Add Student – 4th Way of Function Example: REGISTRATION SYSTEM: A - Add Student B - View ALL E - Exit Choose: A Name: John Lloyd Program: CpE REGISTRATION SYSTEM: A - Add Student B - View ALL E - Exit Choose: B Name Program…Student Registration System is an approach that enables colleges and universities to better supervise a growing number of enrollments. Create a menu system for registration program in c++ that asking an input based on the choices below. If the input is A then the program will ask for name and program (course) store in two arrays, if B then the program will display all the data stored on the array and the program will be terminated only if the input is E. Apply also function on the program: Menu System – 1st Way of Function Add Student – 4th Way of Function Example: REGISTRATION SYSTEM: A - Add Student B - View ALL E - Exit Choose: A Name: Sebastian Program: CE REGISTRATION SYSTEM: A - Add Student B - View ALL E - Exit Choose: B Name Program Carlo - CE Sevi - CE#Solve it with C programing Mr. X is a student of Computer Science. He is facing a problem and needs your help to solve it.The problem is, you will be given N integer numbers( 4<n<=100) which are arranged side by side (x1,x2,x3,x4,.....).Now you have to sort those items in ascending order. After doing this , your job is to print the items in a sorted way and find the median.[NB: when N is odd , Median= (N+1)/2; When N is even Median= (N/2)+1 ] Sample Input: 74 7 11 2 9 3 5Sample Output:2 3 4 5 7 9 115
- Write VBA CODE FOR THE FOLLOWING PROBLEM Problem: The Worksheet named Grades contains a place for students to record the grades they have received in their classes. Students put the number of each letter grade received in the B column. (For example, the worksheet currently shows that the student has taken 9 classes and made five As, one B, one C, one D, and one F as grades. You need to write a program that reads the grades from the worksheet and uses a function to calculate the student’s GPA. For this problem you can assume that all classes are worth the same number of credit hours. The function should send back the GPA to the calling procedure. The procedure will then put up a message box that gives the student their GPA and a message about their GPA, all in one message box. The message should be “You qualify for an internship” if the student has a GPA of at least 3.0. It should be “You’re in the danger zone” if the GPA is between 2.0 and 3.0. And it should be “You are on…In cengage mindtap The credit plan at TidBit Computer Store specifies a 10% down payment and an annual interest rate of 12%. Monthly payments are 5% of the listed purchase price, minus the down payment. Write a program that takes the purchase price as input. The program should display a table, with appropriate headers, of a payment schedule for the lifetime of the loan. Each row of the table should contain the following items: The month number (beginning with 1) The current total balance owed The interest owed for that month The amount of principal owed for that month The payment for that month The balance remaining after payment The amount of interest for a month is equal to balance × rate / 12. The amount of principal for a month is equal to the monthly payment minus the interest owed.Part3: Exercises Exercise 1: Write a Python program that inputs five positive integer numbers, finds their maximum and sort them in ascending order. Each number should be a distinct number (i.e. all numbers are different). Each number should be input and returned by a function named getValue(.) that receives a prompt message. A second function ascSortNumbers(..) should sort numbers and display them on screen in ascending order. A third function maxNumber(.) should receive five numbers as parameters and returns the maximum number to the function main..), which then prints the maximum number. Please input 5 numbers: 30 30 20 10 56 Invalid input, try again Please input 5 numbers: -9 67 20 10 97 Invalid input, try again Please input 5 numbers: 17 158 98 2 Sorted: 2 8 15 17 98 Maximum is: 98 Activate Window Go to Settings to activ Figure 1. Exercise 1 Sample Run.
- Vehicle Displacement You are given the velocity of shuttle traveling in a straight line as a series of data points. Write a program that computes the position (displacement) of the shuttle along this line at the time of the final data point The input is given vis standard input in the following format number of data points (0 < 65,535) on its own in • It pairs of data points, each on their own line, consisting of two integers separated by a ungle comma The first number represents the time in seconds (065535), and the second represents velocity in meters per second (4 v). Time is strictly increasing and velocity is constant between data points. The vehicle position and velocity both start at 0 May shuttles can drive in either direction, and in an added bit of realm the data points are speed-limited to about 25 mph in forward and 10 mph in reverse. However, in a reduced bit of realsm, the problem does imply that shuttles can change velocity instantaneously The output should be a single…Transcribed Image Text Develop a C++ code to computer the queries in X Y z format where you are given a list of size m. For computing queries, you have to perform the task to find the number which is occurring one after another in the sub-list [X Y] greater than or similar to z times. If there doesn't exist no number satisfying the given criteria then output “Not possible" other than that output the answer computed to the given queries. Test Case Result 4 1 2133 121Python Programming TasksQuestion 3Businesses some time market their contact no as: 111-GET-SONY. This technique makes easy for the customers to remember the brand name. To do so they use the alphabets that are printed on the numbers on dial pads of Tele/Mobile phones as follows: A, B, andC = 2D, E, and F = 3 G, H, and I = 4 J, K, and L = 5 M, N, and O = 6 P, Q, R, and S = 7 T, U, and V = 8 W, X, Y, and Z = 9. However, the telecom systems needs proper numbers for dialing. Create anapplicationthatshould prompt the user to enterthe no in specified format such as XXX-XXX-XXXXand then translates the number to their numeric equivalent. Input: 111-GET-SONYOutput: 111-438-7669 Question 4Write a program imitating a website where users can signin/signup, view certain information which can only beseen by signed in users, logout or exit the application.Initially you would have asequence userswithfollowing structure:users =…