Jump to content
Sign in to follow this  
sape_ntah

Boleh Tolong Selesaikan?

Recommended Posts

nak mintak tolong otai2 kat sini...ni soklan assignment

s1:A simple code can be developed by replacing each character by another character that is a fix number of positons away in the collating sequence.Write a program that reads the text in a file,and then generates a new file the coded text using this scheme.Do not change the newline characters or the EOF character.

s2:Write a program that reads data file and determines the number of occurences of each characters in the file.Then,print the characters and the number of times that they occured.if a character does not occur,do not print it.(hint:use an array to store the occurences of the characters,based on their ASCII codes)

s3:Another simple code encodes a message in text such that the rue message is represented by the first letter of each word.there are no space between words but the decoded stirng of characters can easily be seperated into words by a person.write a program to read a data file and determine the secret message stored by the sequence of first letter of the word.

s4:Assume that the true secret message in problem above is stored in the second letter of each word.write a program to read a data file and determine the secret message stored in the file

s5:write a program that encodes the text in a data file using an integer array named key that contains 26 characters.This key is read from the keyboard;the first letter contains the character that is to replace the letter in the data file ,the second letter contains the letter that is to replace the letter b in the data file,and so on.Assume that all punctuations is to be replaced by spaces .Check to be sure that the key does not map two different characters to the same one during the encoding.

Share this post


Link to post
Share on other sites

hehe kalo mcm ni punya gaya org nak tlng pun susah.

kami bukan student nak buatkan assignment utk ko 100%.

lain la kalo bg $$$.

tunjukkan hasil keje yg telah ko buat setakat mn dulu.

br kitaorg blh bantu..

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...