文档详情

.管理信息系统的系统设计.详解.ppt

发布:2016-03-24约字共81页下载文档
文本预览下载声明
* IF customer does more than $50,000 buesiness THEN IF the customer wasnt in debt to us the last 3 months THEN discount is 15% ELSE (was in debt to us) IF customer has been with us for more than 20 years THEN discount is 10% ELSE (20 year OR less) SO discount is 5% ELSE (customer dose $ 50,000 OR less) SO discount is nil * // // Pragram: // Name : PATmr2.cod // Creater: Zhao Zhuo Ning // date : 2001.10.17 22:01:00 // // Function: // The code below there comment is afforded to CUITNIITs student. // Its the answer of the independence practice at page 4.21. // // Structure: // This program is composed by two procedures and main program. // 1. Password // The procedure is used certify customs name and password. // 2. Purchase // The procedure is the part of Order Entry System. // // Date:2001.10.17 23:40:00 // I have build this program. // // // // The part of procedure Password. // variable declaration // cName: customers name // cPassword: The password is used by customer to login // the web site which named Toy Universe. // The test value is demo // cCertify: The public variable of this program. used // to return the result to main program about // user validation. // Value is PASS or NOPASS // cCustomer: The public variable of this program.used // to save the name of customer who had ordered toy. // procedure Password begin character cName, cPassword display Please enter your name: accept cName display Enter your password: accept cPassword if cPassword = demo begin cCertify = PASS display cName display Welcome you to visit Toy Universe! cCustomer = cName end
显示全部
相似文档