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

Create 3 float arrays with the names machine A, machine B and machine C. The arrays are of size 4.

Insert machine A, B and C production to the respective array using the function InputProduction().

Print chart of all four (4) days by using the function PrintChart().

Print the report using the function PrintReport().


sheela is working in a cyber. her current task is to create username and password for the users create a class user with the following attributes and initialize the constructor. write a c++ code to take the contact details of ‘n’ user and display it. add update() for those who want to change mobile number by giving their name. options 1. add details 2. update mobile number for the given name 3. display()


Design a program that uses try-catch mechanism to check whether the integer input entered is correct type or not.

Runtime input

ABC

Output



Encode, compile and run the following programs and do the following:

1. Identify the format of the function used: no return type & no parameter, with return type & no parameter, no return type & with parameter and with return type & with parameter.

2. Identify the format and actual parameters.

3. Identify the function signature

4. Identify parameter if value parameter, reference parameter or constant reference parameter is used.

5. Identify the the scope of variable used.

6. Identify the type of C++ function is used.

7. Video record the output and your answer with your screen, voice and face.

8. Upload the video and submit the link here.

9. Also, the PDF file of your answer commented in the line of code.

10. Upload the pdf file with the video recording and submit the link here.


*Note : see picture :https://drive.google.com/file/d/1YTeWprIxJjTWR-XiOs9dYfFUnxhO56_8/view?usp=sharing


codes:

PDF: https://drive.google.com/file/d/15NWjP9t0s1NIWHU9Bdqr9DkBbPrtUojO/view?usp=sharing


Create a class GeometricShape including

• A pure virtual function named show() is create in GeometricShape class

Derive a class Rectangle from class GeometricShape including

• data members for length and width of rectangle,

• respective mutator and accessor functions to set and get values of length and width.

• overriding function computeArea() to compute area of rectangle (length x width)

• overriding function show() to display details associated with instance of class Rectangle.

From Rectangle class, derive a class Cuboid containing

• a data field height in addition to length and width,

• two functions setHeight and getHeight() to set and get value of height data field.

• overriding function computeArea() to calculate the area of a cuboid (length x width x height)

• overriding function show() to display the details associated with an instance of class Cuboid.

In main function, create instance of derived classes to access respective show() function using dynamic binding.


Railway management system project with 4 classes


Create a class named Person, which contains

• A pure virtual function named print()

• Two data fields i.e. personName and age

A class named Student inherits Person class, which contains

• Two data fields i.e. Std_id and Cgpa

• Overridden function print() to display all details relevant to a patient

A class named Regular inherited from class Student which holds

• A data field representing the name of School

• A data filed representing the Fee

• Overridden function print() to display all details relevant to a Regular student

A class named Private inherited from class Student which holds

• A data field representing the address

• A data filed representing the Fee

• Overridden function print() to display all details relevant to a private Student.

In the main function, create instances of derived classes to access respective print() function using dynamic binding. 


Consider an abstract class Animal having

A datamember “Name”

• A datamember “Zoo”

• A single function named show()

A class named Birds inherits Animal class and adds fields representing

• A bool type variable flying

• Override function named show() to display values of its all attributes

A class named Reptiles inherits BOOK class and adds fields representing

• Length

• Override function named show() to display values of its all attributes

Write a main() function that instantiates objects of derived classes to access respective show() function using dynamic binding


 Write Syntax for each of the following in C++ environment: i. Function Declaration ii. Function Definition iii. Function Overloading 


in c++ 1.     Write a function named kids_game that plays the popular scissor, rock, paper game. (A scissor can cut a paper, a rock can knock a scissor, and a paper can wrap a rock.) The function accept two argument, a randomly generated  number 0, 1, or 2 representing scissor, rock, or paper and an integer which will be entered by user, that can only be 0, 1, or 2. The function will displays a message indicating whether the user or the computer wins, loses, or draws. Here are sample runs:




LATEST TUTORIALS
APPROVED BY CLIENTS