如何编写电话簿的伪代码? [英] How to write a pseudo code of a Telephone Directory ?

查看:139
本文介绍了如何编写电话簿的伪代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从来没有写过伪代码或任何算法,所以我不知道如何写电话簿的伪代码,我总是写过代码,编码完成了,请有人帮我编写电话号码簿的伪代码.请告诉我

I have never written a pseudo code or any Algo , so I don''t know how to write a pseudo code of a telephone directory , I have always written the Codes, am done with the coding , please somebody help me in writing the pseudo code of a telephone Directory. Kindly tell me please

推荐答案

1.收集每个人的电话号码,地址和希望列出的姓名;也许一种选择是不列出任何地址?

2.创建一个关系数据库,其中电话号码用作UniqueID.创建表和表之间的链接,以便在给出三项信息中的任何一项后,您可以轻松地在数据库中查询其他推论信息

2.a.创建一个用户界面,用于输入在步骤#1中收集的数据,使每种类型的数据项都经过验证,当然也要进行正确排序.该程序的功能由步骤3中的数据输入方法确定,

3.通过ocr/自动化输入数据,或通过低薪工资奴隶手动输入数据.

4.创建一个自定义程序,该程序将遍历整个数据库并生成一个pdf文件,然后将其发送到打印机.

5.为具有安全权限的授权人员创建自定义客户端用户界面,以在数据库中查找信息.创建用于紧急或警察查询的自定义安全程序.

6.弄清为该项目分配了多少钱.

7.提交比所分配金额多250%的账单,然后协商将最终付款降低至150%左右.
1. collect everybody''s phone number, address, and the name they wish to be listed under; perhaps an option is not to have any address listed ?

2. create a relational database where the phone number functions as UniqueID. create the tables and links between tables so that given any one of the three pieces of information you can easily query the database for the other corollary information

2.a. create a user interface for entering the data collected in step #1 in such a way that each type of data item is validated, and, of course, sorted properly. the functioning of this program to be determined by the data-entry method in step #3,

3. enter the data via ocr/automation, or manual entry by low-paid wage-slaves.

4. create a custom program that iterates the entire database and generates a pdf file which you then can send to your printer.

5. create a custom client user interface for authorized persons who have security clearance to look up information in the database. create custom security procedures for emergency or police queries.

6. figure out how much money has been allocated for this project.

7. submit a bill for 250% more than the amount allocated, and then negotiate the final payment down to 150% or so.


电话簿的哪个方面?没有表的伪代码.

您可能需要阅读以下内容: [
What aspect of a phone book?? There is no pseudo code for a table.

You might want to start by reading these: "What is psuedo code"[^]


电话簿不是算法式的,因此您无法为其编写代码.这将是计算机上的数据结构.您可以编写代码来访问它,添加到其中等等,但这是不同的.

伪代码只是缩写代码,用普通英语(或您习惯使用的任何语言)编写.诸如简单的函数,迭代,if-then类型逻辑之类的东西可以在没有填写计算机语言详细信息的情况下演示该过程.
A telephone directory isn''t algorithmic so you can''t write code for it. It would be a data structure on a computer. You could write code to access it, add to it etc., but that''s different.

Pseudo code is just abbreviated code, written in plain English (or whatever language you''re comfortable in). Stuff like simple functions, iterations, if-then type logic, to demonstrate the process without the computer language detail filled in.


这篇关于如何编写电话簿的伪代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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