这是我的作业问题. [英] This is my homework question.

查看:86
本文介绍了这是我的作业问题.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您是拥有最多客户的公司的IT经理.希望向客户提供包含8位数字的客户编号,其方式是前2位数字为11,接下来的3位数字为030,最后3位数字数字将是从1到999的随机选择的数字,左侧数字为零(如果需要).

a)首先创建一个名为"numberlist"的excel文件,其中从1到999的数字写在文件的第一列中.
b)制作一个名为"clientnumber"的M文件,这样,当它开始运行时,它将询问客户的用户名;它将从创建的excel文件(编号列表)中随机读取一个编号,并将客户编号形成为然后将创建一个新的名为"client"的excel文件,并在该文件中写入客户端的顺序,客户端的名称和客户端的客户端编号,使得第一列包含客户端的顺序,第二列包含客户名称,第三个包含客户名称.
c)您应该谨慎地将相同的客户编号提供给两个或多个不同的客户端.您不应将相同的客户编号提供给两个或更多不同的客户端

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

推荐答案

看起来很简单.当您遇到特定的绊脚石时,请按照教师的指示进行操作,并在此处进行报告.回答特定问题后,请进行更正,然后再提出更具体的问题.根据需要重复.上交作业. WIN.
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.


您是拥有最多客户的公司的IT经理.

哦,不,我不是!


你要小心

我认为应该小心,因为当您的老师看到这篇文章时,他会意识到您不打算通过运用知识和努力来完成作业.
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.


这篇关于这是我的作业问题.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