Suppose a small company has five employees and is planning to increase the number to six. Moreover, suppose one of the company’s programs contained the following assignment statements.
DailySalary = TotalSal/5;
AvgSalary = TotalSal/5;
DailySales = TotalSales/5;
AvgSales = TotalSales/5;
How would the task of updating the
DailySalary = TotalSal/DaysWk;
AvgSalary = TotalSal/NumEmpl;
DailySales = TotalSales/DaysWk;
AvgSales = TotalSales/NumEmpl;
Want to see the full answer?
Check out a sample textbook solutionChapter 6 Solutions
Computer Science: An Overview (12th Edition)
Additional Engineering Textbook Solutions
Starting Out with Python (4th Edition)
Java How to Program, Early Objects (11th Edition) (Deitel: How to Program)
Degarmo's Materials And Processes In Manufacturing
Starting Out With Visual Basic (8th Edition)
Modern Database Management
Electric Circuits. (11th Edition)
- 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. Tom and Jerry opened a new lawn service. They provide three types of services: mowing, fertilizing, and planting trees. The cost of mowing is $35.00 per 5,000 square yards, fertilizing is $30.00 per application, and planting a tree is $50.00. Write an algorithm that prompts the user to enter the area of the lawn, the number of fertilizing applications, and the number of trees to be planted. The algorithm then determines the billing amount. (Assume that the user orders all three services.)arrow_forwardGive solution in C++ Language with secreenshoot of each step.arrow_forwardYou are working as a teaching assistant at a local university, you gave your students a mathematics exam. The test result appears in as shown in table (1) below. The head of the department asked to write the code that accomplishes the following three tasks using Matlab: Table (1): show the test result for a mathematics exam Number of 1 2 3 4 5 8 9. student Grades 35 50 70 63 66 90 30 27 89 aUniversity 1. Draw the flowchart for the previously requested tasks and the two that follow. 2. The number of students who got greater than or equal to 50. 3. If the mark is greater than or equal to 50, then the output is “pass" otherwise the output is "fail" 4. The number of even marks and the number of odd marks.arrow_forward
- c++ or java or in pseudo code with explaining note: if anything is unclear or seems left out make an assumption and document your assumption Implement an algorithm for assigning seats within a movie theater tofulfill reservation requests. Assume the movie theater has the seatingarrangement of 10 rows x 20 seats, as illustrated to the below.The purpose is to design and write a seat assignmentprogram to maximize both customer satisfaction and customersafety. For the purpose of public safety, assume that a buffer of three seats inbetween Input DescriptionYou will be given a file that contains one line of input for eachreservation request. The order of the lines in the file reflects the order inwhich the reservation requests were received. Each line in the file will becomprised of a reservation identifier, followed by a space, and then thenumber of seats requested. The reservation identifier will have theformat: R####. See the Example Input File Rows section for anexample of the input…arrow_forwardWrite a simple payroll program that will display employee’s information. Refer to the UMLClass Diagram for the names of the variable and method. This should be the sequence of theprogram upon execution:a. Prompt the user to input the name of the employee.b. Prompt the user to select between full time and part time by pressing either F (fulltime) or P (part time).c. If F is pressed, ask the user to type his monthly salary. Then, display his name andmonthly salaray.d. If P is pressed, ask the user to type his hourly rate and hours worked separated by aspace. Then display his name and wage.arrow_forwardIN C++ programming This question is inspired by the famous Uno card game. Write an activity that takes two arguments: (1) the player's current hand and (2) the current upward card on the table. Work will be back true if the player is able to make the game, or false if the player must draw on the deck. A player can make a game if: They have a card the same color as the upside card. They have the same number card as the upside card. canPlay (["yellow 3", "yellow 7", "blue 8", "red 9", "red 2"], "red 1") => trutharrow_forward
- Object Oriented Programming in C++ Q. . Pakistan Cricket Board (PCB) is looking for a solution to record the information about their different types of players. Under the contract of PCB there are three (3) different type of players. Suppose you are asked to develop a system, which input all the data of player and calculate & print the total scores and income of a cricket player of Pakistan cricket team. Each player is identified by name, CNIC, income and score. There are three types of players – Test, OneDay, T20. A player can be in all types but If player is not playing in any one or more types then you will input zero(0) for the data members of that class. Each type of Player gets paid using a different formula. OneDay Players are paid by their Monthly fixed salary of Rs.100,000/- per month, test players are paid by the number of hours they played at rate of Rs.2000/- per hour, while T20 players are being played by the number of matches they have played at the rate of 50000/-…arrow_forwardIn your programming project, you are expected to realize the game of chance called Bingo as a C ++ console application. The details of this game played in real life are listed below: Bingo is a game of chance played over 3 sets with a minimum of 2 and a maximum of 5 players. In the bingo game, each player is given a unique (different) bingo card with 15 integers on it at the start of the game. These whole numbers in question are random numbers in the range of 1 (inclusive) to 90 (inclusive). Each set of the game makes use of a bag of stamps with consecutive integers in the range of 1 (included) to 90 (included). A check is randomly drawn from this bag each time, and each player checks if the number on that checker exists on their bingo card. This process continues similarly until the game set is completed. The player with 5 numbers on his card is deemed to have made the first zinc, the player with 10 numbers drawn from the bag, the second zinc, and the player with…arrow_forwardIn your programming project, you are expected to realize the game of chance called Bingo as a C ++ console application. The details of this game played in real life are listed below: Bingo is a game of chance played over 3 sets with a minimum of 2 and a maximum of 5 players. In the bingo game, each player is given a unique (different) bingo card with 15 integers on it at the start of the game. These whole numbers in question are random numbers in the range of 1 (inclusive) to 90 (inclusive). Each set of the game makes use of a bag of stamps with consecutive integers in the range of 1 (included) to 90 (included). A check is randomly drawn from this bag each time, and each player checks if the number on that checker exists on their bingo card. This process continues similarly until the game set is completed. The player with 5 numbers on his card is deemed to have made the first zinc, the player with 10 numbers drawn from the bag, the second zinc, and the player with…arrow_forward
- Given the month and the year, you are required to print the Georgian Calendar' for that month. For example, the calendar for the month of September 2017 is: SM T W T FS 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 The solution to this problem can be rather complex, so we will use functional abstraction to break it down into smaller parts. You are advised to implement and test each part (by defining a suitable main function) before moving on the the next part. You are to implement the following functions: 1. bool is leap_year(int year) to determine if a given year is leap. Note that not all years which are multiples of 4 are leap. Centuries are not leap unless they are multiples of 400. 2. int days_in_month(int month, int year) that takes the month (an integer from 1 to 12) and year, and returns number of days in the given month (an integer from 1 to 31). Note that you should use the is_leap_year function to determine if February has 28 or 29 days.…arrow_forwardPlease help me complete this project. I am very confused and lost. The main() function for this project is in Arithmetic.cpp; it queries the end user for a string arithmetic expression. The main() function calls the eval() function to evaluate and return the result of the arithmetic expression passed as a parameter. Lastly, the main() function displays the result to the end user. Any number of expressions may be evaluated. The main() function is completed. You are responsible for the implementation of the eval() function. The eval() function parameter will be a string consisting of a properly formed arithmetic expression using only the values 0 through 9 and + (addition), - (subtraction), * (multiplication), / (division), and/or ^ (exponentiation) operators. The expression will not include decimals, negative values, or values above 9. The expression will not include parenthesis but may include spaces, which should be skipped. The eval() function needs to use two ArrayStacks:…arrow_forwardIn c++. Read all instructions.arrow_forward
- New Perspectives on HTML5, CSS3, and JavaScriptComputer ScienceISBN:9781305503922Author:Patrick M. CareyPublisher:Cengage Learning