program c# code for generating electronic license plate/ number plate

  • (2 Pages)
  • +
  • 1
  • 2

25 Replies - 1625 Views - Last Post: 22 June 2014 - 09:43 PM Rate Topic: -----

#1 Waleed1133  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 22-June 14

program c# code for generating electronic license plate/ number plate

Posted 22 June 2014 - 11:07 AM

Hello

How do I program c# code for generating electronic (license plate or number plate) randomly by using C# VS2012?
The form of the vehicle license plate is like that:
GB LLNN LLL
Where GB = fixed letters
L = letters from (A to Z) randomly, except ( I, O,U and Z)
N = numbers from (0 to 9) randomly,
Thanks
Waleed
Is This A Good Question/Topic? 0
  • +

Replies To: program c# code for generating electronic license plate/ number plate

#2 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 9287
  • View blog
  • Posts: 34,811
  • Joined: 12-June 08

Re: program c# code for generating electronic license plate/ number plate

Posted 22 June 2014 - 11:12 AM

What have you tried or considered for the assignment so far?
Was This Post Helpful? 1
  • +
  • -

#3 Waleed1133  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 22-June 14

Re: program c# code for generating electronic license plate/ number plate

Posted 22 June 2014 - 11:15 AM

I just start now.
Was This Post Helpful? 0
  • +
  • -

#4 tlhIn`toq  Icon User is offline

  • Please show what you have already tried when asking a question.
  • member icon

Reputation: 5540
  • View blog
  • Posts: 11,868
  • Joined: 02-June 10

Re: program c# code for generating electronic license plate/ number plate

Posted 22 June 2014 - 11:16 AM

He's nicely asking if you have made any effort or attempt at all.
Or is this just a "give me the code for my homework" question.

Please note the last link in my signature block:
Tell me how to build my program that does xyz

This post has been edited by tlhIn`toq: 22 June 2014 - 11:19 AM

Was This Post Helpful? 1
  • +
  • -

#5 Waleed1133  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 22-June 14

Re: program c# code for generating electronic license plate/ number plate

Posted 22 June 2014 - 11:23 AM

I have tried but I am not familiar with c#, so I need help please.
Was This Post Helpful? 0
  • +
  • -

#6 tlhIn`toq  Icon User is offline

  • Please show what you have already tried when asking a question.
  • member icon

Reputation: 5540
  • View blog
  • Posts: 11,868
  • Joined: 02-June 10

Re: program c# code for generating electronic license plate/ number plate

Posted 22 June 2014 - 11:24 AM

First: What is an "electronic" number plate? Is this a license plate that displays a barcode instead of human readible digits? or is it supposed to interface to an LED/LCD display? We have no idea what you mean by this.

Second: Randdomly creating plates is a really bad idea since you could easily have duplicates created.

Third: Console application, WinForms or WPF?

Fourth: What have you tried? Have you designed anything before you start banging on the keyboard with code? We won't do your archetecture for you. And we won't write your code for you. We will *help* you on your work where you get stuck or don't understand a specific thing. We won't take you by the hand and walk you through it. We have tutorials that help you learn basic design and and planning concepts though.

So... In conclusion... *Specifically* what is you are having trouble with?
Was This Post Helpful? 1
  • +
  • -

#7 tlhIn`toq  Icon User is offline

  • Please show what you have already tried when asking a question.
  • member icon

Reputation: 5540
  • View blog
  • Posts: 11,868
  • Joined: 02-June 10

Re: program c# code for generating electronic license plate/ number plate

Posted 22 June 2014 - 11:34 AM

View PostWaleed1133, on 22 June 2014 - 12:23 PM, said:

I have tried but I am not familiar with c#, so I need help please.


We aren't going to teach you C# as part of teaching you to do your homework. Maybe you need to schedule some face-to-face time with your professor to let him know you are *this* far behind and *this* lost. Maybe he can find you a tutor or spend more time with you to help you get 'unlost'.

Maybe you know more than you think you do. Its okay to feel unprepared and unsure. No matter how much lecture you hear, you will learn ten time more by DOING. Your first project won't be perfect. That's okay. It will teach you through experience and that kind of learning sticks with you.

