-
Yes, please post your existing code for us, otherwise we won't know how to adivse you. Read More
-
#include<stdio.h>
#include<conio.h>
void main()
{
int u,d,r,l;
clrscr();
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:
struct Car
{
char make[16];
char model[16];
char year[4];
int price;
};
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