Write a program to print the volume of a box by creating a class named 'Volume' with an initialization list to initialize its length, breadth and height. (just to make you familiar with initialization lists) c#
8. Print the average of three numbers entered by the user by creating a class named 'Average' having a function to calculate and print the average without creating any object of the Average class c#
7. Write a program to print the area of a rectangle by creating a class named 'Area' taking the values of its length and breadth as parameters of its constructor and having a function named 'returnArea' which returns the area of the rectangle. Length and breadth of the rectangle are entered through keyboard c#
create a new class named "RandomHelper" which contains the following ;
1. A static member called randint that accept two integer and returnĀ a random integer between them. Make sure that the numbers are inclusive (i.e. if you call randomint(1,10) you should be able to generate both 1 and 10.
2.A static method called randdouble that accept two integer and returns a random double between them.for this method you should be able to generate number such that 1<=x<10 for the method call randdouble(1,10)
3.Call your method for another call without instantiating the class (i.e.call it just you would call math.Random() since your method are defined to be static)
A student has 6 different notebooks and decided to give 5 of them to a friend. How many ways does he have to give away these notebooks?
Write a program to calculate the property tax. property tax is calculated on 85% of the assessed value of the property. For example, if the assessed value is 500 000, the property tax is 425 000. Assume that the property tax rate is R1,25 for each R100 of the assessed value. Your program should prompt the user to enter the assessed value of the property. Store the output in a file in the following sample format:
Assessed Value: R 500 000.00
Taxable Amount: R 425 000.00
The tax rate for each R100.00 is R 1.25
Property Tax: R 5 312.50
Can you identify if Cody's name is spelled right? If so, then make a program that accepts four one-letter strings separated by space and print "Correct" if the inputted strings, combined in order, spell the name Cody correctly. If not, print "Wrong". It doesn't matter if it's in uppercase or lowercase, as long as it's spelled correctly, it's considered correct.
Write a program that does the following:
a. Prompts the user to input five decimal numbers.
b. Prints the five decimal numbers.
c. Converts each decimal number to the nearest integer.
d. Adds the five integers.
e. Print the sum and the average of the five integers
write a program to overload the postfix decrement operator
what difference would the chemist observe at the negative electrode if aqueous zinc chloride was used rather than molten zinc chloride? answer