• Del Mar - 7.25%
• Encinitas - 7.5%
• La Jolla - 7.75%
Write a C program that displays the sales tax amount for each store location for a purchase amount of $125.00.
• A flow chart or pseudo code depicting the procedural flow of the program. If you choose to draw a flow chart, it should be contained within a Microsoft Word document. You may use any graphics tool, including Word itself, to draw the flow chart.
• The C source code file(s).
Write a C program calculate sales tax?
First I guess you should have given us the amounts if u want help.
Here
#include %26lt;iostream%26gt;
using namespace std;
int main(void){
int firstStore = 125;
int secondStore, = 125;
int thirdStore = 125;
float a,etc..;
cout %26lt;%26lt; "Whats the percent of sale tax in First store:";
cin %26gt;%26gt; a;
cout %26lt;%26lt; "\nSale tax is:" %26lt;%26lt; (firstStore-((a*100)*(firstStore)) );
system("PAUSE");
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment