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

LOOPING STATEMENTS AND FUNCTIONS


Create a flowchart to guide you in the process

Create a function that will accept the value of i and return the value of 

Possible values of i is any positive value from 2 to 10

is computed based on the value of i; see the following table for the sample Input / Output

!!Please see these 3 examples on how the screen will work when the program runs!!

1.)

i : 3

Process: 1*2*3

n: 6


2.)

i: 5

Process: 1*2*3*4*5

n: 120


3.)

i: 7

Process: 1*2*3*4*5*6*7

n: 5040


Screen/Layout

(Home Screen)

Input i:3

Process: 1*2*3

Output: 6


Try Another [Y/N]: Y



Input i: 5

Process: 1*2*3*4*5

Output: 120


Try Another [Y/N]: Y


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

LATEST TUTORIALS
APPROVED BY CLIENTS