Develop a program that uses structure to display the readings of a boiler process variables (temperature and pressure) on hourly and daily basis.
The output of the program should display the reading as shown below.
Boiler hourly reading:
Boiler readings for day: 25 and hour: 2
Pressure measurements: 25 Pascals
Temperature measurements: 40C
5. Two shafts 30 in. apart, each carrying a four-step pulley, are to be connected by a cross belt. The driving shaft is to turn 180 rpm while the driven shaft is to turn 50, 150, 250, and 600 rpm. The smallest step of the driver is 10 in. in diameter. Find (a) the diameters of all the steps, (b) angle of contact for each pair of pulleys, and (c) belt length.
4. A pulley 600 mm. in diameter transmits 40 kW at 500 rpm. The arc of contact between the belt and pulley is 144° having a center distance of 1100 mm. Determine: (a) diameter of the driven pulley for open belt drive, (b) speed of the driven pulley, and (c) belt length for open belt connection.
Write an encapsulated class Account as follows:
a) Include instance variable balance to store the amount and Title to store account
title.
b) Write 2 constructors, one will be default constructor and the second will be
augmented constructor which initializes the instance variable balance with non
negative value and Title with account name.
c) Provide a function to deposit money in the account
d) Provide a function to get the value of account
e) Also provide a function called debit that withdraws money from an Account.
Ensure that the debit amount does not exceed the Account’s balance. If it does, the
balance should be left unchanged and the method should print a message indicating
"Debit amount exceeded account balance."
Write main function to test class and function.
12 students are to pose for photographs after a social gathering at FCT. 4 students are from Lagos state, 3 are from Kano state and the remaining are from Kwara state. How many possible photographs can they take if students from the same state must stand close to one another?
In how many ways can a family of six be seated on a bench if the parents must sit at both ends?
Create a class called Employee that includes
a) three instance variables—a first name (type String), a last name (type String) and
a monthly salary (double).
b) Provide a constructor that initializes the three instance variables.
c) Provide set and get functions for each instance variable. If the monthly salary is
not positive, do not set its value.
d) Write complete program. Create two Employee objects and display each object’s
yearly salary. Then give each Employee a 10% raise and display each Employee’s
yearly salary again.
A committee of 4 men and 6 women is to be selected from 7 men and 8 women. If there is a married couple among the 15 people, in how many ways can the committee be selected so that the couple are automatically in the committee?
In how many ways can 6 people be seated for group photographs if there are only 4 seats?
12 jobseekers applied for 3 available vacant positions in a company. In how many ways can the job be offered among these applicants if a particular applicant must be employed?