I am not a programmer...and I'm working on a Project. Its supposed to be "easy", but to me it isnt. I dont know how to end this program. I did start it...actually, I've been working on this for the past couple of weeks, but I cant finish....I wonder if you could tell me what to do...how to finish the program....I NEED HELP!!!
The program should ask a user which type of violation they have, which will be either A, B, C or D. Each user will have every type of violation. After asking for a type of violation, the program will ask the user how many violations of that type they have. Lastly, the program will display the total fine for that person.
VIOLATION TYPE and FINE
A: $30.00
B: $90.00
C: $120.00
D: $290.00
How do I end this problem?
This is what I have so far....
#include %26lt;stdio.h%26gt;
void main()
{
printf("Select from these options..
printf("Violation Types\n,1...
}
what's next?
Could you post it here?
You can do it if you want...LOL! (seriously..if u think this is fun and easy)
C++ Homework Help!!?
learn and use switch case , its easy
Reply:As a stopgap, I'll help you with this project. I won't do your code for you, but I'll give you an idea of where you need to go.
You've got the print stuff mostly down. Now you need to get the fine information from the user. After you get the fine number from the user, what do you do with it? It depends on the fine type. You have to make a DECISION based on what character is entered, so you use a DECISION STATEMENT. (if.. else) IF the fine is type A then the fine is 30, ELSE IF the fine is type B then..... so on and so forth.
Once you've got the fine type, get input from the user as to how many tickets they have. After that, it's a simple matter of multiplying their input by the dollar amount of their fine type.
Reply:Or else you may contact a C++ expert to code your homework. Check websites like http://askexpert.info/
survey research
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment