Questions: 11 448

Answers by our Experts: 10 707

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

Explain the start-up process of a computer clearly indicating the purpose of the POST, BIOS, and CMOS

With aid of a diagram, give a brief explanation on the type of busses available on modern computer system and the purpose of the North bridge and south bridge

Define an abstract class Human comprising the following members- name and age (with appropriate data types, a parameterized constructor and a pure virtual function printDetails().

The program also defines two concrete classes- Adult and Child inheriting publicly from the class Human.

Class Adult has a data member- voterID (with appropriate data type).

Class Child has a data member- schoolName (with appropriate data type).

Define parameterized constructors for both the classes Adult and Child. The constructors should also have following validation check for the age input.

  • The age of an adult should be more than or equal to 18 years.
  • The age of a child should be in the range 0 to 18 (excluding both numbers).

Override printDetails() function for both the derived classes.

Define main() function to declare one object each for classes Adult and Child respectively and print the details of the objects. 


Write a program in C++ that reads some text entered through the keyboard till the end of file (eof) character is entered. The words in the text are written to different text files as per the following conditions:

  • The words beginning with any of the lowercase vowels (a, e, i, o, u) are written to a file fileV.txt.
  • The words beginning with a digit (0 – 9) are written to a file fileD.txt.
  • All other words are written to a file fileRest.txt.

Sample input: Buy 1 Kg apples And 17 oranges immediately ^Z

Sample output:

fileV.txt: apples oranges immediately

fileD.txt: 1 17

fileRest.txt: Buy Kg And


Write a program in C++ that defines an m x n two dimensional array containing integer elements, where m and n represent the numbers of rows and columns respectively. The numbers of rows and columns should be defined as constants. The program should provide the following user-defined functions with appropriate parameters:

  • setArrData(...): The function accepts elements from the keyboard and stores them into the array.
  • printArrData(...): The function prints the array values on the screen.
  • getAverage(...): The function accepts the array, number of rows and number of columns as parameters and returns the average of all values in the array.
  • findMax(...): The function accepts the array, number of rows and number of columns as parameters and prints the greatest element from each column of the array. 

Write a program in C++ that provides a user-defined class NewFloat with a data member

floatData of type float. The class also comprises the following members:

  • default and parameterized constructors
  • an inline member function printData() that prints the details of an object of the class
  • a member function deciData() that returns the decimal part of floatData
  • operator overloading to perform the following operations:
  1. post increment (++) increments floatData by 1.
  2. less than (<) on a pair of objects of the class. The function returns 1 if the data member of the object on the LHS of the operator is less than the data member of the object on the RHS of the operator and 0 otherwise.
  3. int cast to convert the float data member of an object into an integer.

Write a program whose inputs are three integers, and whose output is the smallest of the three values.


Write a program in C++ to display the cube of the lowest integer up to the number the user will enter. You may use any type of loop that suits to solve the problem.

Create a C++ program that allows user to enter a maximum number from 20-40. From the number entered by the user, print the even numbers using for loop, and do while loop for the odd numbers.


Display the cube of the numbers up to a given intiger using any types of loop the suits to solve problem.



LATEST TUTORIALS
APPROVED BY CLIENTS