5.1. [15 marks] Write a method with the following details:
5.2. [10 marks] Using the method below, write the code statements to call this method ten times with angle values of 0.500, 0.501, 0.502, 0.503, ... 0.509 and printout the values for the angle, resulting sine and cosine in a tabular format. Use a “for” looping structure.
A plant has an effective capacity of 900 units per day and produces 800 units per day with its product mix. What is its efficiency?
Bricks Mix plant was designed to produce 7,000 hammers per day but is limited to making 6,000 hammers per day because of the time needed to change equipment between styles of hammers. What is the utilisation?
Suppose the market has 70% chance of being favourable and 30% chance of being unfoavrable. A favourable market will yield a profit of N$300,000, while an unfavourable market will yield a profit of N$20,000. What is the expected monetary value in this situation?
Write your own function that illustrates a feature that you learned in this unit. The function must take at least one argument. The function should be your own creation
(08.02 MC)
An hourglass consists of two sets of congruent composite figures on either end. Each composite figure is made up of a cone and a cylinder, as shown below:
© 2011 Jupiterimages Corporation
Each cone of the hourglass has a height of 18 millimeters. The total height of the sand within the top portion of the hourglass is 54 millimeters. The radius of both cylinder and cone is 8 millimeters. Sand drips from the top of the hourglass to the bottom at a rate of 10π cubic millimeters per second. How many seconds will it take until all of the sand has dripped to the bottom of the hourglass? (4 points)
Group of answer choices
68.3
38.4
268.8
Assume that random guesses are made for seven multiple choice questions on an SAT test, so that there are n=7 trials, each with probability of success (correct) given by p=.65 Find the indicated probability for the number of correct answers. Find the probability that the number x of correct answers is fewer than 4 .
Write a program which takes PIN number of the user as input and then verifies his pin. If pin is verified the program shall display “pin verified” and “Welcome”; otherwise, the program shall give user another chance. After 4 wrong attempts, the program shall display “Limit expired” and then exit. Use for loops to implement the logic.
Note: 5 random PIN numbers can be assumed and fed into the program with which input pin is matched
Write a program that repeatedly asks the user to enter two money amounts expressed in pounds. The program should then add the two amounts and display the answer in pounds. The program should then convert the amount in Rupees. (Set conversion rate: 1£=120.33 rupees). Display the answer in Naira. Use a do-while loop that asks the user whether the program should be terminated.
Write a program that will perform the following:
A. Display Employee List
(Retrieve records from empList.txt, store it in a dictionary, display the employee list arranged by keys)
Note: Refer to example code in dictionary module (bbl) for sorting
B. Add Employee
(
Ask user to input the following data:
- unique employee number
- lastname
- firstname
- department
- rate per day
Write the employee record to the empList.txt
)
C. Add Payroll Record
(Ask user to input the following data:
-employee number
-month
-no of days worked
write the payroll record into the empMR.txt
)
D. Generate pay slip
Ask for employee number and month of the payslip to be generated
Create a payslip like statement written in a text file.
=============================================================
Payslip for the Month of _________________
Employee No.: ______________ Employee Name: _____________
Department: ________________
Rate per Day:_______________ No. of Days Worked: ________
Gross Pay: _________________