Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
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; }
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; }
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; }
cout<<"The value of the purchase is : "< }
return 0;
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.
find the c program to find area under the curvey=f(x) #include float start_point, /* GLOBAL VARIABLES */ end_point, total_area;
Using a Friend Using a friend function is quite easy. The following example explains a friend function to access members of two classes. class Bclass;
write a C program for padovan string for a natural number
Explain the Macros? Preprocessor' is a translation stage that is applied to your source code before the compiler proper gets its hands on it. Usually the preprocessor performs
Rahul is a newbie to the programming and while learning the programming language he came to know the following rules: ???• Each program must start with ''{'' and end with '
can we use const data member in static. member function with example.
Define Array of Structures? An Array of Structures is an assortment of the same data types which are declared as structures. It is useful to store large and different number of
A palindrome is a string that reads the same from both the ends. Given a string S convert it to a palindrome by doing character replacement. Your task is to convert S to palindrome
how to create the programs in c++ knowledge
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +91-977-207-8620
Phone: +91-977-207-8620
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd