e employee worked (up to 40 hours) times the hourly rate. The program is to compute an overtime pay if the employee worked more than 40 hours. All hours beyond 40 should be multiplied to 1.5 for the OT differential pay The program should output the worker’s regular pay, overtime time, and the gross pay (sum of the regular pay and overtime pay).
Q: XYZ Company, LC uses a program to manage the information of their employees. The program gets the…
A: IPO model(input process output)---->is used for describing the structure of an information…
Q: The cost to fix a vehicle depends on the damage type. Damages are classified into 3 groups as…
A: Required:
Q: Write a program that can be used to assign seats for a commercial airplane. The airplane has 13…
A: NOTE: - Below code is implemented in c++. PROGRAM EXPLANATION: - The airplane has 13 rows with 6…
Q: (Financial application: calculate tips) Write a program that reads the subtotal and the gratuity…
A: Actually, Java is a general-purpose also class-based, object-oriented programming language designed…
Q: 1 The salary scales of workers in an institution are taken as input. The workers get paid as per the…
A: Solution 1 - Programming language used - C All necessary comments are included in program code.…
Q: 2. Loan Repayment' Write a program that helps a loan company determine the payment schedule for…
A: HI THEREI AM ADDING ANSWER BELOWPLEASE GO THROUGH ITTHANK YOU
Q: Part H: Worker Pay Write a program that asks the user to enter their name, pay rate (in $/hr) and…
A: steps for calculating total amount is if hour > 40: total = 40 * rate + (hour-40) * 1.5 * rate…
Q: Instructions A local biologist needs a program to predict population growth. The inputs would be: 1.…
A: We need to write a Python code to model the biological behaviour as mentioned.
Q: Part B: Chore Bonus Your parents pay you $3 for each trash bag full of leaves you rake. If you can…
A: According to the information given:- We have to follow the instructions mentioned to get the desired…
Q: Programing Language: C++ Your time machine is capable of going forward in time up to 24 hours. The…
A: #include <iostream>#include <iomanip> using namespace std; int computeDifference(int…
Q: Summary During each summer, John and Jessica grow vegetables in their backyard and buy seeds and…
A: The logic errors in the program are: The formula for the price of the fertilizer per pound where…
Q: ime Machine Your time machine is capable of going forward in time up to 24 hours. The machine is…
A: According to the Question below the solution: Output:
Q: Design a retirement planning calculator for Skulling Financial Services by pseudocode or flowchart.…
A: The following is the required Pseudo code that gives output of the remaining saving balances: Start…
Q: "### Exercise 1 ###\n", "\n", "The table presented below gives a final grade based on the amount of…
A: Input number of points received from the user. Check if points less than 500, then set grade as 0.…
Q: The utilities commission has decided that the electric company overcharged its customer for 2 months…
A: Program code: #include <stdio.h>int main(){ //declaring variables float…
Q: My Solutions > Tax Calculator (conditional flow control) The simplest income tax calculation for a…
A: We need to write a function using Matlab to compute income tax.
Q: A parking garage charges a $2.00 minimum fee to park for up to three hours and an additional $0.50…
A: Program for the given problem :- #include <stdio.h> float getCharge(float hours){ float…
Q: An Auto Insurance Program Example - Write a program to determine the cost of an automobile insurance…
A: Program approach: Import Scanner package for input. Create a class. Create the main method. Create…
Q: The cost to fix a vehicle depends on the damage type. Damages are classified into 3 groups as…
A: Use an if condition to check the damage type and perform respective calculations and display…
Q: Requirements: Use f-strings and write pseudocode/step explanation program2_3.py Road Trip! You and…
A: The Pseudocode code is: Start Set price_per_gallon as 2.79 Read distance_in_miles, mpg_of_vehicle,…
Q: Bob a builder has come to you to build a program for his construction business. He needs to…
A: Note: Since the programming language is not mentioned in the question so the following program is…
Q: Program 4) Body Mass Index (BMI) is a measure of health based on weight. It can be calculated by…
A: As the language is not specified answer written in c++
Q: UO wants a program that displays the amount of money charged for a seminar. The fee per person is…
A: // Code in java import java.util.*; public class Main{ public static void main(String[] args) {…
Q: Morgan’s Department Store distributes bonuses to its salespeople after the holiday rush. Table 9-6…
A: import java.util.Scanner;class Test155 { public static void main(String args[]) { Scanner sc = new…
Q: Add Number Series Programming challenge description: Write a program that, given an integer, sums…
A: #accept a number num = int(input("Enter The Number: ")) Sum = 0 Minus = 0 #loop through the number…
Q: Bob a builder has come to you to build a program for his construction business. He needs to…
A: Given: Bob a builder has come to you to build a program for his construction business. Heneeds to…
Q: 4.7: Time Machine Your time machine is capable of going forward in time up to 24 hours. The machine…
A: Program Instructions:Take the time in int variables and store extra symbols in the char extra.Pass…
Q: 4.7: Time Machine Your time machine is capable of going forward in time up to 24 hours. The machine…
A: Solution: Given, Write a program that allows the user to enter a start time and a future time.…
Q: 4.7: Time Machine Your time machine is capable of going forward in time up to 24 hours. The machine…
A: Following is the c++ program that takes start time and future time as input from user and finally…
Q: (Apartment problem) A real estate office handles , say, 50 apartment units. When the rent is, say,…
A: PROGRAM: //Header file #include <iostream> #include<iomanip> //Using namespace using…
Q: ISSUE NEEDED TO BE SOLVED: I attached the error codes that keep presenting themselves with the code…
A: Below is the explanation:
Q: Salary Calculator Develop a program that will determine the gross pay for each of several employees.…
A: logic:- use a infinite loop , while loop read number of hours(-1 to end) if hours==-1 break…
Q: Question Print Daily Company (PDC) needs a program that displays weekly salary. PDC has five…
A: Code with the OOP approach in JAVA is given below along with output
Q: Design a retirement planning calculator for Skulling Financial Services. Allow a user to enter a…
A: #include<iostream> using namespace std; int main(){ int years; float savingsPerYear,…
Q: Answer this question Write a program that calculates and displays a person’s body mass index…
A: Here language is not mention so we C language to fulfill the question requirement:…
Q: atures of the water. The formula to compute the energy is Q = M * (finalTemperature –…
A: Code: import java.util.Scanner; public class Main { public static void main(String[] args) {…
Q: 4.7: Time Machine Your time machine is capable of going forward in time up to 24 hours. The machine…
A: Following is the c++ program:Variables used:startHours, startMins are used to store the starting…
Q: Python Assignment: In India McDonald's has the n number of customers and they are famous for their…
A: Required:
Q: uring each summer, John and Jessica grow vegetables in their backyard and buy seeds and fertilizer…
A: Required: During each summer, John and Jessica grow vegetables in their backyard and buy seeds and…
Q: Python code for this scenario: There is a line of tourist trying to book a room for their vacation.…
A: Algorithm: Start Display menu to the user Ask user to enter number of guests 'n' Ask user to enter…
Q: Microwaves / Radio Waves If a scientist knows the wavelength of an electromagnetic wave she can…
A: Source Code: #include<iostream>using namespace std; int main(){ cout<<"Enter…
Q: Use C++ Programing language. Write a program that computes and displays the charges for a patient’s…
A: The C++ program that displays a menu choice 1. for inpatient and 2 are for outpatient. Then prompt…
Q: I need help with this solution in pseudocode.
A: Start the process by accepting zip code and age from user Continue if zip code is not zero Ask for…
Q: LAB ASSIGNMENTS, CONT. avg rainfall.py: Write a program that collects rainfall data and calculates…
A: Answer: Python Source Code: total_sum = 0years = int(input("How many years are in your rainfall…
Q: Suppose that the tuition for a university is $10,000 this year and increases 5% every year. Write a…
A: In the computer programming, the concepts of the language that can be organized and managed as the…
Q: XYZ Company, LLC uses a program to manage the information of their employees. The program gets the…
A: Python Code for above : #get details from user name = input("Name of Employee: ") hours =…
Q: Problem: A company wants a program that will calculate the weekly paycheck for an employee based on…
A: According to Question we need to provide : 1. Pseudo-code2. Flowchart3. Python Code
Q: C ++ Code Write a program that can be used to calculate the federal tax. The tax is calculated as…
A: Program description: The C++ program will read an input character for single or married, then read…
Q: 3. The formula for determining compound interest is: A represents the amount to earn; P is the…
A: According to bartleby guidelines we need to answer only one question so i have answered first…
Q: Suppose you shop for rice in two different packages. You would like to write a program to compare…
A: import java.util.Scanner; public class Exercise_1{ public static void main(String[] args)…
METHODOLOGY
- A bookstore owner wants you to write a
program that calculates the gross pay of an employee. - The input to the program is the number of hours the employee works in one week and the employee’s hourly pay rate.
- The program is to calculate the employee’s gross pay including the possibility of overtime pay.
- Regular pay is the number of hours the employee worked (up to 40 hours) times the hourly rate.
- The program is to compute an overtime pay if the employee worked more than 40 hours.
- All hours beyond 40 should be multiplied to 1.5 for the OT differential pay
- The program should output the worker’s regular pay, overtime time, and the gross pay (sum of the regular pay and overtime pay).
- Create an IPO and flowchart
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- JAVA PROGRAM THIS PROGRAM MUST WORK IN HYPERGRADE. The output should DISPLAY the following: Enter a name to search or type QUIT to exit:\n And then I type Anabelle AND PRESS ENTER and print out this: The name 'Annabelle' was not found in either list.\n And then repeat Enter a name to search or type QUIT to exit:\n AND THEN I TYPE xavier and press enter and print out The name 'Xavier' was found in popular boy names list (line 81).\n Then repeat Enter a name to search or type QUIT to exit:\n and then I type AMANDA and press enter and print out The name 'Amanda' was found in popular girl names list (line 63).\n then repeat Enter a name to search or type QUIT to exit:\n then I type jOrdAn and press enter and print out The name 'Jordan' was found in both lists: boy names (line 38) and girl names (line 75).\n then repeat Enter a name to search or type QUIT to exit:\n and then I type quit and press enter to end the program. I HAVE PROVODED THE SCREENSHODE OF THE TEXTFILES AND THE TEST…please code in python A mining company conducts a survey of an n-by-n square grid of land. Each row of land is numbered from 0 to n-1 where 0 is the top and n-1 is the bottom, and each column is also numbered from 0 to n-1 where 0 is the left and n-1 is the right. The company wishes to record which squares of this grid contain mineral deposits. The company decides to use a list of tuples to store the location of each deposit. The first item in each tuple is the row of the deposit. The second item is the column. The third item is a non-negative number representing the size of the deposit, in tons. For example, the following code defines a sample representation of a set of deposits in an 8-by-8 grid.deposits = [(0, 4, .3), (6, 2, 3), (3, 7, 2.2), (5, 5, .5), (3, 5, .8), (7, 7, .3)]Given a list of deposits like the one above, write a function to create a string representation for a rectangular sub-region of the land. Your function should take a list of deposits, then a set of parameters…Python problem Problem statementDevelop a program that receives a playlist for a game of triqui and determines whether the sequence is valid and, if so, the final result. Player X is always first and O is second. https://i2.wp.com/www.lacoladerata.co/wp-content/uploads/2016/12/triqui2.png?fit=420%2C201&ssl=11.2 -> 3.3 -> 1.3 -> 1.1 -> 2.1 -> 2.2 -> * The winner is: O EntryThe coordinates in format (row, column) of each of the players, alternating between X and O, X plays first. Where 1,1 is the upper left corner and 3,3 is the lower right corner. The end of the game is given by the character "*". DepartureIf there is a winner, the message must be "The winner is: X" or "The winner is: O" without the quotes, as the case may be. Player O corresponds to the capital letter o. In the event of a tie, the message “Tie” must be printed, without the quotation marks. If there is a winner and there are still coordinates, in addition to the message of the winner or tie, it…
- You develop a Python application for your company. A list named employees contains 200 employee names, the last five being company management. You need to slice the list to display all employees excluding management. Which two code segments should you use? Each correct answer presents a complete solution. (Choose two.) Group of answer choices employees [1:-5] employees [1:-4] employees [0:-5] employees [0:-4] employees [:-5]JAVA CODE PLEASE Functions With No Parameters and Return Values Quiz by CodeChum Admin Create a function named banner that prints “CodyChum” with a newline. In the main function, write a program that accepts an integer input which would serve as an inclusive stopping point of a loop iteration that starts at the value of 1. If the number that loops through the range is divisible by either 2 or 3, then call the banner function, otherwise just print the number. Input 1. One line containing an integer Output First line is the integer user input. Succeeding multiple lines containing an integer or “CodyChum” 10 1 CodyChum CodyChum CodyChum 5 CodyChum 7 CodyChum CodyChum CodyChumJava Script Create a function that calculates the number of different squares in an n * n square grid. Check the Resources tab. Examples numberSquares (2)→ 5 numberSquares (4) 30 numberSquares(5) 55
- Cyclops numbersdef is_cyclops(n):A nonnegative integer is said to be a cyclops number if it consists of an odd number of digits so that the middle (more poetically, the “eye”) digit is a zero, and all other digits of that number are nonzero. This function should determine whether its parameter integer n is a cyclops number, and return either True or False accordingly n Expected result 0 True 101 True 98053 True 777888999 False 1056 False 675409820 Falsepython programming text files student.txt = P21013088,Kylie Tan Zen Dong,CSC1101 86,CSC1102 75P21013177,Tan Soo Hong,CSC1101 76,CSC1103 76,CSC1104 92,CSC1105 88P21013200,Peh Jia Xuan,CSC1101 88,CSC1102 80,CSC1103 90,CSC1106 75 subjects.txt = CSC1101,Computer FundamentalCSC1102,Computer ArchitectureCSC1103,Fundamentals of DatabasesCSC1104,NetworkingCSC1105,Programming with PythonCSC1106,Design ThinkingCSC1107,Human Computer InteractionCSC1108,Programming with R CSC1109,Systems Analysis and Design CSC1110,Machine LearningCSC1111,Data Structure and AlgorithmsCSC1112,Big Data ArchitectureCSC1113,Fundamentals of Data ScienceBrussel's choice def brussels_choice_step(n, mink, maxk): This problem is adapted from another jovial video "The Brussel's Choice" of Numberphile (a site so British that you just know there has to be a Trevor and a Colin somewhere in there) whose first five minutes you should watch to get an idea of what is going on. This function should compute and return the list of all numbers that the positive integer n can be converted to by treating it as a string and replacing some substring m of its digits with the new substring of either 2*m or m/2, the latter substitution allowed only when m is even so that dividing it by two produces an integer. This function should return the list of numbers that can be produced from n in a single step. To keep the results more manageable, we also impose an additional constraint that the number of digits in the chosen substring m must be between mink and maxk, inclusive. The returned list must contain the numbers in ascending sorted order.
- You develop a Python application for your company.A list named employees contains 200 employee names, the last five being company management. You need to slice the list to display all employees excludingmanagement.Which two code segments should you use? Each correct answer presents a complete solution. (Choose two.) Group of answer choices E. employees [0:-5] D. employees [0:-4] B. employees [:-5] A. employees [1:-4] C. employees [1:-5]CodeWorkout Gym Course Search exercises... Q Search kola shreya@columbus X275: Recursion Programming Exercise: Check Palindrome X275: Recursion Programming Exercise: Check Palindrome Write a recursive function named checkPalindrome that takes a string as input, and returns true if the string is a palindrome and false if it is not a palindrome. A string is a palindrome if it reads the same forwards or backwards. Recall that str.charAt(a) will return the character at position a in str. str.substring(a) will return the substring of str from position a to the end of str,while str.substring(a, b) will return the substring of str starting at position a and continuing to (but not including) the character at position b. Examples: checkPalindrome ("madam") -> true Your Answer: 1 public boolean checkPalindrome (String s) { 4 CodeWorkout © Virginia Tech About License Privacy ContactNew Tab ity.com/player/ -ster A H 1 2 3 4 . recursive function: a function that calls itself Question #9 Dropdown You wrote a program that used numbers for color choices on a shopping website. colors = {1:'red', 2:"blue', 3:'purple"} The data structure used for colors is a dictionary Question #10 $ X + Ⓒ v6.2.1-0055.20221212.mainline 7 5 two-dimensional list dictionary A one-dimensional list A M 31 DELL & 7 O A * 8 > G English Sign out SAVE V Kinley Section 3 of 4 SUBMIT © 2016 Glynlyon, Inc. All rights reserved. Mar 28 [ 1:09