Evaluate the credit worthiness of a client, C/C++ Programming

Write a C++ program that can be used to evaluate the credit worthiness of a client. The program reads the credit limit and the price and quantity of the item to be purchased by the client. If the value of the goods is more than the credit limit, the program displays "Sorry you cannot purchase goods worthy such a value on credit" and allows the customer to re-enter the quantity, otherwise, displays "Thank You for purchasing  from us" and the value of the purchase. This should be repeated for n customers.

#include 

using namespace std;
int main()

{

int counter, no, quantity;

float credit_limit, price,value_of_goods;

cout<<"Enter the number of customers: "<>no;

for(counter=1;counter<=no; counter++)
{

cout<<"Enter the cremit limit, price and quantity for coustomer number: "
    <

cin>>credit_limit>>price>>quantity;
value_of_goods=price*quantity;
while(value_of_goods>credit_limit)
{

cout<<"Sorry you cannot purchase goods worthy such a value on credit "
    <

cout<<"Re-enter the quantity"<>quantity;

value_of_goods=price*quantity;

}

cout<<"Thank You for purchasing from us "<

cout<<"The value of the purchase is  : "< }

return  0;

}

 

 

Posted Date: 8/21/2012 11:27:42 AM | Location : United States







Related Discussions:- Evaluate the credit worthiness of a client, Assignment Help, Ask Question on Evaluate the credit worthiness of a client, Get Answer, Expert's Help, Evaluate the credit worthiness of a client Discussions

Write discussion on Evaluate the credit worthiness of a client
Your posts are moderated
Related Questions
Draw a circle in c program: void main() { clrscr(); int i,r=50,t,j,x,y; int gd,gm; gd =DETECT; initgraph(&gd,&gm,""); for(x=50;x for(y=50;y {   i

Within software languages we have the ability to store information in mail boxes i.e. memory slots which are given names to represent the box. The naming rules are governed by the

Question Write a program using c++ for the above function , at a= 1000, b=10 -3 ,10 -2 ,10 -4

It is a feature in C++ to reduce name collisions in the global name space. This namespace keyword assigns a separate name to a library that allows other libraries to use the simila

HOW CAN WE EASLY LEARN C++

Aim: To implement a program to add two polar coordinates using operator overloading. Code:                       #define PI 3.14 class polar {             double

write a program for convert numbers upto 9 to alphabet?Eg.now enter the inputis 666 means output is "0" lphabet

Described the order that objects in an array is destructed?

Write a function that has a single int parameter n and returns an int: 0 if n is negative, otherwise 1. You are not allowed to simply check the integer value, and should use the fu