Define a function CalcPyramidVolume() with double data type parameters baseLength, baseWidth, and pyramidHeight, that returns as a double the volume of a pyramid with a rectangular base. CalcPyramidVolume() calls the given CalcBaseArea() function in the calculation.
Relevant geometry equations:
Volume = base area x height x 1/3
(Watch out for integer division).
Define stubs for the functions called by the below main(). Each stub should print "FIXME: Finish FunctionName()" followed by a newline, and should return -1. Example output:
FIXME: Finish GetUserNum()
FIXME: Finish GetUserNum()
FIXME: Finish ComputeAvg()
Avg: -1
Write a function so that the main() code below can be replaced by the simpler code that calls function MphAndMinutesToMiles(). Original main():
int main() {
double milesPerHour;
double minutesTraveled;
double hoursTraveled;
double milesTraveled;
cin >> milesPerHour;
cin >> minutesTraveled;
hoursTraveled = minutesTraveled / 60.0;
milesTraveled = hoursTraveled * milesPerHour;
cout << "Miles: " << milesTraveled << endl;
return 0;
}
Define a function PrintFeetInchShort(), with int parameters numFeet and numInches, that prints using ' and " shorthand. End with a newline. Remember that outputting 'endl' outputs a newline. Ex: PrintFeetInchShort(5, 8) prints:
5' 8"
Hint: Use \" to print a double quote.
Three innovative changes in the South Africa public sector
Background information on the organisation
Three processes which have occurred in three different public Institutions
Essay should be 6 pages
Create a new project, and copy your
code from Task 1 to the new project
(copy the contents of the Main()
method and the displayDetails()
method)
Adapt your Main() method to capture
and display the details for 4 different
people.
The displayDetails() method
should remain unchanged.
Create three sub classes namely: programmer, admin and librarian to store bonus,
overtime and total salary for each employee
5) Each of the constructor in (4) should inherit the properties of Employee(using the super
keyword) and implement the EmployeeSalary interface.
6) Hide the properties from the parent class Employee using encapsulation principle.
7) Use getters and setters to make the properties in Employee visible and accessible to other
Public Manager need to be mindful of many technological advances and should not persist in using absolute aids and techniques to carry out their activities.instead they should endeavour to replace outdated aids and techniques with sophisticated and advanced technology,as far as possible.past 20 years world has gone through numerous advances in innovation and technology.critically examine 3 innovative changes in South Africa public sector.information on the process which existed before innovation came to existence and replace it
CASE STUDY: A PAYROLL SYSTEM
In this project, students are to use Java to develop a payroll software to assist in paying the salary
of employee/staff of a certain university named XYZ University. Assume we have three employees
in the university with ranks - Programmer, Admin and Librarian, write a Java program to calculate
and printout the total salary of these three employees in the institution. The program should have
the following features:
1) Create a public class named: Employee that would get the firstname and lastname of each
employee from the keyboard/user
2) Create three objects: prog, adm and lib, for programmer, admin and librarian respectively to
access the properties in Employee class.
3) Create EmployeeSalary as parent interface to store basic_sal, housing_all and
transport_all. The values for these three items are fixed for all Employee and has abstract
function calculateSalary.
5. Considering the following supply and demand equations (20 Points):
𝑄𝑠 = 3𝑃 − 1
𝑄𝑑 = −2𝑃 + 9
𝑑𝑃/𝑑𝑡 = 0.5(𝑄𝑑 − 𝑄𝑠)
a) Find the expressions. 𝑃(𝑡), 𝑄𝑠(𝑡), and 𝑄𝑑(𝑡). When 𝑃(0) = 1, is the system stable or unstable?
b) If the constant for the change of excess of demand changes to 0.6, this is:
𝑑𝑃/𝑑𝑡 = 0.6(𝑄𝑑 − 𝑄𝑠)
do 𝑃(𝑡), 𝑄𝑠(𝑡), and 𝑄𝑑(𝑡) remain the same when 𝑃(0) = 1?