1 / 17

上机练习

上机练习. 上机练习. 编程作业 : 利用 C 或 Java 编写,个人编写,不需要小组合作。 9 个作业 + 分析 学会用计划、统计和管理的方法 对编程活动的时间统计及安排 使用规范的过程开发程序(在第十一章学习) 在编程中提高规模估计、质量估计与评价的能力 填写需要的表格(陆续会介绍到) 填写上机报告. 练习题目. 1 、输入 n 个数(实数或整数),输出其最大最小值。 2 、输入 n 个数和一个整数 K, 输出 n 个数中第 K 个最大最小值。要求有输入错误判断及相应错误 信息。 3 、输入 n 个数,用任意算法对其进行排序并按从小到大顺序输出。

Télécharger la présentation

上机练习

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 上机练习

  2. 上机练习 • 编程作业: • 利用C或Java 编写,个人编写,不需要小组合作。 • 9个作业 + 分析 • 学会用计划、统计和管理的方法 • 对编程活动的时间统计及安排 • 使用规范的过程开发程序(在第十一章学习) • 在编程中提高规模估计、质量估计与评价的能力 • 填写需要的表格(陆续会介绍到) • 填写上机报告 山东大学齐鲁软件学院

  3. 练习题目 • 1、输入n个数(实数或整数),输出其最大最小值。 • 2、输入n个数和一个整数K, 输出n个数中第K个最大最小值。要求有输入错误判断及相应错误 信息。 • 3、输入n个数,用任意算法对其进行排序并按从小到大顺序输出。 • 4、输入n个数,用单链表(任意算法)对其进行排序并按从小到大顺序输出。 山东大学齐鲁软件学院

  4. 练习题目 • 5、对给定一个英文文本文件,统计并输出26个英文字母(不区分大小写)的出现频率,并统计定冠词‘the’的出现次数及频率。 • 6、 任意输入一个带有+,-,x,/和()的算术表达式,输出表达式的值。 山东大学齐鲁软件学院

  5. 练习题目 • 7、给定一九格图,1-8八个数字随机被放入其中8个格内,编程序在方格内移动数字,使8个数字在九格图周围8个格内顺序(逆时针,顺时针均可)排列。任一数字,只有当其周围四连通的格之一为空格时,与空格交换位置。 山东大学齐鲁软件学院

  6. 练习题目 • 8.Multiple regression(多次回归) • Guass’s method 山东大学齐鲁软件学院

  7. 问题描述 • Suppose you had the following data on 6 projects • development hours required • new, reused, and modified LOC • Suppose you wished to estimate the hours for a new project you judged would have 650 LOC of new code, 3,000 LOC reused code, and 155 LOC of modified code. • How would you estimate the development hours? 山东大学齐鲁软件学院

  8. Prog# New Reuse Modified Hours w x y z 1 1,142 1,060 325 201 2 863 995 98 98 3 1,065 3,205 23 162 4 554 120 0 54 5 983 2,896 120 138 6 256 485 88 61 Sum 4,863 8,761 654 714 Estimate 650 3,000 155 ??? Multiple regression-1 山东大学齐鲁软件学院

  9. Multiple regression-2 Multiple regression provides a way to estimate the effects of multiple variables when you do not have separate data for each. 1. You would use the following multiple regression formula to calculate the estimated value 山东大学齐鲁软件学院

  10. 2. You find the Beta parameters by solving the following simultaneous linear equations (联立线性方程组) Multiple Regression-3 山东大学齐鲁软件学院

  11. 3. When you calculate the values of the terms, you get the following simultaneous linear equations Multiple Regression - 4 山东大学齐鲁软件学院

  12. 4. Then you diagonalize(对角化) using Gauss’ method. This successively eliminates one parameter at a time from the equations by successive multiplication and subtraction to give Multiple Regression - 5 山东大学齐鲁软件学院

  13. Then you solve for the Beta terms The final estimate is then z=6.71+0.0784*650+0.0150*3,000+0.2461*155 = 140.902 hours Multiple Regression-6 山东大学齐鲁软件学院

  14. 需求 • Given a data set which contains n groups measured data as multiple variables’ values and their respective results, and one group estimated values of the multiple variables. write a program to read the data and using multiple regression and Guass’ method to calculate the estimate result corresponding to the group of the estimated values. 山东大学齐鲁软件学院

  15. 练习题目 • 9.Write a program to draw an activity Gant Chart. • The interface is like the example in the website: • http://www.ilog.com/products/jviews/demos/ • You need to install Java platform to run the example. • Or you can design your interface by yourself, which including the input, output formats and the functions your program provides. 山东大学齐鲁软件学院

  16. 山东大学齐鲁软件学院

  17. PSP工具 • http://processdash.sourceforge.net/ 山东大学齐鲁软件学院

More Related