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
why is programming is needed now-a-days.what is the benefit of colleges to apply heavy loads on students head.

Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve between two points can b

a program that declares and prompts the user to enter two integer and performs the five arithmetic operations

differentiate between inbuilt and user defined functions

make a marksheet of 2 student with 5 subject

I need a project on car rental system using c programming only of college level

i have a project that is due this Wednesday and i was wondering if i can get help in doing it?

Should one design a classes from the outside (interfaces first) or inside (data first)? A: From the outside. A superior interface provides a simplified view which is express

What is a hash function? Hash function: This is the method from the set 'K' of keys into the set 'L' of memory addresses.   H: K → L These are used to verify the address

Operation on array: void Array::add( Object& toAdd ) {     lastElementIndex++;     while( ptrAt( lastElementIndex ) != ZERO &&            lastElementIndex