佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

查看: 1230|回复: 1

DATA STRUCTURE

[复制链接]
发表于 4-7-2011 11:40 PM | 显示全部楼层 |阅读模式
帮帮忙

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
回复

使用道具 举报


ADVERTISEMENT

发表于 5-7-2011 12:23 PM | 显示全部楼层
功课自己做
回复

使用道具 举报

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

本版积分规则

 

ADVERTISEMENT


本周最热论坛帖子本周最热论坛帖子

ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 12-11-2025 06:35 AM , Processed in 0.096199 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表