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

19. Make a program that will input Kilogram, convert it into grams and pounds. Display the equivalent Gram/s and Pounds (1 Kg=1000 grams and 1 Kg = 2.2 pounds. Your program will be terminated if you input zero in the kilogram.



18. Make a program that will input type of network provider. A – for Smart and Display “SMART USER, enjoy 8.00 pesos per minute call”. B- for Globe Display “GLOBE USER, enjoy 8.50 per minute call” and C-for Sun Display “SUN USER, enjoy 8.75 per minute call”. Your program will be terminated when you input Z.





17. Make a program that will input Philippine currency (Peso), convert it into Dollar. 1 Dollar= 49.50 pesos, Display the Dollar equivalent. Your program will be terminated if the peso currency = 0.



16. Make a program that will input minutes, convert it into hour. Display the equivalent hour/s . Your program will be terminated if you input zero in the hour.



Ex. Minutes = 120



Equivalent Hour is = 2




15. Make a program that will input two number, If the two number entered are ODD then perform the addition and display the Sum. Your program will be terminated by an option if the user not to proceed another entry.


Ex, No. 1: 5 No. 1: 3


No. 2: 3 No. 2: 2


Sum is : 8 One of the number entered is not ODD



14. Make a program that will input two number, If the two number entered are EVEN then perform the addition and display the Sum. Your program will be terminated by an option if the user not to proceed another entry.


Ex, No. 1: 4 No. 1: 3


No. 2: 2 No. 2: 2


Sum is : 6 One of the number entered is not Even



Write a program to implement the Merge sort algorithm with the space optimization for





auxiliary space O(n/2)

Q#3)a. Define a class named Movie. Include private fields for the title, year, and name of the director.

Include three public functions with the prototypes

void Movie::setTitle(string);

void Movie::setYear(int);

void Movie::setDirector(string);

Include another function that displays all the information about a Movie.

b. Include a function which accepts 2 objects of type Movie and displays whether or not they were

released in the same year and also whether the Directors are same. String functions may be used.


Q#2). Create a class called Time that has data members to represent hours, minutes and seconds.

Provide the following member functions:-

1. To assign initial values to the Time object.

2. To display a Time object in the form of hh:mm:ss {0 to 24 hours}

3. To add 2 Time objects (the return value should be a Time object)

4. To subtract 2 Time objects (the return value should be a Time object)

5. To compare 2 time objects and to determine if they are equal or if the first is greater or smaller than

the second one.


Q#1). Define a class to represent a complex number called Complex. Provide the following member

functions:-

1. To assign initial values to the Complex object.

2. To display a complex number in a+ib format.

3. To add 2 complex numbers. (the return value should be complex)

4. To subtract 2 complex numbers

Write a main function to test the class.


LATEST TUTORIALS
APPROVED BY CLIENTS