Click here to Skip to main content
15,905,682 members
Please Sign up or sign in to vote.
1.00/5 (8 votes)
See more:
You are IT manager of company having at most clients.You are desired to give clien numbers containing 8 digits to clients in such a way that first 2 digits will be 11,the next three digits will be 030,and the last three digits will be a randomly chosen number from 1 to 999 with zeros on the left digits(if it is needed).

a)First create an excel file named ‘numberlist’ in which the numbers from 1 to 999 are written in the first column of the file.
b)make an M-file named ‘clientnumber’ such that when it begins to run,it will ask from the user name of client;and it will read randomly a number from the created excel file (numberlist) and form the client number as explained above.Then it will create a new excel file named ‘client’ and write the order of client,the name of client and the client number of the client in this file in such a way that first column contains orders of clients,second one contains names of clients an the third one contains client number of clients.
c)You should be careful with giving same client number to two or more different clients.You should not give same client number to two or more different clients
Posted
Updated 5-May-11 2:18am
v2
Comments
Keith Barrow 5-May-11 8:18am    
My Vote of 1: Obvious attempt to get us to do your homework for you 0% effort.
Sandeep Mewara 5-May-11 10:56am    
No effort.
Sergey Alexandrovich Kryukov 5-May-11 18:55pm    
My 1, too, same motivation as Keith's.
--SA

Looks pretty simple. Follow the instructor's instructions and report back here when you hit a specific stumbling block. With answers to specific questions, make corrections and come back with more specific questions. Repeat as necessary. Turn in the assignment. WIN.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 5-May-11 18:57pm    
1) Ask Code Project.
2) FAIL
:-)
My 5.
--SA
Marc A. Brown 5-May-11 22:59pm    
Hey. If this were tips and tricks, that would make a great alternative solution. :) Too bad we can't "5" comments.
Sergey Alexandrovich Kryukov 5-May-11 23:12pm    
Hi Marc. Your good words are more important to me than your vote.
And thanks for the idea :-)
--SA
You are IT manager of company having at most clients.

Oh, no I'm not!


You should be careful

I think you should be careful, as when your teacher sees this post he will realise that you are not planning to complete your assignment by the application of knowledge and hard work.
 
Share this answer
 
Comments
fjdiewornncalwe 5-May-11 9:26am    
Makes me think I should provide an answer that would appear to work to the student, but would have an easter egg internally that would indicate to the instructor where the source really came from.
Sergey Alexandrovich Kryukov 5-May-11 18:57pm    
He he. Me neither... My 5.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900