C++ Answers

Questions answered by Experts: 9 913

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

Write a program in C++ for the following equations of motion.

v = u + at

s = ut + 1/2at2

s = 1/2t (v + u)

v2 = u2 + 2as


Discuss Object oriented programming in c++ with 4 points. Each point shoult not be less than 200 words.


Write the following program in c++. i. Create a class of your own choice with 5 attributes. ii. Create an object of named objone in the intmain() function iii. Access attributes and set values for all the 5 attributes iv. Print all the attribute values v. Create a function in the class that add two number and access the function using the oblject.


Write the following program in c++.


Combine your first and second name and pick only the first five characters of your name for


the project.


i. Declare an array named name1 and put all the first five characters into it.


ii. Write a for loop with an if condition that will find and output the index value of a


searched character in the array. Let the program be such that the user will input the


character being searched for

Write a program in C++ with the following datatypes. Use the 3 different variables with the same data type. Explain the codes step by step. a. int b. float. c. double. d. string. e. bool


Create a class named “student” that contains roll_number, stu_name and course_name,



father_name, DOB as data member and Input_student and display_student as member functions.



Create a Derived class named “exam” from the class named “student” with publicly inherited



mode. The derived class contains members as mark1,mark2,mark3 as marks of three subjects and



input_marks and display_results as member functions. Create an array of object of the “exam”



class and display the result of 10 students.




(2x +1) (3y+z) program to solve following equation


Write a program in C++ using class to calculate the total marks scored by 10 students in a class for 5 subjects out of 100 each. Also calculate the percentage scored and declare the topper of the class. Display the name and roll number of the topper.


Write a program that has a class ‘Customer’ to store records of 100 Customers of company “ABC” including following members: Data member: (1) Cust_id (2) Cust_name (3) Cust_address Member Functions: (1)getdata() (2)display() 


AUTOMATED TELLER MACHINE

Screen/layout

MAD AUTOMATED TELLER MACHINE IS ONLINE


INPUT YOUR 6 DIGIT PIN ******


ENTER[Y/N]: Y

(default PIN is mad123; if correct go to main screen otherwise display the message "WRONG PIN". On the 3rd wrong attempt the prog. should exit)


[C]HECK BALANCE

[D]EPOSIT CASH

[W]ITHDRAW CASH

C[H]ANGE PIN


TRANSACTION: [C|D|W|H]: C


YOUR CURRENT BALANCE IS:

Php 0.00

TRANSACTION: [C|D|W|H]: D


INSERT YOU CASH

Php 15,000.00


Transaction [C|D|W|H]: W


INPUT THE AMOUNT OF WITHDRAWAL

Php 20,000.00

CASH NOT ENOUGH, TRY AGAIN


INPUT THE AMOUNT OF WITHDRAWAL

Php 5,000.00


TRANSACTION: [C|D|W|H]: H


INPUT YOUR CURRENT PIN ******

INPUT YOUR NEW PIN ******

VERIFY YOUR NEW PIN ******


ENTER[Y/N]: Y


LATEST TUTORIALS
APPROVED BY CLIENTS