Task #1 Informatics employees are paid at the overtime rate of one and a half times the base rate for hours worked above 40 hours in a week. Informatics desires a payroll program that reads, for every employee, the base rate and the number of hours worked and prints their weekly wages. It should also print the total of weekly wages paid by informatics. Using pseudocode, develop and algorithm for this problem.
Q: The manager of Mama Calari’s Pizza Palace wants a program that calculates and displays the number of…
A: The manager wants to calculate the number of pizza slices into which the pizza can be divided.…
Q: Good Programming practices help in improving programs readability and understandability both for a…
A: Step 1:- Program:- #include<iostream>using namespace std;int f(int n);int main(){int n;cout…
Q: A student spends a majority of his weekend playing and watching sports, thereby tiring him out and…
A: Declare fee for the fee. Declare numberOfUnits for the number of the units. Declare unitMaths for…
Q: Write a program for grade computation. The final grade should be computed using the formula:…
A: C program: C is a general purpose programming language developed by Dennis Ritchie in 1972. C is a…
Q: PART 1: REPETITION CONTROL STRUCTURE (FOR) Instruction: Create a flowchart and a java program that…
A: Flowchart:
Q: The average of a set of values can be calculated by the following equation. Write the proper code…
A: Note: This code should be rewritten instead of copying to the compiler otherwise it will throw a…
Q: Alexa has n candies and m number of students in her class. Write a C++ program to input the number…
A: Write a C++ program to input the number of candies and the number of students from Alexa and print…
Q: PART 1: REPETITION CONTROL STRUCTURE (FOR) Instruction: Create a flowchart and a java program that…
A: Required : A java program that checks if an input number is perfect, deficient or abundant as per…
Q: First program Create a program that calculates the derivative for any polynomial entered by a user…
A: Please upvote. I am providing correct answer below. Please please please
Q: Process conpleted GRADED ACTIVITY #3 (M6.1): SEQUENCE PROBLEM Instruction: Using the sequence…
A: Step 1 Algorithm: 1 Start 2 Read 4 resistors r1,r2,r3,r4 3 Calculate sr=r1+r2+r3+r4 4 Calculate…
Q: An employee’s weekly working hours is 40. If an employee exceeds 40 hours, it is considered…
A: Introduction of the Program: The C++ program takes to input the number of hours worked by employee…
Q: Exercise 7 Develop an interactive program that reads a dollar amount as an integer and then…
A: The following program illustrates an interactive program to read dollars and display its…
Q: Problem #1: Car experts recommend changing your air filter as often as every 6000 miles if the oil's…
A: Declare two variables, char which stores category A or B and int which store miles in number.…
Q: Wite a program to print the perimeter of polygons. NB: A polygon is a plane figure that is bounded…
A: Start Display menu Input choice Input length Calculate the perimeter Display the name of the…
Q: Rolling Two Dice (in c language) Write a program that simulates the rolling of two dice. The program…
A: A required program is as follows, #include<stdio.h> #include<time.h>…
Q: Develop a design in C++ that leads to an algorithm and a programthat will readin a positive integer…
A: #include<bits/stdc++.h>using namespace std;bool PowerOfTwo(int n){if(n==0)return false; return…
Q: Direction: Provide solution for Problem Solving Phase: d) Flowehart e.) Source Code in Ć Machine…
A: Algorithm: Take the distance, efficiency, and price of gas from user. Calculate the cost of commute…
Q: SET A Develop a self-service laundry calculator that reads laundry weight and drying time as inputs…
A: Please refer to the following steps for the complete solution to the problem above.
Q: Input On the first line - information about the car in format {Car {fuel quantity} {liters per…
A: put car , truck and vehicle classes in a model folder public override void Refuel(double amount) {…
Q: Write a program to process weekly employee time cards for all employees of an organization. Each…
A: We can implement this using basic Object oriented programming concepts Create an Employee with 3…
Q: Machine Problem No. 1 The results from the mayor's race have been reported by each precinct as…
A:
Q: (Ransom Note Problem) in python A kidnapper kidnaps you and writes a ransom note. He does not write…
A: Program code: def ransom_note(magazine, ransom): hash_words = {} # Create the hash tabled…
Q: Assignment #1 Compute the net take-home pay of the employee in AXB Company. The program accepts name…
A: The program is written in c
Q: In a chemistry class there are ten students and each the students has taken 5 tests.The total mark…
A: #include <iostream>using namespace std;/* Student class*/class Student{ public:…
Q: Problem #1: Car experts recommend changing your air filter as often as every 6000 miles if the oil's…
A: Actually, Java is a programming language originally developed by James Gosling at Sun Microsystems…
Q: Instructions: Read and analyze the problems and make a C++ program out of it. Assignment #1 Compute…
A: ///Program#include <iostream>using namespace std;int main() { int monthsalary=0; int…
Q: GRADED ACTIVITY #6.1 (M8.1): PART 1: REPETITION CONTROL STRUCTURE (FOR) Instruction: Create a…
A: PROGRAM INTRODUCTION: Take positive integers non-zero integers. N is said to be perfect if the sum…
Q: MACHINE PROBLEM 2 Numerical Methods WRITE A COMPUTER PROGRAM USING ANY LANGUAGE OF YOUR CHOICE THAT…
A: Program: #include<iostream> #include<iomanip> #include<vector>…
Q: Example 6-16 shows how to write a program to factor a polynomial of the form x² + bx + c, where b…
A: Note: Since no langauge is mentioned, therefore answering the given language in python. # Function…
Q: Problem #2: [35 pts] Write a java program that helps the Lebanese scout to create an online generate…
A: Code: import java.util.*;public class Main{ public static void main(String[] args) {…
Q: Task 1: In the month of RAMZAN people distribute food packages. Carrefour offers a food package…
A: as the questions you have given are not related to each other and different from each other so as…
Q: NOTE (what your answer will contain) 1. Use CPROKGRAMMING LANGUAGE ONLY 2. Uae RECURSION type of…
A: Hey there, I am writing the required solution (code) below for the above stated question. First , I…
Q: u will show the only Survivor step off Genetic Algorithm -The selected survivors (solutions) will…
A: Write a simple python code where you will show the only Survivor step off Genetic Algorithm -The…
Q: Problem #1: [35 pts] Profit calculation for an Avocado farm Write a program that helps a farmer…
A: .
Q: PROGRAM DESCRIPTION Make a program that accept employee number, employee name, job code (A/B/C) and…
A: First, we will input the name, job code, number, and hours worked. Based on Job code and hours…
Q: SEQUENCE PROBLEM Instruction: Using the sequence programming concept, create a flowchart and a java…
A: the code is given below :
Q: A student spends most of his weekend playing and watching sports, thereby tiring him out and leading…
A: Total math hours = 3* 1 *15 = 45 hours per semester The total number of math units = 4 Cost per unit…
Q: Justin receives 52 weekly paychecks per year. Each week, he contributes a specific percentage of his…
A: Program code: //define a class AnnualCal public class AnnualCal { //define main function public…
Q: Wilma Peterson is paid by the hour. She would like a program that calculates and displays her weekly…
A: NOTE: - Below explanation is in visual basic. Output: - weekly gross pay Input: - hourly pay, total…
Q: PROBLEM 20 – 0504: Write a BASIC program to solve the system of equations: a11X1 + a12X2 +a13X3+…
A: The above system of equations can be written in the matrix form as A∙X = Y, and the solution is X =…
Q: Problem: 1 A company want to raise the salary of its employee. The raise rate is given as following:…
A: PROGRAM CODE: #include <iostream> // include header file for input output…
Q: The SRC of AIT is trying to find out the eligibility of voters in the school for an upcoming…
A: INTRODUCTION: A flowchart depicts the individual phases of a process in a logical sequence. It is a…
Q: Good Programming practices help in improving programs readability and understandability both for a…
A:
Q: 1. a. A technical supplier tests four generators by measuring their output voltages at three…
A: For the given problem :- Input : We will take input as "Matrix of voltages and equipment number".…
Q: Provide a pseudocode and a flow chart for an application for Domicile Designs that gets sales…
A: Pseudocode and flowchart
Q: 4. A primary school is conducting a survey on the popularity of certain colours. Students ar asked…
A: The algorithm is a collection of a finite number of steps to perform a specific task. An algorithm…
Q: PART 4.1: REPETITION CONTROL STRUCTURE (FOR) Instruction: Create a flowchart and a java program that…
A: Actually, java is a object oriented programming language. It is a platform independent.
Q: Using C write a program that uses a recursive function to find the greatest common divisor of two…
A: I have provided C CODE along with CODE SCREENSHOT and 2 OUTPUT SCREENSHOTS---------------
Q: Python programming Problem 2. Your friend owns a restuarant. He wants to calculate the tip (15%)…
A: meal_costs = int(input("Enter the meal costs: ")) # asking user to enter the meal costs subtotal…
Task #1 Informatics employees are paid at the overtime rate of one and a half times the base rate for hours worked above 40 hours in a week. Informatics desires a payroll program that reads, for every employee, the base rate and the number of hours worked and prints their weekly wages. It should also print the total of weekly wages paid by informatics.
Using pseudocode, develop and
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- Problem C: Snake Eves on Crazy Dice Write a program that simulates rolling two twenty-sided dice 100000 times, counting now many times the sum of the two dice is 2. Based on these results as well as the results of the program (snakeeyes.py) shown in class, make a guess as to how often one can expect to roll snake-eyes (two Is) on a pair of dice labeled I through n, for any positive integer n. Sample Run You got snake-eyes 35 times out of 100000. That is .035 percent of the time. Roughly, that is 1 in 2857 times. Note: The numbers shown above are NOT realistic. This is just to show the format desired for your output. In Python CodeDesign by C++ Using subroutines (VOID) write a program to perform numerical integration of f(x)=x^2*sin(x)*exp(x^2) over x=[0,Pi] having a choice of (i) rectangular rule (ii) the Simpson’s rule Divide the domain into N subsections, where N=5,10,20,40. Compare your results.15. Write a program to implement and test the algorithm that you designed for Exercise 15 of Chapter 1. (You may assume that the value of . In your program, declare a named constant PI to store this value.)
- (Conversion) a. Write a C++ program to convert meters to feet. The program should request the starting meter value, the number of conversions to be made, and the increment between metric values. The display should have appropriate headings and list the meters and the corresponding feet value. If the number of iterations is greater than 10, have your program substitute a default increment of 10. Use the relationship that 1 meter = 3.281 feet. b. Run the program written in Exercise 6a on a computer. Verify that your program begins at the correct starting meter value and contains the exact number of conversions specified in your input data. c. Modify the program written in Exercise 6a to request the starting meter value, the ending meter value, and the increment. Instead of the condition checking for a fixed count, the condition checks for the ending meter value. If the number of iterations is greater than 20, have your program substitute a default increment of (ending value - starting value) / 19.Computer Science Provide a pseudocode and a flow chart for an application for Domicile Designs that gets sales transaction data, including an account number, customer name, and purchase price. The store charges 1.25 percent interest on the balance due each month. Output the account number and name, then output the customer’s projected balance each month for the next 12 months. Assume that when the balance reaches $25 or less, the customer can pay off the account. At the beginning of every month, 1.25 percent interest is added to the balance, and then the customer makes a payment equal to 7 percent of the current balance. Assume that the customer makes no new purchases. The application should execute continuously for any number of customers until a sentinel value is supplied for the account number. Pseudocode FlowchartC++ Programming Exercise: A real estate office handles, say, 50 apartment units. When the rent is, say, $600 per month, all the units are occupied. However, for each, say, $40 increase in rent, one unit becomes vacant. Moreover, each occupied unit requires an average of $27 per month for maintenance. How many units should be rented to maximize the profit? Write a program that prompts the user to enter: a. The total number of of units. b. The rent to occupy all the units. c. The increase in rent that results in a vacant unit. d. Amount to maintain a rented unit. The program then outputs the number of units to be rented to maximize the profit.
- Programming Problem 3 – Broken GPS Consider yourself driving with 60 miles/hour in a city that has only grid like streets, and your GPS is broken. The specifications of the problem are: • With (x, y) as the coordinates of the car, consider the initial position (0,0). • At each intersection, the only directions available are North, South, East or West • The GPS is broken, and it chooses the direction randomly at each intersection, which happens every 5 minutes • The assumption is that the car has the same speed at all times, including when it changes direction and turns. Write a program that calculates the direct distance from the initial point to the location point of the driver after one hour of driving (i.e. the distance between two points). Java PrograConstruct C++ program to solve a given problem using appropriate programming techniques. Write a program that will calculate and print bills for the city power company. The rates vary depending on whether the use us residential, commercial, or industrial. A code of R means residential use, a code of C means commercial use, and a code of I means industrial use. Any other code should be treated as an error. The rates are computed as follows: R: $6.00 plus $0.052 per kwh used. C: $60.00 for the first 1000 kwh and $0.045 for each additional kwh. I: Rate varies depending on time of usage Peak hours: $76.00 for first 1000kwh and %0.065 for each additional kwh. Off-peak hours: $40.00 for first 1000 kwh and $0.028 for each additional kwh. Your program should prompt the user to enter an integer account number, the use code (type char), and the necessary consumption figures in whole numbers of kilowatt-hours. Your program should display the amount due from the user.Write algorithms to solve the problems given in each exercise. Note that you are NOT writing C++ code for this assignment. Please do not submit any code. The volume of a sphere is (4.0/3.0)πr3 and the surface area is 4.0πr2, where r is the radius of the sphere. Given the radius, design an algorithm that computes the volume and surface area of the sphere.
- Question 4 Write a C++ program that evaluates Ly=b and then Ux=y. L and U are the upper and lower triangular matrices of a square matrix A. b is a set of randomly generated numbers. Solve the equations to get the solution x. Full explain this question and text typing work only thanksin C# Sometimes figuring letter grades is hard. Write a program that asks for, and reads from the user, a midterm exam grade and a final exam grade. Compute the average of those two grades and ouput a letter grade based on the scale shown below. CHALLENGE PROBLEM: One of my graduate school classes modified the above calculation. This professor said that the final grade would be determined by the simple average of the midterm and the final, however, if the student scored better on the final than they did on the midterm, the professor would weight the midterm exam at 25%, and the final exam at 75% when computing the final grade. Modify your code to use this professors modification in determining letter grade. Here is the grading scale:Part C: Function, for and plotting We did a project in the lecture on calculating the free fall speeds and plotting them on a graph. This part is similar to the project. An engineer has derived a relationship between the force applied to a material and the extension in length that the force would cause. The relationship between force f and extension e is given by: You are asked to plot a graph showing the relationship between force and extension. You are asked to complete the following tasks: Task 1 Write a Python function which returns the value of e for a given input f. Do not use literals (e.g. 5.5, 10) in the expressions for e in the function. Instead you should define constants and use them. Note that the relationship between e and f depends on whether f is bigger than 10 or not, this means you need a certain Python construction in your function. If you can't think of that, have a look at Part A of Lab03.