in dare need for help

a new mall center wants to encourage their costumers to buy more. write a program that help it to apply the appropriate discount concerning the amount of the bill and then asks if the costumer is an old one
if the amount is over 500$ and the costumer is an old one then he gets 40% offer

if the ammount is between 200$ and 500$ and the costumer is an old one then he gets 25% offer

for the new costumers they have 20% discount for a facture over 150$

a 15% tax is imposed on the amount after the discount unless if the costumer is an old and the amount is less than 100$

can any one give me the answer which can be applicable on netbeans
Last edited on
This is not a homework site. We won't do your homework for you. However we are always willing to help solve problems you encountered, correct mistakes you made in your code and answer your questions.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//	Courtesy of Furry Guy
#include <iostream>
#include <cctype>
#include <limits>

int main()
{
   std::cout << "Do you want someone to do all the work for you? ";
   char answer{};
   std::cin >> answer;
   std::cin.ignore(std::numeric_limits<std::streamsize>::max(), '\n');
   if (std::toupper(answer) == 'Y' ) 
	{ std::cout << "Post it in the Jobs section.\n"; }
   else 
	{ std::cout << "Show what you have coded so far.\n"; }
   std::cout << "Good luck.\n";
   return 0;
}
it's not homework it's a test of you're not willing to help why to bother yourself and reply
netbeans with c++? Can you elaborate what you want/mean there?
are costumers left over from halloween?

its either homework or self learning. In either case, help here requires you to try first. You can see tens of thousands of posts where we have been willing to help people who showed some code and asked a coherent question. If you elaborate on how you want c++ to work with netbeans, you will get an answer even without code, most likely. It would help to know your OS as well.
it's not homework it's a test
oh well in that case, let me send you the answer. Check your PMs in a bit.

PS: Did you mean 'dire'?
Last edited on
Topic archived. No new replies allowed.