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;
Talking to IO boards inside a computer or microcontroller depends upon the principles used by the microprocessor to address physical devices. On Motorola systems all devices connec
what is a variable
C Program for SORTING # include stdio.h> void main() { char a; int *p; int i,j,temp; clrscr(); p=&i;
Write a function for finding out highest and lowest marks obtained by a student from an array contained student name and marks. For Example : GetHighestLowestMarks{Student{n}, Ma
Explain about the Expressions in c Language? An expression is the combination of constants, variables and operators arranged as per the syntax of the language. Some of the illu
Explain protected, public, private in C++? These are three access spaecifiers in C++. - Public - Here data members and functions are accessible outside the class. - Pr
Define C o ns t a n t a r g u me n t : T h e a r gu m e n t c a n b e a c on s t a n t a r gu m e n t . T h e c o
How I get C, C++, C# .net assignments ?
explain the function of strlen() and strcat()
Hi, I want to get rtsp source for windows
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: +1-415-670-9521
Phone: +1-415-670-9521
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd