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

Faisal bank need a ATM machine. In this machine they need to add all possible currency divisions (1, 2, 5,


10, 20, 50, 100, 500, 1000, 5000). Write a C++ program in which, take required amount from user and find


the required currency division which will give to user in order to pay the required amount.


Example:


Sample input:


Enter required amount: 7895


Required currency division is:


5000: 1


1000: 2


500: 1


100: 3


50: 1


20: 2


10: 0


5: 1


2: 0


1: 0


Also make flowchart

priority Queues

modify the class queues so that it now behaves as a priority queue. A priority queue is a queue whose enqueue function is different in such a way that if a node has a priority value higher than the one already in the queue, it rearranges so that now the higher priority node is before the lower priority node in the queue.


we shall make a priority queue of a shopping list. the shopping list is defined by a dynamic collection of nodes containing itemName and isleNo. the list is prioritized according to isleNo. in any shopping mart, the isle numbers are arranged in ascending order. a mart can only have 20 isles at maximum.


In the month of RAMZAN people distribute food packages. Carrefour offers a food package which contains


the following items 10kg flour, 5kg rice, 5ltr oil, 2pack salt and 500gm spices. Price of above items are:


1. Flour per kg 95


2. Rice per kg 210


3. Oil per liter 410


4. Salt per pack 50


5. Spices per 10 grams 5


Write a C++ program in which, take number of required bag from user and calculate the total price of


required packages and display it on console.

Display Traversal Mode ?

insert node at specific Position?

Display traverse node

Insert node specific position

Write a C++ program that takes the input (or initializes randomly) in 2-dimensional square matrix of odd rows and columns. Your

program should calculate the sum of all values except the center value. Store the sum in center element of array. The program must then

display the resultant array. The program must work for all odd number square matrices. Do not write code for fixed size matrix.


LATEST TUTORIALS
APPROVED BY CLIENTS