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

write an application to print out the numbers 10 through 49 in the following manner

10 11 12 13 14 15 16 17 18 19

20 21 22 23 24 25 26 27 28 29

30 31 32 33 34 35 36 37 38 39

40 41 42 43 44 45 46 47 48 49


1 .write c++ program using menu drive using switch to manipulate



case 1 for any user defined function, case 2 for passing argument by reference and value,



case 3 for passing argument by default, case 4 overloading function, case 5 recursive function, case 6 for built function.





2 .write c++ program to play game for dice by guessing the input random by using rand() function using loop.

Write a c++ program code that enters a number and prints wether or not it is prime number?

How to give values to the character array using maps

Develop a stopwatch with lap counter and total time calculator. The


program will create two processes and they will start calculating time.


One process will be used to calculate total time and the other will calculate


lap time. The total time calculator process will keep on calculating time.


In the lap time, calculator process when it reaches lap time limit, the


process will display lap number and set its counter to zero and start


calculating again. Take input of lap time and number of laps from the user


and start the program. At the end, display total time from total time


calculator process.

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.


The first function must be responsible for inputting the data, the second for computation of squares and the third, for Displaying the result.


Modify the program from number 1 by adding a class and apply the "outside of a class function". 20 points

Class Distance with private attributes Feet (int) and Inches (float). Also, define public member functions:

 Set_distance( )

 Display_distance( ) – to display the values of class attributes

Include a main ( ) program that creates an instance (object) of type Distance. Ask the user to enter the value of Distance variables and call the appropriate functions to set the object value and then display the object value.

Define the class member functions outside the class using scope resolution operator (::).

Task 7-01

 Define a constructor for the class Distance, that should initialize the Distance attributes (feet, inches) to 0.

 define an overloaded constructor that initializes the object to certain values.

e.g, Distance d1, d2(10,2) initialize d1 to 0 and values of d2 to 10, 2

Task 7-02

 Make changes to the Set_distance( ) function and class constructor so that the values of inches never exceed 11. e.g

obj.Set_distance (10,12) - the value of obj members will be feet: 11, inches: 0


Consider a toll plaza on a bridge. Cars passing through the toll plaza must pay a toll of Rs.30/-. Most of the time, they do, but every now and then, a car drives by without paying. The toll plaza records the number of cars that have passed through as well as the total amount of money collected. Model this toll-plaza with the help of the toll-plaza class. The classs two data items are to hold the total number of cars and to hold the total amount of money collected. For the c++ class, implement:

 A constructor that initializes both data items to 0.

 A member function called payingCar() increments the car total and adds 30 to the cash total.

 Another function, called nopayCar() that increments the car total but adds nothing to the

cash total.

 Finally, a member function called display() should display the total cars and the total cash collected.


LATEST TUTORIALS
APPROVED BY CLIENTS