Yes, please post your existing code for us, otherwise we won't know how to adivse you. Read More
printf("\n CAR RENTAL APPLICATION \n");
printf("\n ----------------------- \n");
printf("\n Press 1 for Deluxe Vehicles \n");
printf("\n Press 2 for Long or Road Trip Vehicles \n");
printf("\n Press 3 for Luxury Vehicle \n");
printf("\n ---------------------------- \n");
printf("\n Press any Option: \n");
scanf("%d", &u); … Read More
Has your coursework covered data structures yet? You can bundle the car model and price up into a `struct` type and save yourself some hassle:
This let's you have a record of the all the car makes and … Read More
I don't understand the problem of getting info from inside the switch statement. It's the same as getting info from anywhere else in main(). Read More
First off, as we've already said before, you really should change `void main()` to `int main()` and have it `return 0;` at the end of the function.
Second, the way you now have it, the prices for all the cars will be the same, and total price will always be … Read More
I suspect that this is because you are tyring to print a standard `int` value with `%ld`, the formatting marker for `long int`. I you need values greater than 2 billion, then you need to declare the variables as `long` or even `long long` (depending) as well.
BTW, has this … Read More