473,386 Members | 1,790 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

2 Days Left ...please Help

2 DAYS TO SUBMIT AND I COULD NOT GET MY HEAD AROUND TO DO IT , I HAVE BEEN STUDING VERY HARD FOR ALL SUBJECTS INCLUDING ANSI C BUT ITS HARD . PLEASE SAVE ME . GOD BLESS U.

Hello friends i have to do the following thing and i am still learning ANSI C .
Can anyone tell me how to go about it . please.
thanks
---------------------------------------
write a program to provide predictive text input. As a user types words of a sentence the application should suggest (attempt to predict) the word to be typed.
The user should be given the option of selecting the predicted word input or continuing to input the word.
A typical output is shown below. Bold represents user inputs. Note after each prompt from the application a new line of text is output.

i.e
“T” the-1, there-2, that-3, select or continue! “1”
“The c” cat-1 coat-2, select or continue! “o”
“The co” cook-1 clock-2, cot-3, select or continue! “s”
etc


Guide :
Create a file to hold a dictionary of words. (use notepad to create the file.)

I must create and use a number of functions.

I must use pointers when comparing strings, and cant use the library function strcmp.



I am free to make sensible assumptions/modifications to the specification in order to improve my program.

** the program is meant for only showing one line for e - JAVA IS THE BEST.
so how should my txt file look like for it ? also how will i use it in the code.
PLEASE PLEASE help me .... TAKE IT AS CHARITY WORK .
coz i am new to C. there are many great C ppl out there who can wirte the code easily .
i am now suffering from insomnia and stress as i cant get this thing .
please release me from my worries by helping. any good person .

--------------------------------------------------------------------------------
Nov 29 '06 #1
3 1530
r035198x
13,262 8TB
2 DAYS TO SUBMIT AND I COULD NOT GET MY HEAD AROUND TO DO IT , I HAVE BEEN STUDING VERY HARD FOR ALL SUBJECTS INCLUDING ANSI C BUT ITS HARD . PLEASE SAVE ME . GOD BLESS U.

Hello friends i have to do the following thing and i am still learning ANSI C .
Can anyone tell me how to go about it . please.
thanks
---------------------------------------
write a program to provide predictive text input. As a user types words of a sentence the application should suggest (attempt to predict) the word to be typed.
The user should be given the option of selecting the predicted word input or continuing to input the word.
A typical output is shown below. Bold represents user inputs. Note after each prompt from the application a new line of text is output.

i.e
“T” the-1, there-2, that-3, select or continue! “1”
“The c” cat-1 coat-2, select or continue! “o”
“The co” cook-1 clock-2, cot-3, select or continue! “s”
etc


Guide :
Create a file to hold a dictionary of words. (use notepad to create the file.)

I must create and use a number of functions.

I must use pointers when comparing strings, and cant use the library function strcmp.



I am free to make sensible assumptions/modifications to the specification in order to improve my program.

** the program is meant for only showing one line for e - JAVA IS THE BEST.
so how should my txt file look like for it ? also how will i use it in the code.
PLEASE PLEASE help me .... TAKE IT AS CHARITY WORK .
coz i am new to C. there are many great C ppl out there who can wirte the code easily .
i am now suffering from insomnia and stress as i cant get this thing .
please release me from my worries by helping. any good person .

--------------------------------------------------------------------------------
I suppose you want some one to write the whole program for you without a single line of your own code?
Nov 30 '06 #2
i think you'd better post something so people will analyze the problem of your program, we are very willing to help you if you'd post something that can benifit us also on how to proceed.
Nov 30 '06 #3
DeMan
1,806 1GB
As thefarmer said, this is not the first time this very assignment has been posted. Please submit ANY efforts you have made toward completing this and someone may be able to help. Most people haven't the time to do everyone's assignments, but are more than willing to help if you can show EXACTLY what you've done and where you're stuck
Nov 30 '06 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: carl.barrett | last post by:
Hi, I have a continuous form based on a query ( I will also be creating a report based on the same query). There are 2 fields: Date Obtained and Date Of Expiry I want a further 3 columns...
0
by: jonipony | last post by:
HELP: Float Left box is drifting to the right in ie! -------------------------- I need som HELP with my CSS coding! On the following web page my design falls apart at screen size 800 x 600...
2
by: KMEscherich | last post by:
Am using Access '97 This is going on a form. Hi there, would like to know if there is a way to count down the days from when a user enters a date in a specific date field. If so, can someone...
7
by: burnside | last post by:
Hi - long time viewer, first time poster i have a car booking system that stores the startdate and the enddate of a booking as well as car/customer details. i want to produce an efficiency report...
4
by: cjohns | last post by:
I am brand new to programing and am trying to write a C++ program that calculates how many days are left to a persons birthday. I need to make a function for the leap years, and to get number of...
3
by: jaeden99 | last post by:
I was wandering if nyone has a script to move files older than x days old? i've seen several to delete, but I don't want to delete. I would like to create a backup of the files first verify with...
5
FishVal
by: FishVal | last post by:
IMHO, the following is not a how-to-do instruction to solve a particular problem but more a concept-proof stuff demonstrating possibilities of SQL. So, let us say the problem is to calculate...
0
by: uno7031 | last post by:
Help Please!!! Adding 5 Days to another Date in an access query Good Morning, Help please…. I am new to access and trying to write a query that will add 5 days between a RecDate and a...
2
by: mukeshrasm | last post by:
Hi I want to calculate the number of days left for a particular event so when ever a user login to the website or visits the site may be able to view how many days left for that event. Example:...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.