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

We need to create a billing software for a shop The program will be given below inputs
List of items available in the shop, its price and tax percentage
’ Details about the purchase made like the item purchased and the quantity of items will be provided.
Details about the cash available in the shop like number of notes/coins available in each denomination
Description
You are working on an app for a company like Uber. You will be provided with the number of laps that the user has
taken and travel details (distance, speed and direction) of the laps. Write a program that calculates the total duration of
the trip and also the direction in which the customer has travelled.
Input:
First line of the input will be the number of laps.
The rest of the lines in the input will contain entry in the format of "Distance Speed Direction" for each lap.
Output:
T. First line of the output should show the total duration of the trip in minutes (T).
2. Second line of the output should show the direction from the starting point (D).
You are working in a company like Uber you will be provided with number of laps the users has taken and travel details(distance, speed and direction) of laps write a program calculates the total duration of trip and also the direction in which customer has travelled

Create a class complex which store real and imaginary part of a complex number. input

 5 complex number & display it.


Write a program for a real estate company. The Program should be able to accept the full name of tenants, the total rent (advance) paid, also calculate 10% of the total rent advance paid. Finally, the program should return or display the full name and the 10% charge on the rent advance

At the beginning of the program, the code will open and read values in from a file.

The file will have an unknown number of lines. The program is required to read this data, line by line, into a 2D dynamic array of strings.

The format of the line is :

1,a,b,c,d

Each line starts with an ID, which is an int, and then will be followed by an unknown

number of strings separated by commas. Each string in the line is associated with the ID

of the line.

The 2D dynamic array should be sized to exactly the size of the number of items in each

line. Each line will have at least the ID and 1 item.

Once the items are stored in the array you need to print out the array in ascending order

based on the order IDs in the following format:

ID,a,b,c

An example of this output is as follows (for 2 orders):

3,cat,dog,mice

4,black,red,blue


write a program to illustrate difference between static data members and non static data members.


WAP to illustrate difference between static data members and non static data members .


At the start of your program, your code will open and read values in from a le data.txt.

The le will have an unknown number of lines. You are required to read this data, line

by line, into a 2D dynamic array of strings.

The format of the line is as follows:

1,a,b,c,d

Each line starts with an ID, which is an int, and then will be followed by an unknown

number of strings separated by commas. Each string in the line is associated with the ID

of the line.

Your 2D dynamic array should be sized to exactly the size of the number of items in each

line. Each line will have at least the ID and 1 item.

Once the items are stored in the array you need to print out the array in ascending order

based on the order IDs in the following format:

ID,a,b,c

An example:

4,spanner,wrench,hammer

Terminate each line of output with a newline. Remember to deallocate any memory you have used at the end of your program.

The following libraries are allowed: iostream, fstream, string, sstream


Declare Static members as public and Show the behavior change of those members by writing relative member functions.Declare Static members as public and Show the behavior change of those members by writing relative member functions.


LATEST TUTORIALS
APPROVED BY CLIENTS