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 calculate the cuboid
superposition of waves
Task Your task is to write a program, words, that reports information about the number of words read from its standard input. For example, if the file qbf.txtcontains the text th
Project Description: I am trading binary options and need my signals that are sent to me via email to be sent to my followers via an RSS feed I have no idea how rss feeds imp
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
Which one would you prefer - a macro or a function? Actually it depends on the purpose of program! - In case of macros, corresponding code is inserted directly into your sou
Program is to perform string operations: Program is to perform string operation without using in built functions using classes and object void mainmenu() { clrs
Can I free() pointers allocated along with new? Can I delete pointers allocated along with malloc()? A: No. It is completely legal, moral, and wholesome to employ malloc() a
Explain about the strategies of implementation of the statecharts, Database Management System?
Define Bitwise Left Shift and Right Shift Operators: >? The bitwise shift operators shift their first operand right (>>) or left ( // Illustration of the bitwise right shi
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