Here is a link to our Learning C# series.
Was This Post Helpful? 1
  • +
  • -

#8 Waleed1133  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 22-June 14

Re: program c# code for generating electronic license plate/ number plate

Posted 22 June 2014 - 11:41 AM

It is supposed to interface to an LCD display.

Randomly creating plates is required for testing purpose.

By using Console application.

I need it to establish a lab testing environment for displaying number plates under noisy conditions like weather or illumination variances, so if you can help I would appreciated.
Was This Post Helpful? 0
  • +
  • -

#9 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 9287
  • View blog
  • Posts: 34,811
  • Joined: 12-June 08

Re: program c# code for generating electronic license plate/ number plate

Posted 22 June 2014 - 11:49 AM

View PostWaleed1133, on 22 June 2014 - 01:23 PM, said:

I have tried but I am not familiar with c#, so I need help please.

Let's back up a few steps. Are you familiar with programming in general? other languages perhaps, or is this like a 101 course?
Was This Post Helpful? 1
  • +
  • -

#10 tlhIn`toq  Icon User is offline

  • Please show what you have already tried when asking a question.
  • member icon

Reputation: 5540
  • View blog
  • Posts: 11,868
  • Joined: 02-June 10

Re: program c# code for generating electronic license plate/ number plate

Posted 22 June 2014 - 11:56 AM

The LCD display maker should have provided some guide for programming/use of their device. Do you have an API for it? A maker/model and web address?

As for your code: Even without the LCD interface you should be able to write the programt hat does the rest, then you just need to write a class that handles the display.

For example, your program generates what you need and can display it on screen. Then you can stub in a method such as SendToExternalDisplay(string myNumberPlateString);
Was This Post Helpful? 1
  • +
  • -

#11 Waleed1133  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 22-June 14

Re: program c# code for generating electronic license plate/ number plate

Posted 22 June 2014 - 11:57 AM

I knew Basic and Fortran.
Also I can make an algorithm for any issue.
In addition I can analysis and evaluate ane results.
So I need help only in C# code if you can please.
Was This Post Helpful? 0
  • +
  • -

#12 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 9287
  • View blog
  • Posts: 34,811
  • Joined: 12-June 08

Re: program c# code for generating electronic license plate/ number plate

Posted 22 June 2014 - 12:03 PM

Okay so you have some programming knowledge. Great! That helps tremendously. Now, just using pseudocode/short hand can you sketch out what you may need to start in on your problem? (Ignore C# syntax for the moment)
Was This Post Helpful? 1
  • +
  • -

#13 Waleed1133  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 22-June 14

Re: program c# code for generating electronic license plate/ number plate

Posted 22 June 2014 - 12:21 PM

I have tried to upload my algorithm file, but the site were not permitted this kind of action.
So I can send it to your email if you wish.
Was This Post Helpful? 0
  • +
  • -

#14 Waleed1133  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 22-June 14

Re: program c# code for generating electronic license plate/ number plate

Posted 22 June 2014 - 12:28 PM

In this labwork, the generation component of electronic Number Plate is the first component which can be implementing by using C# code to define the overall frame of the number plate then to define 11 regions.
Each number region will be randomly generated from 0 to 9; also each letter region will be randomly generated from A to Z except the letters I, O, U and Z in order to avoid confusion with contiguous number.

Therefore, the suggested C# programme flowchart described the required steps to program the number plate generator, the first two regions will be programmed to display GB, then the 3rd and 8th regions will programmed to be empty, after that the 4th and 5th regions will be programmed to display any letter from A to Z except the letters I, O, U and Z as mentioned before. Similarly the 6th and 7th regions will be programmed to display any integer number from 0 to 9, finally the 9th, 10th and 11th regions could be programmed to display any letter from A to Z.
Was This Post Helpful? 0
  • +
  • -

#15 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 9287
  • View blog
  • Posts: 34,811
  • Joined: 12-June 08

Re: program c# code for generating electronic license plate/ number plate

Posted 22 June 2014 - 12:28 PM

How about copy/pasting it here?
Was This Post Helpful? 1
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2