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;
To store a date use a structure that contains three members date, month and year. If the dates are equal then display message “Equal” otherwise “Unequal” Program structure: main()
Ask4. Write a query to display the columns listed below. The query should list each customer in which the video rental is overdue. The Days_Overdue column should calculate the numb
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 '
Question : (a) (i) What is a structure member in C? What is the relationship between a structure member and the structure? (ii) How can structure variables be declared in C?
The Shift Operators There are 2 shift operators : left shift ( >). These are binary operators. The format is operand >> number or operand The first
I Want a answer for solving the big M method in the topic of simplex method...
write a c++ code to implement use of a constructor
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
in this problem u given a board in which some of the elements are placed as shown in diagram below .each element represent a color .fill the other elements in the board such that n
#Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Ne
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