10. Write a program that would print the information (name, year of joining, salary, address) of three employees by creating a class named 'Employee'. The output should be as follows:
Name Year of joining Address
Robert 1994 64C- WallsStreat
Sam 2000 68D- WallsStreat
John 1999 26B- WallsStreat
C#
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#
which one good generate more revenue for a company if you are using generic products and costmize products give the reason behind on us
create create a class named Suites it's main method holds an integer variable named number of suites to which he will assign a value Create a method to which you pass number of suites The method displays the suites and dozens For example 40 sweets is three dozens and four left over
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)
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
Write and explain a program using pointer to strings that accepts the name of an animal and a bird and returns the names in plural
Create a thread pool of 1000 threads. Name this thread pool as myPool. Create an integer variable sum, and the purpose of each thread in this pool will be to add 1 to this variable sum. Print the final value of sum in the console.