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

Write a program which requests a number between 1 and 50 from the user. It must repeatedly ask the user for a number until a valid number is entered. After receiving a valid number, the program must display all the even numbers smaller than that number.

Consider a scenario where a “Class A” network is divided into 3 subnets of fixed length. Design each subnet and find the IP Range and subnet mask of each subnet. (Choose any Class A address).



• isWaterFreezing. This function should return the bool value true if the temperature stored in the temperature field is at or below the freezing point of water. Otherwise, the function should return false.

• isWaterBoiling. This function should return the bool value true if the temperature stored in the temperature field is at or above the boiling point of water. Otherwise, the function should return false.

Write a program that demonstrates the class. The program should ask the user to enter a temperature and then display a list of the substances that will freeze at that temperature and those that will boil at that temperature. For example, if the temperature is −20 the class should report that water will freeze and for 100 water will boil.



class that stores a temperature in a temperature member variable and has the appropriate constructor, setter and getter functions. In addition to these, the class should have the following member functions:

• isEthylFreezing. This function should return the bool value true if the temperature stored in the temperature field is at or below the freezing point of ethyl alcohol. Otherwise, the function should return false.

• isEthylBoiling. This function should return the bool value true if the temperature stored in the temperature field is at or above the boiling point of ethyl alcohol. Otherwise, the function should return false. •



Create a machine problem implementing Object Oriented programming. Make it sure to apply that your program apply conditional structure, iterative structure and array .


Develop car rental desktop application for Honda Sdn Bhd. First, create a class named rentalCar that hold value renter's name, IC no, Size of the car rented, daily rental fee, length of rental in days, and total rental fee. The class contains a set and get method that requires all the rental data except the daily rate and total fee, which are calculated based on the size of the car, economy at RM 60 per day, midsize at RM 80 per day, or full size at RM 120 per day. The class also includes a display () method that displays all the rental data.


Write an application named UseCarRental that prompts the user for the data needed for a rental and creates an object of the correct type. Display the total rental fee. Save the file as

rentalCar.java, UseCarRental.java.



Design a class Account that has the following member: Data Fields: account_id(int type), balance(double type)). Member Functions-> withdraw(),deposit(),getmonthly_interest() and parameterize constructor to initialize data members. Use this class to print the balance. Use the withdraw () to withdraw money less than Rs 5000 and then deposit more than or equal 1500 using deposit function. 


Q.1.1. Distinguish between brief use case description and fully developed use case description. (4)

Q.1.2. Identify four use cases that has Commissioner as an Actor and use your own words to construct a brief use case description for each use case you have identified. (13)

Q.1.3. Choose one of the Use Cases you have identified in Q.1.2 above and create a fully developed use case description. You do not have to include Flow of Activities and Exception Conditions. Please put your answer in a tabular form. (13)


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



LATEST TUTORIALS
APPROVED BY CLIENTS