If 4.0 moles of C3H8 will react with sufficient oxygen gas in the reaction,
C3H8 (g) + 5O2 (g) → 3CO2 + 4H2O(l),
how many moles of CO2 shall be formed?
12. Create a class named 'Rectangle' with two data members 'length' and 'breadth' and two functions to print the area and perimeter of the rectangle respectively. Its constructor having parameters for length and breadth is used to initialize the length and breadth of the rectangle. Let class 'Square' inherit the 'Rectangle' class with its constructor having a parameter for its side (suppose s) calling the constructor of its parent class. Print the area and perimeter of a rectangle and a square. C#
Create a class with a function that prints "This is parent class" and its subclass with another function that prints "This is child class". Now, create an object for each class and call
1 - function of the parent class by the object of the parent class
2 - function of the child class by the object of the child class c#
3 - function of the parent class by the object of the child class
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)