- Back to Home »
- bill , c++ , code , coding , payment. , program , programming , project , project c++(basic) »
- An assingment of nust. Bill payment solution.
Posted by : Unknown
Tuesday, 27 January 2015
Problem:
You have to serve 20 people in all.
#include<iostream>
You have to serve 20 people in all.
- space available in queue is for 10 people.
- first person entering the queue will be served first.
- people coming to pay the bill will be added
- if yes (ask for amount)
- if no move next
- In every iteration you will ask the secrity guard if any person is served or not
- if yes ask number of user served and process them
- when every one is served print the total amount of payment recieved
#include<iostream>