Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
Vehicle Parking ticketing system
Old
harwin
Junior Member
 
Status: Offline
Posts: 3
Join Date: Feb 2018
Location: New Delhi, ����
Arrow Vehicle Parking ticketing system - 04-05-2018, 11:42 AM

Helo there, I am very interested in alice. I would like to create a program that has features as below. Can somebody help me? Thanks in advance.

I want to create a parking world with a person that accepts input characters M,C or S (for motorbike,car, senior citizen) followed by the number of minutes the vehicles has been parked. The program will count the parking charges with 3% tax and display a ticket for customer. Any part of hour will be counted as full hour. User can repeat the process as many times he wants. The world also has 3D text for parking as billboard.

Parking charges for motorbike:
First 2 hours = free
Next 3 hours = 0.50/hour
Next 10 hours= 0.25 hours

For car:

First 1 hour=free
Next 2 hours= 1:00/hour
Next 12 hours= 0.75/hour

For Senior citizens= no charges at all.
   
Reply With Quote
Old
chickentree
Super Moderator
 
Status: Offline
Posts: 250
Join Date: Dec 2012
Location: Frosno, Ca
Default 04-05-2018, 05:42 PM

Quote:
Originally Posted by harwin View Post
Helo there, I am very interested in alice. I would like to create a program that has features as below. Can somebody help me? Thanks in advance.

I want to create a parking world with a person that accepts input characters M,C or S (for motorbike,car, senior citizen) followed by the number of minutes the vehicles has been parked. The program will count the parking charges with 3% tax and display a ticket for customer. Any part of hour will be counted as full hour. User can repeat the process as many times he wants. The world also has 3D text for parking as billboard.

Parking charges for motorbike:
First 2 hours = free
Next 3 hours = 0.50/hour
Next 10 hours= 0.25 hours

For car:

First 1 hour=free
Next 2 hours= 1:00/hour
Next 12 hours= 0.75/hour

For Senior citizens= no charges at all.
Is this a class project? In general we need to see what you have done and then supply corrections and suggestions.
Mark


Mark Henwood
mhenwood@ieee.org
   
Reply With Quote
Old
kelbstar123
Member
 
Status: Offline
Posts: 20
Join Date: Feb 2018
Location: https://t.me/pump_upp
Default 04-06-2018, 07:44 AM

Quote:
Originally Posted by harwin View Post
Helo there, I am very interested in alice. I would like to create a program that has features as below. Can somebody help me? Thanks in advance.

I want to create a parking world with a person that accepts input characters M,C or S (for motorbike,car, senior citizen) followed by the number of minutes the vehicles has been parked. The program will count the parking charges with 3% tax and display a ticket for customer. Any part of hour will be counted as full hour. User can repeat the process as many times he wants. The world also has 3D text for parking as billboard.

Parking charges for motorbike:
First 2 hours = free
Next 3 hours = 0.50/hour
Next 10 hours= 0.25 hours

For car:

First 1 hour=free
Next 2 hours= 1:00/hour
Next 12 hours= 0.75/hour

For Senior citizens= no charges at all.
Well I can only hope you so much because my expertise heres a vid I found
https://www.youtube.com/watch?v=bP1DdhPmhcM
If you need more help just say hopefully im not in the darkness with your question
also what are you building it for (experience, coding, school, university?)
and I hope i helped you with a rough outline to cover this subjects
Kind Regards
 Send a message via ICQ to kelbstar123 Send a message via Yahoo to kelbstar123 Send a message via AIM to kelbstar123  
Reply With Quote
Fixes needed in progam
Old
harwin
Junior Member
 
Status: Offline
Posts: 3
Join Date: Feb 2018
Location: New Delhi, ����
Default Fixes needed in progam - 04-11-2018, 09:42 AM

I have uploaded my program link on google drive.
https://drive.google.com/file/d/16Tx...ew?usp=sharing

The problem with my program is, it is not working for my created function "Car_Func."
   
Reply With Quote
Old
chickentree
Super Moderator
 
Status: Offline
Posts: 250
Join Date: Dec 2012
Location: Frosno, Ca
Default 04-11-2018, 11:52 PM

Quote:
Originally Posted by harwin View Post
I have uploaded my program link on google drive.
https://drive.google.com/file/d/16Tx...ew?usp=sharing

The problem with my program is, it is not working for my created function "Car_Func."
To use the Car_Func you need to call it in my first method.
To do that you need to create a variable to accept the value Car_Function passes back and you need to pass the values Car_Func needs based on the parameters you created.
Then you need Alice to react based on the value Car_Func returned. I have done this in the movie I attached.

Mark
Attached Files
File Type: a3p parking.a3p (45.1 KB, 3 views)


Mark Henwood
mhenwood@ieee.org
   
Reply With Quote
Old
harwin
Junior Member
 
Status: Offline
Posts: 3
Join Date: Feb 2018
Location: New Delhi, ����
Thumbs up 04-22-2018, 08:31 AM

Thank you so much. appreciated.
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.