PDA

View Full Version : Any programmers here that can help?



LeCooolGuy
12-06-2015, 02:52 PM
Can anyone help me with this?



Create a Parking Lot Program for ABC Company, it must have the following options:
1 - Transaction
2 - Reports
0 - Exit

If the user chose 1: The user must input the following:

1. Plate Number of a car.
2. Parking Level
3. Number of Hours Parked

Compute and display the Parking Fee based on the following:

1. First 2 hours = 30 pesos
2. Succeeding Hours = 20 pesos / hour
3. Parking Level A -> No Discount
4. Parking Level B -> 5% Discount
5. Parking Level C -> 10% Discount
6. Other parking Level -> Invalid Input

If the user chose 2: you must display a summary of transactions in tabular format:
Rec # | Plate Number | Hours Parked | Level | Discounted Fee

Bonus points will be given if you can display the total amount collected by the company.

Your program must use function and array.

MyLegGuy
12-06-2015, 03:08 PM
Wat programming language?

Meranda
12-06-2015, 03:20 PM
I tried, my program failed, i alt f4 that program. Now i'm interested to see the final codes for this.

LeCooolGuy
12-06-2015, 03:34 PM
Wat programming language?

C++ Programming.

Meranda
12-06-2015, 03:49 PM
Use array for Option 1.
get input
Put input into variables

Array holding plate, hour, level.

If else statement for computing the fees.

Transfer all data into a function for option 2
Print \t\t according to the variables. And a counter (in case more than one input and for the array)

For the total amount collected use sum, just add them all together.


Don't kill me, I didn't try this way lol, the one I coded failed, so this is just a random "pseudo code "

Hypnoid
12-06-2015, 03:55 PM
Can anyone help me with this?



Create a Parking Lot Program for ABC Company, it must have the following options:
1 - Transaction
2 - Reports
0 - Exit

If the user chose 1: The user must input the following:

1. Plate Number of a car.
2. Parking Level
3. Number of Hours Parked

Compute and display the Parking Fee based on the following:

1. First 2 hours = 30 pesos
2. Succeeding Hours = 20 pesos / hour
3. Parking Level A -> No Discount
4. Parking Level B -> 5% Discount
5. Parking Level C -> 10% Discount
6. Other parking Level -> Invalid Input

If the user chose 2: you must display a summary of transactions in tabular format:
Rec # | Plate Number | Hours Parked | Level | Discounted Fee

Bonus points will be given if you can display the total amount collected by the company.

Your program must use function and array.



Off-Topic but what's ABC? ( please don't say Google, too lazy to search)

LeCooolGuy
12-06-2015, 04:03 PM
Off-Topic but what's ABC? ( please don't say Google, too lazy to search)

Just an example of a company name.

Hypnoid
12-06-2015, 04:08 PM
Just an example of a company name.

You are working for an company? How old are you?

MyLegGuy
12-06-2015, 04:17 PM
C++? Ugh. That language looks too difficult for me to waste my time learning.


You are working for an company? How old are you?
And the bottom, it mentions "extra points."

This sounds like his homework.