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
Goals For this assignment you will write programs in C and LC-3 assembly code. Both programs will perform the identical recursive algorithm. The goals of this programming assignmen

Program is to perform string operations: Program is to perform string operation without using in built functions using classes and object void mainmenu()    {    clrs

Cross Platform Clinet app for a vpn Project Description: We want a cross platform client app for VPN. The app must have the subsequent options below: 1. Must be an open

world wide web commands



What is constructor or ctor? need help

write a programme that computes the price of shares and options. do the options in one-period binomial model.

What is conversion constructor? explain it .

Question 1 Explain Abstract data types with its characteristics Question 2 Let us say your Learning Centre decides to store all the three types of student data Register