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

Define a class named ‘bank account’to represent following members:

Data members :-

- account number

- name of depositor

- account type

- balance amount

Member functions:

- Initialise members

- deposit amount

- display balance

Write a C++ program to test the train class.



Write a C++ code that will conduct an interview for stewardess. If all the criteria as in the table below is fulfilled, the result will be “You Got The Job”. For unsuccessful candidates, the result will be “Try Again”. Unsuccessful candidates are those who did not fulfil the criteria below.

 

Age-Between 20 till 25

Height-Between 168 cm till 175 cm

Weight-Between 45 till 50 kg

English grade - A or B

 


Create a class which stores x and y coordinates of a point using Overload.


 Write function to ‘power’ which


-calculates square of a number when one argument is provided.


-calculates x raised to power y when two arguments are provided.


-calculates x raised to power y, raised to power z, when three arguments are provided.


Create a class inventory which stores code, cost, count and total cost of an item. Calculate total cost inside parameterized constructor. Include a function sale which takes sale quantity as argument and updates count and total cost. Include another function purchase which takes purchase quantity as argument and updates count and total cost. Both the sale and purchase function should use quantity as 1 when no argument is provided.

WAP to enter a date (dd,mm,yyyy) . Throw exception if the mm value is not in the range

1 to 12. Throw another exception if the dd value is not in the range as per the month entered. Display the message corresponding to the exception thrown. Include catch all block.


Write a program to sum of two numbers, sum of three numbers and sum of four numbers using a single function. Also find the product of two numbers, product of three numbers

and four numbers using a single function.


Write a program in C to perform a function Create_AdjList() for representing a

graph in computer memory using Adjacency list representation.


Alice is playing with bubbles. She is standing at the point of (0,0) and has created N bubbles.

 

Each bubble can be characterized by three parameters :

 

V : denoting the size of the bubble

X : denoting the x coordinate of the bubble

Y : denoting the y coordinate of the bubble

 

The following process will take place as long as there are two or more bubbles left :

 

Alice will choose the bubble closest to her (in case there are multiple options for a bubble she will choose the largest one among them). Note: Here the distance between two points (x1, y1) and (x2,y2) is equal to

 

(Whole Root) (x1-x2)^2 + (y1-y2)^2

  

Let the two bubbles chosen have parameters as [v1, x1, y1 ] (first bubble) and [v2,x2,y2] (second bubble) respectively.

 

She will merge the two bubbles chosen and a new bubble with parameters [ v1 + v2, x1-x2, y1-y2] will be formed.

  

Task :

 

Determine the coordinates of the last bubble left after the process ends.




2. Write your own unique Python program that has a runtime error. Do not copy the program from your textbook or the Internet. Provide the following.



The code of your program.


Output demonstrating the runtime error, including the error message.


An explanation of the error message.


An explanation of how to fix the error.


LATEST TUTORIALS
APPROVED BY CLIENTS