Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- write a c program that will charge a lian amount by percentage. anything below 4000 you are charged a percentage of 5%, above 4000 is 10% and anything below 1000 no charge.
- */
- this is the pseudocode:
- start main method
- Accecpt value from user
- if(value is less than 1000)
- find 100% of 1000;
- print vale of 100% of 1000;
- else if (value is less than 4000)
- find 5% of 4000;
- print value of 5% of 4000;
- else if ( value is greater than 4000)
- find 10% of 4000;
- print 10% of 4000;
- else
- print a default value
- close main method
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement