Q7: Write and algorithm and draw a flowchart to a) read an employee name (NAME), overtime hours worked (OVERTIME), hours absent (ABSENT) and b) determine the bonus payment (PAYMENT) Bonus Schedule OVERTIME - (2/3)*ABSENT >50 hours >35 but ≤ 50 hours >25 but ≤ 35 hours >15 but ≤ 25 hours < 15 hours Use the flowgorithm software to solve the problem. Bonus Paid $80 $65 $45 $35 $9
Q: 925 week 3 lecture: x Guided Practice x | ECPI University X6 Diagrams to × ECPI University X…
A: Flowchart and C Code for Dog Age ConverterFlowchart:StartCall Function: Display Message and Get…
Q: hallenge Problem (pyhton) T E S T S C O R E S Write a program that…
A: Program Approach: 1- As mentioned in the assignment created the main function. 2- def keyword used…
Q: Which code segment results in "true" being returned if a number is even? Replace "MISSING CONDITION"…
A: Option A - A variable num modulo 2 is used to check the num variable is even or not. The modulo…
Q: Question 6 Write code for the following: a) Create a variable age and assign it an appropriate age…
A: 1) Below is python program that create an age variable and print age and category based on value…
Q: # The function should output the following details: # - Welcome message and store location # - List…
A: In this code description, we have to design a function named display_bookstore_info that displays…
Q: // This pseudocode segment is intended to compute and display // the cost of home ownership for any…
A: Here is the code and flowchart:-
Q: Complete the function yum to return the area of a pizza with a diameter of d inches. Assume the…
A: Step 1:- Note:-I am writing the program in c++ programming language because no programming language…
Q: Mortgage bond L, interest rate r =15%. The fixed payments P to pay off the loan over N years is…
A: Given that, For a Mortgage bond L, Interest rate r = 15% Fixed payment…
Q: debug this code
A: Below i have debugged the program:
Q: function argument. p. Apply the Currency number format to cell B9. Display two digits after the…
A: Below is the complete solution with explanation in detail for the given question about Excel…
Q: 4. Password Check Given a password as string, the function will check whether it's valid. If it's…
A: The task is to implement a function is_password_valid that checks whether a given password meets…
Q: WRITE CODE IN C LANGUANGE At Lili's birthday party, there was a game arranged by Jojo as the host.…
A: 1. input number of test cases 2. run a loop tc number of times 2.1 input x, y and z…
Q: dayString=input("How numerous days do you intend to remain? ") days int(dayString) question…
A: The given code defines a function computeRate() that takes three parameters - days, x, and d. The…
Q: Please enter the number of item you are purchasing: 21 Sorry, too many items to purchase!! Please…
A: This program calculates the total charge for a customer's purchase, taking into account the price of…
Q: How do I turn this code into a flowchart? Python code: #defining the tuples tup1 = ("$") tup2 =…
A: Answer: Given Python Source Code: #defining the tuples tup1 = ("$") tup2 = ("$") tup3 = ("PAYROLL…
Q: Question1 Write a procedure to find the maximum of three numbers. Procedure specification: •…
A: Detailed explanation: 1. Declaration of max3 Procedure:We define a procedure called max3 that takes…
Q: HW6_4: Write code to solve the following system of equations using the Newton-Raphson method. Let x…
A: function [x0,iter]=newton_Nonlinear_System(f,df,x0,tol,Max_iter)% INPUTS %f = vector of function…
Step by step
Solved in 3 steps with 1 images
- Do not use any global variable. Properly send arguments to functions and use their return valuesPlease show work of the correct answer annotate how you got the answer!! Please answer both! Not an graded assignment!Unavailable Expressions For each expression in the left-hand column, indicate its value in the right-hand column. Be sure to list a constant of appropriate type (e.g., 7.0 rather than 7 for a float, strs in quotes). Expression Value 1 2 3 4 5 5 // 2 + 9.0 / 2.0 - 21.25 29 & 2 & 5 + 34 % 3 8 + 6 -2 +4 +(2+5) > 5 31 // 2 / 10.0 + 10 / (5/ 2.0) (1 != 2) != (2 != 3) Desktop
- Rewrite the following code segment using conditional operators (?/:)The function below does not work as expected: If sales is a negative number is returns 3 instead of returning 0. Please help me correct it. /*This function determines the commision percent based on the following table:Sales Commission$0 - 1000 3%1001 - 5000 4.5%5001 - 10,000 5.25%over 10,000 6%*/double Sales::detCommissionPercent() const{double commission = 0;if ( amountSold > 0){if(amountSold<= 1000) // if amountSold is between [0, 1000] commission = 3;else if(amountSold<=5000)// if amountSold is between [1001, 5000] commission = 4.5;else if(amountSold<=10000) // if amountSold is between [5001, 10000] commission = 5.25;else commission = 6;}return commission;}Q3: By using Select-Case; write a program to calculate (BMI body mass index) (11 M) weight BMI = hieght And print the result as follows Underweight = 30
- display_b bout BOOK Haven". The function should output the following details: Welcome message and store location List of available book genres (Fiction, Mystery, Science Fiction, Fantasy, Non-Fiction) Current promotion ("Buy 2, Get 1 Free on all paperback books!") Customer service information ("For any inquiries, reach out to our customer service at 1-800-987-6543.") Store hours for each day of the week Contact information with a dedicated support email (info@bookhaven.com) Call the function to display the information.The prompt asks: Write a function that calculates the amount of money a person would earn over a period of years if his or her salary is one penny the first day, two pennies the second day, and continues to double each day. The program should ask the user for the number of years and call the function which will return the total money earned in dollars and cents, not pennies. Assume there are 365 days in a year. function totalEarned(years) { } var yearsWorked = parseInt(prompt('How many years will you work for pennies a day? ')); alert('Over a total of ' + yearsWorked + ', you will have earned $' + totalEarned(yearsWorked));Python code of part b please
- PART I: Functions – Math Test Write the Flowchart and Python code for the following programming problem based on the pseudocode below. Write a program that will allow a student to enter their name and then ask them to solve 10 mathematical equations. The program should display two random numbers that are to be added, such as: 247 + 129 The program should allow the student to enter the answer. The program should then display whether the answer was right or wrong, and accumulate the correct values. After the 10 questions are asked, calculate the average correct. Then display the student name, the number correct, and the average correct in both decimal and percentage format. In addition to any system functions you may use, you might consider the following functions: A function that allows the student to enter their name. A function that gets two random numbers, anywhere from 1 to 500. A function that displays the equation and asks the user to enter their answer. A function that…[CelsiusTemperature Table] The formula for converting a temperature from Fahrenheit to Celsius is C = 5/9 * (F - 32) where F is the Fahrenheit temperature and C is the Celsius temperature.Write a function named celsius that accepts two Fahrenheit temperatures (low and high) as arguments. The function will print a table list the Fahrenheit temperatures from low to high and the corresponding Celsuis temperatures. What is the function prototype? (assume only integers used for the temperate) void celsius (int, int); How to implement this function? The function will use a loop to convert the Fahrenheit temperatures to Celsius temperatures and display the values in the console. In the driver program, prompt for the user input for the low and high Fahrenheit temperatures. Call the the function to display the result in the console. Requirements: Use only for-loop for this exercise; Print the output in a table format Include the function prototypes before the main() All functions…Alert dont submit AI generated answer. Please help fill in the code for the functions.The correct output is shown.