Facebook Sharer
选择您要替换的背景颜色:
【农历新年】背景图片:
个性化设定
 注册  找回密码
查看: 2177|回复: 1
打印 上一主题 下一主题

DATA STRUCTURE

[复制链接]

1

主题

0

好友

1

积分

入门会员

跳转到指定楼层
1#
发表于 2011-7-5 02:39 AM |只看该作者 |倒序浏览
帮帮忙

Write a complete C program which illustrates the Linked list applications data structures and algorithms that have been stressed throughout the course. The program will read in mid-semester test scores as Main Linked List and produce six  (6) outputs:

1.        A list of valid test scores for an assumed mid-semester test score range of 0 to 50.
2.        A list of invalid test scores flagged as Errors and to be deleted from Main Linked List
3.        The arithmetic average of the valid test scores.
4.        The lowest and highest scores
5.        A histogram, giving for each valid score a bar whose length is proportional to the number achieving that score.
6.        The total number of invalid scores.
Given the following test data to be build as Main Linked List. :
        30        55        27        43        -11        40        23        21        56        88        67        12
        42        11        31        61        45        48        51        82        56        48        37        26
** Printing this Main List is optional. Any other data as test scores are encouraged.

Sample of expected output:
… The LINKED-LIST DATA STRUCTURES: Creation, Insertion, Deletion, Searching, Traversal ……

1.Linked-List of Valid scores o-> 30 -> 27 -> 43 ->40 … -> 48 -> 48 -> 37 -> 26 –>end of VALID list
2.Linked-List of Invalid scores o-> 55 -> -11 -> 56 -> 88 … -> 51 -> 82 -> 56 –>end of ERROR-list
3.        Average score -> XX.XX
4.1        Lowest score -> 6
4.2        Highest score -> 48
5.        Total number of invalid scores: XX




收藏收藏0

31

主题

0

好友

1228

积分

黄金长老

Rank: 8Rank: 8Rank: 8Rank: 8Rank: 8Rank: 8Rank: 8Rank: 8

2#
发表于 2011-7-5 10:10 AM |只看该作者
最近这里越来越多 【求功课答案】 帖了。。。


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

JBTALKS.CC |联系我们 |隐私政策 |Share

GMT+8, 2024-12-26 01:26 PM , Processed in 0.099141 second(s), 26 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

Ultra High-performance Dedicated Server powered by iCore Technology Sdn. Bhd.
Domain Registration | Web Hosting | Email Hosting | Forum Hosting | ECShop Hosting | Dedicated Server | Colocation Services
本论坛言论纯属发表者个人意见,与本论坛立场无关
Copyright © 2003-2012 JBTALKS.CC All Rights Reserved
合作联盟网站:
JBTALKS 马来西亚中文论坛 | JBTALKS我的空间 | ICORE TECHNOLOGY SDN. BHD.
回顶部