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
Project Description: I want someone with experience on adding/compiling/installing the OpenVPN client software within an IP network camera's embedded operating system. Either if

What are control structures? - Control structures decide which instructions in program must be executed. - This implies that program flow may not necessarily move from one s

what is the diffeerence between c and c++

C Program for REMOVING CHAR WHICH U WANT void main() {           int i,j;           char a[100],r;           clrscr();           for(i=0;i

Write a Program to illustrate passing structure to function? # include struct customer { int id; char name[15]; }; void func_struct(struct customer); main() { struct c

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 betw

Command-line arguments are passed into programs using the arguments of main(). Here's a quick example, for a program called by typing "progname file.txt 1 2.7": #include #incl

">http://www.ee.nmt.edu/~erives/289_F12/EE289_Takehome_2.pdf http://www.ee.nmt.edu/~erives/289_F12/Takehome2_maze.GIF


To write a program to use different levels of array of pointer to pointer & display the output as 1 1 1 2 2 2 3 3 3