Suppose the weekly hours for all employees are stored in a table. Each row records an employee’s seven-day work hours with seven columns. For example, the following table stores the work hours for eight employees. Write a program that displays employees and their total hours in decreasing order of the total hours.
Q: The results of a survey of the households in your township are available for public scrutiny. Each…
A: def household_info(inFile,outFile): account_List=[] income_List=[] member_List=[]…
Q: Girl Scout Troop 815 has 18 members. Write a program in which the troop leader can enter the number…
A: Please find the answer to the above question below:
Q: Find the numbers that can be expressed as the product of two nonnegative integers in succession and…
A: Answer:-
Q: Write a program that prompts the user to enter three cities and displays them in ascending order.
A: #include<iostream>#include<string.h>using namespace std;int main(){char nameAll[5][20],…
Q: In this exercise, you will create a program that reads words from the user until the user enters a…
A: Procedure followed: Declare variables str: to store words and size: to maintain the count of words.…
Q: Task 5. Write a program to print Fibonacci series up to a given n terms. Note: The Fibonacci…
A: Solution :
Q: Question 1 Write a program that finds the new salary of an employee after several years of work…
A: Note: Programming language not mentioned in the question. C++ is chosen for implementation.…
Q: In a library catalog, the followings are stored about each book: the author and the title, available…
A: Sol: Algorithms Step1: First of all we have taken input n for count the book Step2 then we have…
Q: USE JAVA Write the code for this program to work: A personal phone directory contains room for…
A: Here is the java program: import java.util.*; class PhoneDirectory { public static void…
Q: Sometimes a company will use telephone numbers like 757-GET-FOOD to make the numbers easier to…
A: A = B = C = 2D = E = F = 3G = H = I = 4 J = K = L = 5 M = N = O = 6 P = Q = R = S = 7 T = U = V = 8…
Q: Write a program that reads two excel sheets. One of these sheets contains a list of items names. The…
A: CODE: # Import library to read excel fileimport openpyxl # Reading the sheets in the…
Q: Consider records of employees each consists of employee's first name (string), number of hours…
A: I give the code in python along with output and code screenshot
Q: Code Example: def get_volume (width, height, length=2): width * * height length volume return volume…
A: Functions in python: A function is a group of connected claims that together carry out a…
Q: Make Camel Case. Create a program that reads a multi-word phrase, and prints the Camel Case…
A: Algorithm: Start Read a string Split the string using space Initialize s="" Convert the first word…
Q: We are given 5 integer numbers. Write a program that checks if the sum of some subset of them is 0.…
A: - We need to highlight the code for subset.
Q: Write a program that calculates the amount of money a person would earn over a period of time if the…
A: Algorithm : Step 1 : declare variables. Step 2 : create object of scanner class to take input. Step…
Q: Task 2: Population of a town today is 100000. The population has increased steadily at the rate of…
A: Population of a town today is = 100000. The population has increased steadily at the rate of 10% per…
Q: looking to code this in python : Suppose the weekly hours for all employees are stored in a…
A: Step 1 The code is given in the below step.
Q: In many sports events, contestants are rated by judges with an average score being determined by…
A: PROGRAM INTRODUCTION: Declare and initialize a variable to store the sum of the scores. Start the…
Q: Task 3: Find the numbers that can be expressed as the product of two nonnegative integers in…
A: Below is the required Flowchart: -
Q: 4. Write a program that resembles a phone book, which stores and displays the names, the addresses…
A: In the code we take the students of number 20. We declare the name , address and telephone number…
Q: Write a program to input total number of sections and class teacher's name in 11th class and display…
A: Language is one of the most widely used programming language which has been used to create different…
Q: Create a program that will display the table below: 1 2 3 4 X 1 1 1 1 4 8. 16 3 9 27 81 ... ... ...…
A: - We need to highlight the code for the asked table.
Q: PYTHON!!!! Teachers in most school districts are paid on a schedule that provides a salary based on…
A: 1. Input the starting salary2. Input the annual % increase3. Input the number of years 4. Declare…
Q: In python 1. (random words text file name wordle word) We will first assume that no letter is ever…
A: Answer: Python Source Code: import random wordle = []with open("wordle.txt", "r") as file: for…
Q: 4. Write a program that resembles a phone book, which stores and displays the names, the addresses…
A: Step 1 Step 2 #include<conio.h>#include<sring.h>#include<stdio.h>struct contact{…
Q: Trace the following program showing the values of i, j, and z ?at each step void main() { int i=0,…
A: Outer while loop will go from i=0 till i=5 Inner loop will start from j = 0 to j=4,…
Q: Write a program that displays a temperature conversion table for degrees Celsius and degrees…
A: The given is the problem to print the converted value of celsius degree to farenheit degree. The…
Q: In a library catalog, the followings are stored about each book: the author and the title, available…
A: #include <iostream>using namespace std;// to swap the array elementvoid swap(int arr[],int…
Q: Create a program that takes in a student’s full names and marks for 3 In-class exercises, then…
A: Since the programming language is not mentioned in the question. So, we have solved this question…
Q: Suppose you are a cashier at a grocery store and you want to write a program that takes a purchase…
A: Suppose you are a cashier at a grocery store and you want to write a program that takes a purchase…
Q: The Fibonacci numbers are the sequence below, where the first two numbers are 1, and each number…
A: In the Fibonacci series, the next number is the sum of the first two preceding numbers. The first…
Q: Instructions Ch9_Ex2Data.txt Ch9_Ex2Out.txt ma 1 Duckey Donald 85 2 Goof Goofy 89 Instructions 3…
A: Introduction : Here we have to write a program that reads students’ names from a file followed by…
Q: Chapter 2: Programming Project 2 Unlimited tries (Find the number of years) Write a program that…
A: Program: #include <iostream> using namespace std; int main() { int min; cout<<"\n C++…
Q: The code below prompts the user to enter their full name, and then converts the name to a list.…
A: I give the code as per your requirement along with output and code screenshot
Q: In Python Write a program that calculates the average word length in a sentence entered by a user…
A: Program approach: Define a function main Get the sentence ending from punctuation mark (. ? !) as…
Q: Find the numbers that can be expressed as the product of two nonnegative integers in succession and…
A: Script:- #reading the input number fromm user read -p "Enter number: " number #setting count to 0,…
Q: Given a square matrix with elements 0 or 1, write a program to find a maximum square submatrix whose…
A: JAVA Program: import java.util.Scanner; public class Main { public static void main(String[]…
Q: IN PYTHON Please! Suppose you deposit $100 into a savings account, and it accumulates at 6% interest…
A: Compound interest is calculated based on the accumulation of principal and interest earned on the…
Q: This example creates a program to teach a first grade child how to learn subtractions. The program…
A: Code Screenshot, output and code is below:
Q: write a program to create a vending machine. the program should display at least 5 items, ask the…
A: Algorithm: Start the program. Display the items in the vending machine. Choose the items. Ask for…
Q: Assuming the level of the Earth’s oceans continues rising at about 3.1 millimeters per year, write a…
A:
Q: Write a console program, that will calculate the pocket money saved over a period, with one cent at…
A: We need to write a console program for mentioned functionality. The language used is JAVA.
Q: Write a program that asks the user to enter 10 numbers, that range from 10-100. Make sure that you…
A: Solution: Given, Write a program that asks the user to enter 10 numbers, that range from 10-100.…
Q: • File names: pokemon.py Pokemon was a worldwide cartoon, video game and card-game phenomenon. My…
A: Here is the solution with an output:-
Q: Question: 2 Write a program using nested loop structures that displays the following ou tput. 00 01…
A: #Logic to develop code Let we have two variable i and j. variable i will print rows and variable j…
Q: # Debug the following program and submit the CORRECT version ####### Lists names = ["chris","dan",…
A: The modified code is kept in bold for your reference.
Suppose the weekly hours for all employees are stored in a table. Each row records an employee’s seven-day work hours with seven columns. For example, the following table stores the work hours for eight employees. Write a program that displays employees and their total hours in decreasing order of the total hours.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
- C Programming Language Task: Pascal's Triangle Write a program to print Pascal's triangle. In Pascal's triangle Each number is the sum of the two numbers above it. You may assume the maximum height for this task is 20. Print each character with 5 spaces of padding. e.g.printf("%5d", variable) 1 1 1 1 2 1 133 1 1 4 6 4 1 1 5 10 10 5 1 1 6 15 20 15 6 1Python Assignment: In India McDonald's has the n number of customers and they are famous for their taste and quality so they plan to Organise the challenge for foody people. What is the challenge is?| you have taken a food challenge from the Chef and now you have to eat directly the Y burgers. You will eat as follows: At the first minute you will eat exactly the X burgers and every minute after that you will eat twice the number of burgers you ate the minute before. As you can get tired of food, Chef also lets you take a break from eating for one minute. When you start eating again after a break, your food streaks are reset, which means that in the first minute after the break you will eat X burgers and every minute after that you will eat the burgers you ate twice the last minute. Allow a1, a2, ., let it be your meal length in minutes. The cook needs to have all the ai different in pairs. Get the minimum number of minutes you need to eat Y burgers directly or decide that it is not…Problem: A small company needs an interactive program to compute an employee’s paycheck. The payroll clerk will initially input the data, and given the input data, an employee's wage for the week should be displayed on the screen for the payroll check. The data for the employee includes the employee's hourly pay rate and the number of hours worked that week. Wage is equal to the employee's pay rate times the number of hours worked (up to 40 hours). If the employee worked more than 40 hours, wage is equal to the employee's pay rate times 40 hours plus 1½ times the employee's pay rate times the number of hours worked above 40. Instructions: Match the action at the left-side with the correct step number at the right-side (the attached picture). Note that it may be possible to group more than one related actions in the same logical step / process without altering the essence of the algorithm. In the program flow, input and checking of hourly pay rate should come before that of the number…
- Assignment Write a program that moves a forester unit and a desert corps unit to a given target location and prints the number of hours it took for each unit to reach the target. First, the user will give the starting X and Y positions of the forester unit as well as its base speed (all ints). Then, the starting X and Y positions of the desert corps unit as well as its base speed (all ints). Finally, the target X and Y positions (both ints) and the terrain type (std::string). Speeds are given as distance traveled in one full day (i.e., 24 hours) and is affected by the terrain type using a multiplier over the base speed. Also, after 1 full day, each unit rests for a certain number of hours. Speed multiplier and rest amount of each type of unit depending on the terrain type are as below. Speed Multiplier Rest Duration After 1 day Terrain type Forester Desert Corps Forester Desert Corps Forest 1.3 0.6 4 12 Desert 0.4 1.2 15 6 Hills 0.7 0.8 6 8 Others 1.0 0.8 8 6 After getting all this…All coding is done in Java. I am using IntelliJ Idea if it helps. 12. Bar Chart Write a program that asks the user to enter today's sales for five stores. The program should display a bar chart comparing each store's sales. Create each bar in the bar chart by displaying a row of asterisks. Each asterisk should represent $100 of sales. Example: Enter today's sales for store 1: 1000 [Enter] Enter today's sales for store 2: 1200 [Enter] Sales Bar Chart Store 1: ********** Store 2: ************Write a program that calculates the total point earned by a football team over a series of games and calculate the average of team. It allows the user to enter the series of game points, then -1 to signal the end of the list.
- Write a program that calculates the amount of money a person would earn over a periodof time if the person's salary is $1 the first day, $2 the second day, and continues to doubleeach day. The program should prompt the user to enter the number of days.Display a table showing what the salary was for each day, then show the total pay at the end of the period. Your result should look like this: Enter the number of days: 4 Day 1 $1 $2 $4 4 $8 2 3 Dollars The total salary for 4 days is: $ 15.using javawrite a program in python 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 their answer was right or wrong, and accumulate the right values. After the 10 questions are asked, calculate the average that was 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 checks to see if the answer is correct and accumulates the number correct. A function that calculates the…Girl Scout Troop 815 has 18 members. Write the pseudocode for a program in which the troop can enter the number of boxes of cookies soldby each scout, and output the total number of boxes sold, the median and mean values.
- A blood donation occurs when a person voluntarily has blood drawn and used for transfusions and made into biopharmaceutical medications. A blood bank is a center where blood gathered as a result of blood donation is stored and preserved for later use in blood transfusion. ABC Blood bank plans to prepare the list of details of its donors and their respective blood groups.Write a program to print the name of the patient along with his blood group. Given the name of the patient and his blood group.In c++ language.Python programming: A robot moves in a plane starting from the original point (0,0). The robot can move toward UP, DOWN, LEFT and RIGHT with a given steps. The trace of robot movement is shown as the following: UP 5 DOWN B LEFT B RIGHT 2 i The numbers after the direction are steps. Please write a program to compute the distance from current position after a sequence of movement and original point. If the distance is a float, then just print the nearest integer. Example: If the following tuples are given as input to the program: UP 5 DOWN 3 LEFT 3 RIGHT 2 Then, the output of the program should be: 2 Hints: In case of input data being supplied to the question, it should be assumed to be a console input.(Simulation) Write a program to simulate the roll of two dice. If the total of the two dice is 7 or 11, you win; otherwise, you lose. Embellish this program as much as you like, with betting, different odds, different combinations for win or lose, stopping play when you have no money left or reach the house limit, displaying the dice, and so forth. (Hint: Calculate the dots showing on each die with the expression dots=(int)(6.0randomnumber+1), where the random number is between 0 and 1.)