Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2236395
  • 博文数量: 292
  • 博客积分: 10016
  • 博客等级: 中将
  • 技术积分: 3381
  • 用 户 组: 普通用户
  • 注册时间: 2005-11-06 11:26
文章分类

全部博文(292)

文章存档

2011年(1)

2010年(4)

2009年(3)

2008年(6)

2007年(47)

2006年(63)

2005年(168)

分类: LINUX

2005-11-09 19:03:04

This assignment must be your down.when you are marked on this assignment.your tutor will interview you.the interview will take place in the last  tutorial.or at aspecified time.youwill not be assessed on this assignment:you will be assessed on your knoeledge of this assignment.youwill be asked to alterations to your program.and how well you explain the way in which the program works if the program does not work to specification or does not adhere to standards.markswill be deducted.

this assignment will form 40% of the total mark for the subject

you can negotiate with your "client"(your lecturer)to add more functionality to your system in order to get better marks.Handing up only what is asked here will not get 100% in the real world it is the people that innovate that are best programmer.

Function1:
create a file containing text with asingle space between words.assyme the numberofcharacter in a line but must not exceed 80 characters per line.Write a shell script to insert a blank line between paragraphs and also print the number of lines.words and characters of a single spaced text file.Write a with a blank line inserted in the text file on the monitor.

Example of how to run the script:

Text file name is:Text
ˇpara-space

 

 

 

 

 

Function2:

Write a function to print the factorial of a given number inputted by the user. write a shell script to validate any in puts entered by the user.appropriate message must be displayed for any invalid input.An example of a factorial number can be given as

Example:
0!=1      =1
1!=1      =1
2!=1*2    =2
3!=1*2*3  =6

Validation:if the user enters a negative value,allow the the user to enter the given number again with an appropriate message

阅读(1202) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~