Questions: 11 448

Answers by our Experts: 10 707

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

professor chang wants a program that caculates and displays the are of a circle, given the circle's radius. the formula for calculating the area of a circle is πr^2, where π and r represents pi and the radius, respectively. the professor wants to use the value of pi reounded to two decimal places, which is 3.14

enter the first number, second number, and third number

calculate the sum by adding together the first number, second number, and third number

calculate the average by dividing the sum by 3

display the average


enter the assessed value and tax rate

caculate th annual property tax by dividing the assessed value by 100 and then multiplying the result by the tax rate

display the annual property tax


Management of Charles Saah & Associate a poultry farm has realized that the staff are
stealing the eggs that are harvested, counted and kept in stock. This is because they
cannot check how many eggs have been sold, and how many left. After several
consultations they decided to automate the stock taking process. The chief executive
officer Charles Saah, contacted Charles Saah of AiT Systems (CSAiTS) to help develop
a system for the automation. It was decided that the software for the automation should
perform the following when installed. Assuming that a crate of egg cost GHS20 and only
full crates of eggs are to be sold.
a. Take the name of the person harvesting the eggs, the total crates of eggs
harvested and stocked.
b. Allow eggs to be sold in creates but, cannot sell more crates of eggs than in stock.
This process should be performed five time each time compare the stock level as
you cannot sell more than what is in stock.
C. Explain the logic behind your code.

Write code that puts "less than -9\n" to output if the value of userNum is less than -9.

Ex: If userNum is -15, then output is:

less than -9
userNum: -15
ticket selling booth in a cricket stadium, people has to buy the ticket from
this booth to enter into the stadium. Price of the each ticket is Rs. 500. The
booth keeps track of the number of people visited the stadium. Model this
ticketing booth with a class called Counter A including following members
Data members
(i) Number of people visited
(ii) Total amount money collected
Member functions
(i) To assign initial value
(ii) To increment people total as well as amount total if a ticket is sold
out.
(iii) To display two totals
Write a program to test this class.

A college offers diploma course with five set modules each. Define a class Student as an ADT that uses separate files for the interface and the implementation. This class represents a record of one student’s registration and results. For each Student the following information should be kept as member variables:

the student’s name, ID, student number, the name of the diploma, average mark, an array with the five module codes for the diploma, and another array with five results - one for each of the modules.

Class Student should also have a member function calcAverage() to calculate the average for the five results and a member function pass() to determine whether or not a student has passed the module. A student only passes a diploma course if he or she has obtained more than 50% for all the modules, regardless of his or her average mark. Member function pass()should return a boolean value.

.


Create a class called bMoney. It should store money amounts as long doubles. Use the function ms_to_ld() to convert a money string entered as input into a long double, and the function ld_to_ms() to convert the long double to a money string for display. You can call the input and output member functions getmoney() and putmoney().

Overload the operators +,-,*,/ appropriately.


create a class Matrix the stores it in a safe 2D array .that is it it should check for array index bounds .a constructor should allow the programmer to specify the actual dimensions of the matrix. define number functions : putel() for taking 3 argument row index , column index and the element storing it in the corresponding location. getel() for taking 2 arguments row and column indexes and returns the elements from that location . overload the operators +,-,and * appropriately


Provide a member function of class linkedListType that determines the maximum element in a list. Use the following header template Type linkedListType:: max(); You may assume that operator> is overloaded for Type.  


LATEST TUTORIALS
APPROVED BY CLIENTS