Need a Walkthrough Of Concordance Program

I am building a concordance program that will search every verse and c

  • (4 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »

51 Replies - 10849 Views - Last Post: 11 December 2008 - 10:49 PM Rate Topic: -----

#1 Zerobu  Icon User is offline

  • Black Hatter

Reputation: 13
  • View blog
  • Posts: 1,822
  • Joined: 14-January 08

Need a Walkthrough Of Concordance Program

Post icon  Posted 05 December 2008 - 06:30 PM

Ok so i am building a concordance program. Here is the requirements.


You are to write a C++ program that creates a Bible concordance for a given set of words. For each word, the
concordance will list the word followed by the book, chapter, and verse containing the word. The word list will be in a filecalled words.txt, and it will contain one word per line as shown in the box below.

The file will not contain hyphenated words like Christ-like or multiple words like Holy Spirit.
Your program will search every line of the Bible for each occurrence of the word. The entire
text of the Bible (King James Version) can be found in

\\cs1\Classes\comp170\Concordance\bible.txt. An excerpt is shown below:

Book 01 Genesis
001:001 In the beginning God created the heaven and the earth.
001:002 And the earth was without form, and void; and darkness was
upon the face of the deep. And the Spirit of God moved upon
the face of the waters.
Etc…
050:026 So Joseph died, being an hundred and ten years old: and they
embalmed him, and he was put in a coffin in Egypt.
Book 02 Exodus
001:001 Now these are the names of the children of Israel, which came
into Egypt; every man and his household came with Jacob.
001:002 Reuben, Simeon, Levi, and Judah,
Etc…

Note that the beginning of each book is on a line that starts with Book XX where XX corresponds to the book’s order.
Then there is a tab character followed by the book’s title. Verses always start with XXX:YYY where XXX is the chapter and
YYY is the verse. Long verses are continued on the next line with 8 spaces preceding it. A blank line always separates
each verse.

Given the words.txt above, your program will output the concordance to a text file called conc.txt. The concordance
should be formatted with a single tab before each passage like so:

Christ
Matthew 1:1
Matthew 1:16
Matthew 1:17
Etc…
righteous
Genesis 7:1
Genesis 18:23
Etc…
Damascus
Genesis 14:15
Genesis 15:2
2 Samuel 8:5
Etc…
Christ
righteous
Damascus


Note that the chapter and verses have been altered; the string 015:002 is changed to 15:2.
Your program should match words from words.txt with the Bible verses very carefully. If God is the word being searched for, it should match God and god, but it should not match godly or Magod. This means the find function is not sufficient for doing the string search. You will need to write your own string searching/matching function which is case insensitive and makes sure there are no alpha characters before or after the matched string (anti-god and God’s should also match).

You will likely find one or more of the following functions to be useful in writing your function:


string s = “Jesus, the 1 Christ”;
if (isalpha(s[5])) // returns false
if (isdigit(s[11])) // returns true
char lowercase = tolower(s[0]); // returns 'j'
if (s.compare(0, 5, “Jesus”) == 0) // returns 0

When determining if a word is contained in a verse, you may find it useful to first put the entire verse into a single string.
This means you will read potentially multiple lines and place them all into a single string. Then you can use your custom
search function to tell you if the word occurs in the verse.

Your program should also output its status to the screen since it can take a long time for your program to run. Here is an
example:
Building concordance...
Processing Christ...
Processing righteous...
Processing Damascus...
Done. Wrote to conc.txt.

In the \\cs1\Classes\comp170\Concordance folder, you will find a words.txt and the resulting conc.txt file that my
program produced. You may find this useful for testing your program (comparing your results with mine). I’ve also
provided my BibleConcordance.exe and BibleConcordance-EX.exe (solution to extra credit) files so you can do further
testing.

You will find it useful to use some type of file comparison program to check your results with mine. ExamDiff is a good
freeware program (search for it with Google).
Like the previous projects, make sure your code adheres to McCown’s Writing Clean Code handout. Submit your program
to Easel (http://cs.harding.edu/easel/) by the due date.

McChallenge Extra Credit: You can get 1% added to your final grade for improving your program so that the output in
conc.txt contains the five surrounding words (two words in front of the key word and two words behind it) next to each
verse. Only words within the sentence should be displayed, so if there are less than five words, display the entire
sentence. If the key word is at the beginning of the sentence, display the four words after it; if it at the end of the
sentence, display the four words in front, etc. Display three spaces between the verse and the five words. Here is
example output:
Christ
Matthew 1:1 of Jesus Christ, the son
Matthew 1:16 Jesus, who is called Christ.
Matthew 1:17 Babylon unto Christ are fourteen



I also have an executable of the working program. If anybody want's to get the executable just email me and i will send it to you. My email address is sharris2@harding.edu.



Ok So here is what i want to do first. I want to read in a word to find from, words.txt. Here is what i have done so far.
include<iostream>
#include<string>
#include<fstream>
using namespace std;

void main()
{
	ifstream bible;
	ifstream words;
	ofstream concordance;
	string word_in;




	concordance.open("conc.txt");
	bible.open("bible.txt");
	words.open("words.txt");

	while(!words.eof())
	{
		getline(words,word_in);


	}


}

	


Now i want to find a way to identify the various books of the bible.

This post has been edited by Steffan: 05 December 2008 - 06:43 PM


Is This A Good Question/Topic? 0
  • +

Replies To: Need a Walkthrough Of Concordance Program

#2 Zerobu  Icon User is offline

  • Black Hatter

Reputation: 13
  • View blog
  • Posts: 1,822
  • Joined: 14-January 08

Re: Need a Walkthrough Of Concordance Program

Posted 05 December 2008 - 06:38 PM

bump

I have the bible in a txt file but i couldn't upload it because it was too big, but if i can email it to you if you want, Just drop a line at sharris2@harding.edu
Was This Post Helpful? 0
  • +
  • -

#3 janotte  Icon User is offline

  • code > sword
  • member icon

Reputation: 990
  • View blog
  • Posts: 5,141
  • Joined: 28-September 06

Re: Need a Walkthrough Of Concordance Program

Posted 05 December 2008 - 09:57 PM

You are off to a good start:

Here's a couple of tweaks to make to what you posted.

1 - ensure every "include" line starts with "#"

2 - In C++ it is a requirement that main() returns an integer so "void main()" should be "int main()" and you should have a "return 0;" line at the end of main (just before the closing brace ( } )).

3 - You should really have some checking statements to ensure that when you ask for a file to be opened it really did open the file.

e.g.
if (myfile.is_open()) { /* ok, proceed with output */ }

See here for more info:
http://www.cplusplus...rial/files.html

4 - Have a try at writing some code you think will search the file 'bible.txt' for 'word'. It need not be brilliant but have a try and then get back to us and let's see if we can help you make it better. Note your teacher's instructions that the built in features are not going to give you the right result. You are going to need to search for the word and then consider the surrounding characters to see if they meet the relevant criteria or not. Perhaps you could have a
'peek' at them (that's a possible hint BTW).

Anyway have a substantial try at the search algorithm and let's see if we can't help you forward.

[EDIT] fix ugly typo [/EDIT]

This post has been edited by janotte: 05 December 2008 - 10:04 PM

Was This Post Helpful? 0
  • +
  • -

#4 KYA  Icon User is offline

  • g++ jameson.cpp -o beverage
  • member icon

Reputation: 3101
  • View blog
  • Posts: 19,142
  • Joined: 14-September 07

Re: Need a Walkthrough Of Concordance Program

Posted 05 December 2008 - 10:01 PM

Is obtaining a word from words.txt random? Here's some code for thought:

 int messageNumber;
  int count;
  string message;
  ifstream in;

  in.open("words.txt");
  messageNumber = rand() % someNumber; //maybe someNumber is the #of lines in the text file

  for(int i = 0; i < rand()%messageNumber+1; i++)
  {
	getline(in, message);
  }
  cout << message; //or use it to search the other text file


Was This Post Helpful? 0
  • +
  • -

#5 Zerobu  Icon User is offline

  • Black Hatter

Reputation: 13
  • View blog
  • Posts: 1,822
  • Joined: 14-January 08

Re: Need a Walkthrough Of Concordance Program

Posted 05 December 2008 - 10:12 PM

the data in the file is sequencial, which means its one after the other eg.

Christ
God
Jesus
Was This Post Helpful? 0
  • +
  • -

#6 janotte  Icon User is offline

  • code > sword
  • member icon

Reputation: 990
  • View blog
  • Posts: 5,141
  • Joined: 28-September 06

Re: Need a Walkthrough Of Concordance Program

Posted 05 December 2008 - 10:13 PM

View PostKYA, on 5 Dec, 2008 - 09:01 PM, said:

Is obtaining a word from words.txt random?


Anything is possible in this big bad world but it seems most likely the teacher is going to expect the output to be in the order of words as found in the 'words.txt' file.

Otherwise marking the assignments is going to be that much harder and every teacher I know has more than enough to do when it comes time for marking without adding in any extra obscufation to the challenge.

But, as always, the teacher is the 'decider' in these things (they award the marks) so if you have any doubts Steffan check with the teacher's expectations.

A simple question like "Should the output be in the same order as the words in 'words.txt'?" is not going to be unwelcome.
Was This Post Helpful? 0
  • +
  • -

#7 KYA  Icon User is offline

  • g++ jameson.cpp -o beverage
  • member icon

Reputation: 3101
  • View blog
  • Posts: 19,142
  • Joined: 14-September 07

Re: Need a Walkthrough Of Concordance Program

Posted 05 December 2008 - 10:14 PM

I understand that, but do you pick what word to search for randomly or sequentially?

My post makes no sense after jan's. Ok so we go sequentially through the list. We can get that easy enough. The next challenge is to run through the entire text of the bible and search. I would have a counter, a string with the current search word, and a temp to compare it to. Then simply run through the entire file until EOF.

I would also verify that works before running through the entire text file. [which is probably huge a moungous]

This post has been edited by KYA: 05 December 2008 - 10:20 PM

Was This Post Helpful? 0
  • +
  • -

#8 Zerobu  Icon User is offline

  • Black Hatter

Reputation: 13
  • View blog
  • Posts: 1,822
  • Joined: 14-January 08

Re: Need a Walkthrough Of Concordance Program

Posted 05 December 2008 - 10:19 PM

Just to simplify things i have provided the book of Jude which is very short


Book 65 Jude

001:001 Jude, the servant of Jesus Christ, and brother of James, to
them that are sanctified by God the Father, and preserved in
Jesus Christ, and called:

001:002 Mercy unto you, and peace, and love, be multiplied.

001:003 Beloved, when I gave all diligence to write unto you of the
common salvation, it was needful for me to write unto you, and
exhort you that ye should earnestly contend for the faith
which was once delivered unto the saints.

001:004 For there are certain men crept in unawares, who were before
of old ordained to this condemnation, ungodly men, turning the
grace of our God into lasciviousness, and denying the only
Lord God, and our Lord Jesus Christ.

001:005 I will therefore put you in remembrance, though ye once knew
this, how that the Lord, having saved the people out of the
land of Egypt, afterward destroyed them that believed not.

001:006 And the angels which kept not their first estate, but left
their own habitation, he hath reserved in everlasting chains
under darkness unto the judgment of the great day.

001:007 Even as Sodom and Gomorrha, and the cities about them in like
manner, giving themselves over to fornication, and going after
strange flesh, are set forth for an example, suffering the
vengeance of eternal fire.

001:008 Likewise also these filthy dreamers defile the flesh, despise
dominion, and speak evil of dignities.

001:009 Yet Michael the archangel, when contending with the devil he
disputed about the body of Moses, durst not bring against him
a railing accusation, but said, The Lord rebuke thee.

001:010 But these speak evil of those things which they know not: but
what they know naturally, as brute beasts, in those things
they corrupt themselves.

001:011 Woe unto them! for they have gone in the way of Cain, and ran
greedily after the error of Balaam for reward, and perished in
the gainsaying of Core.

001:012 These are spots in your feasts of charity, when they feast
with you, feeding themselves without fear: clouds they are
without water, carried about of winds; trees whose fruit
withereth, without fruit, twice dead, plucked up by the roots;

001:013 Raging waves of the sea, foaming out their own shame;
wandering stars, to whom is reserved the blackness of darkness
for ever.

001:014 And Enoch also, the seventh from Adam, prophesied of these,
saying, Behold, the Lord cometh with ten thousands of his
saints,

001:015 To execute judgment upon all, and to convince all that are
ungodly among them of all their ungodly deeds which they have
ungodly committed, and of all their hard speeches which
ungodly sinners have spoken against him.

001:016 These are murmurers, complainers, walking after their own
lusts; and their mouth speaketh great swelling words, having
men's persons in admiration because of advantage.

001:017 But, beloved, remember ye the words which were spoken before
of the apostles of our Lord Jesus Christ;

001:018 How that they told you there should be mockers in the last
time, who should walk after their own ungodly lusts.

001:019 These be they who separate themselves, sensual, having not the
Spirit.

001:020 But ye, beloved, building up yourselves on your most holy
faith, praying in the Holy Ghost,

001:021 Keep yourselves in the love of God, looking for the mercy of
our Lord Jesus Christ unto eternal life.

001:022 And of some have compassion, making a difference:

001:023 And others save with fear, pulling them out of the fire;
hating even the garment spotted by the flesh.

001:024 Now unto him that is able to keep you from falling, and to
present you faultless before the presence of his glory with
exceeding joy,

001:025 To the only wise God our Saviour, be glory and majesty,
dominion and power, both now and ever. Amen.


View PostKYA, on 5 Dec, 2008 - 09:14 PM, said:

I understand that, but do you pick what word to search for randomly or sequentially?


Well the words in the file should be searched for in the order they are listed.
Was This Post Helpful? 0
  • +
  • -

#9 KYA  Icon User is offline

  • g++ jameson.cpp -o beverage
  • member icon

Reputation: 3101
  • View blog
  • Posts: 19,142
  • Joined: 14-September 07

Re: Need a Walkthrough Of Concordance Program

Posted 05 December 2008 - 10:20 PM

I accept your challenge. Prepare to be amazed a fied. I'll give myself 5 minutes to write a snippet that can be expanded to the whole bible. Ready? Go!.
Was This Post Helpful? 0
  • +
  • -

#10 KYA  Icon User is offline

  • g++ jameson.cpp -o beverage
  • member icon

Reputation: 3101
  • View blog
  • Posts: 19,142
  • Joined: 14-September 07

Re: Need a Walkthrough Of Concordance Program

Posted 05 December 2008 - 10:25 PM

Stage one, reading a file for a given word, predefined for testing purposes:

#include <fstream>
#include <iostream>
#include <string>
using namespace std;

int main()
{
	fstream judeReader;
	judeReader.open("Jude.txt");

	string searchTerm = "Jesus"; //"God", etc...
	string temp;
	int counter = 0;

	while(!judeReader.eof())
	{
		judeReader >> temp;
		if (temp == searchTerm)
		{
			counter++;
		}
	}

	cout << searchTerm << " appeared " << counter << " times." << endl;

	judeReader.close();
	return 0;
}



whew just in time

edited for italics

This post has been edited by KYA: 05 December 2008 - 10:26 PM

Was This Post Helpful? 0
  • +
  • -

#11 JBabineau  Icon User is offline

  • D.I.C Head

Reputation: 6
  • View blog
  • Posts: 68
  • Joined: 05-December 08

Re: Need a Walkthrough Of Concordance Program

Posted 05 December 2008 - 10:42 PM

Your time notation is going to be ridiculous something like
O(n) where n is the number of words in the dictionary....
may take some time to get an answer so don't get frustrated if it looks like your program seems to be doing nothing.
Was This Post Helpful? 0
  • +
  • -

#12 janotte  Icon User is offline

  • code > sword
  • member icon

Reputation: 990
  • View blog
  • Posts: 5,141
  • Joined: 28-September 06

Re: Need a Walkthrough Of Concordance Program

Posted 05 December 2008 - 10:47 PM

Apologies if I am telling you things you already know but you do understand the concept of what KYA is doing here, don't you?

He's giving you chunks of code that demonstrate concepts that you can use to solve your problem.

Please don't fall into the trap of some visitors to this forum who then start pasting these chunks of code into their programs without really understanding what they do and/or what purpose they serve in reaching the ultimate goal.

Think about how KYA has structured his loops and the conditions he is using to control them and see how those ideas might fit into your solution (this one will be used more than once I'm pretty sure).

Again, sorry if that seemed insulting to your intelligence but a lot of people seem to misunderstand what type of help they are getting and let that misunderstanding mislead them.
Was This Post Helpful? 0
  • +
  • -

#13 Zerobu  Icon User is offline

  • Black Hatter

Reputation: 13
  • View blog
  • Posts: 1,822
  • Joined: 14-January 08

Re: Need a Walkthrough Of Concordance Program

Posted 05 December 2008 - 10:58 PM

Christ
Matthew 1:1 of Jesus Christ, the son
Matthew 1:16 Jesus, who is called Christ.
Matthew 1:17 Babylon unto Christ are fourteen
Matthew 1:18 of Jesus Christ was on
Matthew 2:4 them where Christ should be
Matthew 11:2 works of Christ, he sent
Matthew 16:16 art the Christ, the Son
Matthew 16:20 he was Jesus the Christ.
Matthew 22:42 ye of Christ? whose son
Matthew 23:8 Master, even Christ; and all
Matthew 23:10 is your Master, even Christ.
Matthew 24:5 I am Christ; and shall
Matthew 24:23 here is Christ, or there;
Matthew 26:63 be the Christ, the Son
Matthew 26:68 us, thou Christ, Who is
Matthew 27:17 Jesus which is called Christ?
Matthew 27:22 is called Christ? They all
Mark 1:1 of Jesus Christ, the Son
Mark 8:29 him, Thou art the Christ.
Mark 9:41 belong to Christ, verily I
Mark 12:35 scribes that Christ is the
Mark 13:6 I am Christ; and shall
Mark 13:21 here is Christ; or, lo,
Mark 14:61 thou the Christ, the Son
Mark 15:32 Let Christ the King of
Luke 2:11 which is Christ the Lord.
Luke 2:26 had seen the Lord's Christ.
Luke 3:15 were the Christ, or not;
Luke 4:41 Thou art Christ the Son
Luke 9:20 said, The Christ of God.
Luke 20:41 they that Christ is David's
Luke 21:8 I am Christ; and the
Luke 22:67 thou the Christ? tell us.
Luke 23:2 himself is Christ a King.
Luke 23:35 he be Christ, the chosen
Luke 23:39 thou be Christ, save thyself
Luke 24:26 Ought not Christ to have
Luke 24:46 it behoved Christ to suffer,
John 1:17 truth came by Jesus Christ.
John 1:20 I am not the Christ.
John 1:25 not that Christ, nor Elias,
John 1:41 is, being interpreted, the Christ.
John 3:28 not the Christ, but that
John 4:25 is called Christ: when he
John 4:29 is not this the Christ?
John 4:42 indeed the Christ, the Saviour
John 6:69 art that Christ, the Son
John 7:26 this is the very Christ?
John 7:27 but when Christ cometh, no
John 7:31 said, When Christ cometh, will
John 7:41 is the Christ. But some
John 7:42 said, That Christ cometh of
John 9:22 he was Christ, he should
John 10:24 be the Christ, tell us
John 11:27 art the Christ, the Son
John 12:34 law that Christ abideth for
John 17:3 and Jesus Christ, whom thou
John 20:31 is the Christ, the Son
Acts 2:30 raise up Christ to sit
Acts 2:31 resurrection of Christ, that his
Acts 2:36 crucified, both Lord and Christ.
Acts 2:38 of Jesus Christ for the
Acts 3:6 of Jesus Christ of Nazareth
Acts 3:18 prophets, that Christ should suffer,
Acts 3:20 send Jesus Christ, which before
Acts 4:10 of Jesus Christ of Nazareth,
Acts 4:26 Lord, and against his Christ.
Acts 5:42 teach and preach Jesus Christ.
Acts 8:5 and preached Christ unto them.
Acts 8:12 of Jesus Christ, they were
Acts 8:37 that Jesus Christ is the
Acts 9:20 he preached Christ in the
Acts 9:22 that this is very Christ.
Acts 9:34 Aeneas, Jesus Christ maketh thee
Acts 10:36 by Jesus Christ: (he is
Acts 11:17 Lord Jesus Christ; what was
Acts 15:11 LORD Jesus Christ we shall
Acts 15:26 of our Lord Jesus Christ.
Acts 16:18 of Jesus Christ to come
Acts 16:31 Lord Jesus Christ, and thou
Acts 17:3 alleging, that Christ must needs
Acts 18:5 Jews that Jesus was Christ.
Acts 18:28 scriptures that Jesus was Christ.
Acts 19:4 that is, on Christ Jesus.
Acts 20:21 toward our Lord Jesus Christ.
Acts 24:24 concerning the faith in Christ.
Acts 26:23 That Christ should suffer, and
Acts 28:31 Lord Jesus Christ, with all
Romans 1:1 of Jesus Christ, called to
Romans 1:3 Son Jesus Christ our Lord,
Romans 1:6 the called of Jesus Christ:
Romans 1:7 and the Lord Jesus Christ.
Romans 1:8 through Jesus Christ for you
Romans 1:16 gospel of Christ: for it
Romans 2:16 by Jesus Christ according to
Romans 3:22 of Jesus Christ unto all
Romans 3:24 that is in Christ Jesus:
Romans 5:1 through our Lord Jesus Christ:
Romans 5:6 due time Christ died for
Romans 5:8 yet sinners, Christ died for
Romans 5:11 Lord Jesus Christ, by whom
Romans 5:15 man, Jesus Christ, hath abounded
Romans 5:17 life by one, Jesus Christ.)
Romans 5:21 by Jesus Christ our Lord.
Romans 6:3 into Jesus Christ were baptized
Romans 6:4 like as Christ was raised
Romans 6:8 dead with Christ, we believe
Romans 6:9 Knowing that Christ being raised
Romans 6:11 through Jesus Christ our Lord.
Romans 6:23 through Jesus Christ our Lord.
Romans 7:4 body of Christ; that ye
Romans 7:25 through Jesus Christ our Lord.
Romans 8:1 are in Christ Jesus, who
Romans 8:2 life in Christ Jesus hath
Romans 8:9 Spirit of Christ, he is
Romans 8:10 And if Christ be in
Romans 8:11 raised up Christ from the
Romans 8:17 joint-heirs with Christ; if so
Romans 8:34 It is Christ that died,
Romans 8:35 love of Christ? shall tribulation,
Romans 8:39 is in Christ Jesus our
Romans 9:1 truth in Christ, I lie
Romans 9:3 accursed from Christ for my
Romans 9:5 the flesh Christ came, who
Romans 10:4 For Christ is the end
Romans 10:6 to bring Christ down from
Romans 10:7 bring up Christ again from
Romans 12:5 body in Christ, and every
Romans 13:14 Lord Jesus Christ, and make
Romans 14:9 this end Christ both died,
Romans 14:10 the judgment seat of Christ.
Romans 14:15 meat, for whom Christ died.
Romans 14:18 things serveth Christ is acceptable
Romans 15:3 For even Christ pleased not
Romans 15:5 another according to Christ Jesus:
Romans 15:6 of our Lord Jesus Christ.
Romans 15:7 another, as Christ also received
Romans 15:8 that Jesus Christ was a
Romans 15:16 of Jesus Christ to the
Romans 15:17 through Jesus Christ in those
Romans 15:18 things which Christ hath not
Romans 15:19 preached the gospel of Christ.
Romans 15:20 not where Christ was named,
Romans 15:29 of the gospel of Christ.
Romans 15:30 Lord Jesus Christ's sake, and
Romans 16:3 my helpers in Christ Jesus:
Romans 16:5 firstfruits of Achaia unto Christ.
Romans 16:7 were in Christ before me.
Romans 16:9 helper in Christ, and Stachys
Romans 16:10 approved in Christ. Salute them
Romans 16:16 churches of Christ salute you.
Romans 16:18 Lord Jesus Christ, but their
Romans 16:20 Lord Jesus Christ be with
Romans 16:24 Lord Jesus Christ be with
Romans 16:25 of Jesus Christ, according to
Romans 16:27 through Jesus Christ for ever.
1 Corinthians 1:1 of Jesus Christ through the
1 Corinthians 1:2 sanctified in Christ Jesus, called
1 Corinthians 1:3 from the Lord Jesus Christ.
1 Corinthians 1:4 given you by Jesus Christ;
1 Corinthians 1:6 testimony of Christ was confirmed
1 Corinthians 1:7 of our Lord Jesus Christ:
1 Corinthians 1:8 of our Lord Jesus Christ.
1 Corinthians 1:9 Son Jesus Christ our Lord.
1 Corinthians 1:10 Lord Jesus Christ, that ye
1 Corinthians 1:12 Cephas; and I of Christ.
1 Corinthians 1:13 Is Christ divided? was Paul
1 Corinthians 1:17 For Christ sent me not
1 Corinthians 1:23 we preach Christ crucified, unto
1 Corinthians 1:24 and Greeks, Christ the power
1 Corinthians 1:30 ye in Christ Jesus, who
1 Corinthians 2:2 save Jesus Christ, and him
1 Corinthians 2:16 have the mind of Christ.
1 Corinthians 3:1 as unto babes in Christ.
1 Corinthians 3:11 laid, which is Jesus Christ.
1 Corinthians 3:23 ye are Christ's; and Christ
1 Corinthians 4:1 ministers of Christ, and stewards
1 Corinthians 4:10 fools for Christ's sake, but
1 Corinthians 4:15 instructers in Christ, yet have
1 Corinthians 4:17 be in Christ, as I
1 Corinthians 5:4 Lord Jesus Christ, when ye
1 Corinthians 5:7 For even Christ our passover
1 Corinthians 6:15 members of Christ? shall I
1 Corinthians 7:22 being free, is Christ's servant.
1 Corinthians 8:6 Lord Jesus Christ, by whom
1 Corinthians 8:11 perish, for whom Christ died?
1 Corinthians 8:12 conscience, ye sin against Christ.
1 Corinthians 9:1 seen Jesus Christ our Lord?
1 Corinthians 9:12 hinder the gospel of Christ.
1 Corinthians 9:18 gospel of Christ without charge,
1 Corinthians 9:21 law to Christ,) that I
1 Corinthians 10:4 and that Rock was Christ.
1 Corinthians 10:9 us tempt Christ, as some
1 Corinthians 10:16 blood of Christ? The bread
1 Corinthians 11:1 I also am of Christ.
1 Corinthians 11:3 man is Christ; and the
1 Corinthians 12:12 body: so also is Christ.
1 Corinthians 12:27 body of Christ, and members
1 Corinthians 15:3 how that Christ died for
1 Corinthians 15:12 Now if Christ be preached
1 Corinthians 15:13 then is Christ not risen:
1 Corinthians 15:14 And if Christ be not
1 Corinthians 15:15 raised up Christ: whom he
1 Corinthians 15:16 then is not Christ raised:
1 Corinthians 15:17 And if Christ be not
1 Corinthians 15:18 asleep in Christ are perished.
1 Corinthians 15:19 hope in Christ, we are
1 Corinthians 15:20 now is Christ risen from
1 Corinthians 15:22 so in Christ shall all
1 Corinthians 15:23 own order: Christ the firstfruits;
1 Corinthians 15:31 have in Christ Jesus our
1 Corinthians 15:57 through our Lord Jesus Christ.
1 Corinthians 16:22 Lord Jesus Christ, let him
1 Corinthians 16:23 Lord Jesus Christ be with
1 Corinthians 16:24 all in Christ Jesus. Amen.
2 Corinthians 1:1 of Jesus Christ by the
2 Corinthians 1:2 from the Lord Jesus Christ.
2 Corinthians 1:3 Lord Jesus Christ, the Father
2 Corinthians 1:5 sufferings of Christ abound in
2 Corinthians 1:19 God, Jesus Christ, who was
2 Corinthians 1:21 you in Christ, and hath
2 Corinthians 2:10 in the person of Christ;
2 Corinthians 2:12 to preach Christ's gospel, and
2 Corinthians 2:14 triumph in Christ, and maketh
2 Corinthians 2:15 savour of Christ, in them
2 Corinthians 2:17 God speak we in Christ.
2 Corinthians 3:3 epistle of Christ ministered by
2 Corinthians 3:4 we through Christ to God-ward:
2 Corinthians 3:14 is done away in Christ.
2 Corinthians 4:4 gospel of Christ, who is
2 Corinthians 4:5 ourselves, but Christ Jesus the
2 Corinthians 4:6 the face of Jesus Christ.
2 Corinthians 5:10 seat of Christ; that every
2 Corinthians 5:14 love of Christ constraineth us;
2 Corinthians 5:16 have known Christ after the
2 Corinthians 5:17 be in Christ, he is
2 Corinthians 5:18 by Jesus Christ, and hath
2 Corinthians 5:19 was in Christ, reconciling the
2 Corinthians 5:20 ambassadors for Christ, as though
2 Corinthians 6:15 concord hath Christ with Belial?
2 Corinthians 8:9 Lord Jesus Christ, that, though
2 Corinthians 8:23 and the glory of Christ.
2 Corinthians 9:13 gospel of Christ, and for
2 Corinthians 10:1 gentleness of Christ, who in
2 Corinthians 10:5 to the obedience of Christ;
2 Corinthians 10:7 he is Christ's, let him
2 Corinthians 10:14 preaching the gospel of Christ:
2 Corinthians 11:2 a chaste virgin to Christ.
2 Corinthians 11:3 simplicity that is in Christ.
2 Corinthians 11:10 truth of Christ is in
2 Corinthians 11:13 into the apostles of Christ.
2 Corinthians 11:23 ministers of Christ? (I speak
2 Corinthians 11:31 Lord Jesus Christ, which is
2 Corinthians 12:2 man in Christ above fourteen
2 Corinthians 12:9 power of Christ may rest
2 Corinthians 12:10 distresses for Christ's sake: for
2 Corinthians 12:19 God in Christ: but we
2 Corinthians 13:3 proof of Christ speaking in
2 Corinthians 13:5 that Jesus Christ is in
2 Corinthians 13:14 Lord Jesus Christ, and the
Galatians 1:1 by Jesus Christ, and God
Galatians 1:3 from our Lord Jesus Christ,
Galatians 1:6 grace of Christ unto another
Galatians 1:7 pervert the gospel of Christ.
Galatians 1:10 be the servant of Christ.
Galatians 1:12 the revelation of Jesus Christ.
Galatians 1:22 Judaea which were in Christ:
Galatians 2:4 have in Christ Jesus, that
Galatians 2:16 of Jesus Christ, even we
Galatians 2:17 justified by Christ, we ourselves
Galatians 2:20 crucified with Christ: neverthless I
Galatians 2:21 law, then Christ is dead
Galatians 3:1 eyes Jesus Christ hath been
Galatians 3:13 Christ hath redeemed us from
Galatians 3:14 through Jesus Christ; that we
Galatians 3:16 thy seed, which is Christ.
Galatians 3:17 God in Christ, the law,
Galatians 3:22 of Jesus Christ might be
Galatians 3:24 us unto Christ, that we
Galatians 3:26 by faith in Christ Jesus.
Galatians 3:27 baptized into Christ have put
Galatians 3:28 all one in Christ Jesus.
Galatians 3:29 ye be Christ's, then are
Galatians 4:7 heir of God through Christ.
Galatians 4:14 God, even as Christ Jesus.
Galatians 4:19 again until Christ be formed
Galatians 5:1 liberty wherewith Christ hath made
Galatians 5:2 be circumcised, Christ shall profit
Galatians 5:4 Christ is become of no
Galatians 5:6 in Jesus Christ neither circumcision
Galatians 5:24 that are Christ's have crucified
Galatians 6:2 fulfil the law of Christ.
Galatians 6:12 for the cross of Christ.
Galatians 6:14 Lord Jesus Christ, by whom
Galatians 6:15 For in Christ Jesus neither
Galatians 6:18 Lord Jesus Christ be with
Ephesians 1:1 of Jesus Christ by the
Ephesians 1:2 from the Lord Jesus Christ.
Ephesians 1:3 Lord Jesus Christ, who hath
Ephesians 1:5 by Jesus Christ to himself,
Ephesians 1:10 things in Christ, both which
Ephesians 1:12 who first trusted in Christ.
Ephesians 1:17 Lord Jesus Christ, the Father
Ephesians 1:20 wrought in Christ, when he
Ephesians 2:5 together with Christ, (by grace
Ephesians 2:6 heavenly places in Christ Jesus:
Ephesians 2:7 toward us through Christ Jesus.
Ephesians 2:10 created in Christ Jesus unto
Ephesians 2:12 were without Christ, being aliens
Ephesians 2:13 now in Christ Jesus ye
Ephesians 2:20 prophets, Jesus Christ himself being
Ephesians 3:1 of Jesus Christ for you
Ephesians 3:4 in the mystery of Christ)
Ephesians 3:6 promise in Christ by the
Ephesians 3:8 the unsearchable riches of Christ;
Ephesians 3:9 all things by Jesus Christ:
Ephesians 3:11 purposed in Christ Jesus our
Ephesians 3:14 of our Lord Jesus Christ,
Ephesians 3:17 That Christ may dwell in
Ephesians 3:19 love of Christ, which passeth
Ephesians 3:21 church by Christ Jesus throughout
Ephesians 4:7 of the gift of Christ.
Ephesians 4:12 of the body of Christ:
Ephesians 4:13 of the fulness of Christ:
Ephesians 4:15 is the head, even Christ:
Ephesians 4:20 have not so learned Christ;
Ephesians 4:32 God for Christ's sake hath
Ephesians 5:2 love, as Christ also hath
Ephesians 5:5 kingdom of Christ and of
Ephesians 5:14 dead, and Christ shall give
Ephesians 5:20 of our Lord Jesus Christ;
Ephesians 5:23 even as Christ is the
Ephesians 5:24 subject unto Christ, so let
Ephesians 5:25 even as Christ also loved
Ephesians 5:32 speak concerning Christ and the
Ephesians 6:5 your heart, as unto Christ;
Ephesians 6:6 servants of Christ, doing the
Ephesians 6:23 and the Lord Jesus Christ.
Ephesians 6:24 Lord Jesus Christ in sincerity.
Philippians 1:1 of Jesus Christ, to all
Philippians 1:2 from the Lord Jesus Christ.
Philippians 1:6 the day of Jesus Christ:
Philippians 1:8 the bowels of Jesus Christ.
Philippians 1:10 till the day of Christ.
Philippians 1:11 by Jesus Christ, unto the
Philippians 1:13 bonds in Christ are manifest
Philippians 1:15 indeed preach Christ even of
Philippians 1:16 one preach Christ of contention,
Philippians 1:18 in truth, Christ is preached;
Philippians 1:19 the Spirit of Jesus Christ,
Philippians 1:20 now also Christ shall be
Philippians 1:21 live is Christ, and to
Philippians 1:23 be with Christ; which is
Philippians 1:26 in Jesus Christ for me
Philippians 1:27 gospel of Christ: that whether
Philippians 1:29 behalf of Christ, not only
Philippians 2:1 consolation in Christ, if any
Philippians 2:5 was also in Christ Jesus:
Philippians 2:11 that Jesus Christ is Lord,
Philippians 2:16 day of Christ, that I
Philippians 2:21 things which are Jesus Christ's.
Philippians 2:30 work of Christ he was
Philippians 3:3 rejoice in Christ Jesus, and
Philippians 3:7 I counted loss for Christ.
Philippians 3:8 knowledge of Christ Jesus my
Philippians 3:9 faith of Christ, the righteousness
Philippians 3:12 am apprehended of Christ Jesus.
Philippians 3:14 of God in Christ Jesus.
Philippians 3:18 of the cross of Christ:
Philippians 3:20 Saviour, the Lord Jesus Christ:
Philippians 4:7 and minds through Christ Jesus.
Philippians 4:13 things through Christ which strengtheneth
Philippians 4:19 in glory by Christ Jesus.
Philippians 4:21 saint in Christ Jesus. The
Philippians 4:23 Lord Jesus Christ be with
Colossians 1:1 of Jesus Christ by the
Colossians 1:2 brethren in Christ which are
Colossians 1:3 Lord Jesus Christ, praying always
Colossians 1:4 faith in Christ Jesus, and
Colossians 1:7 a faithful minister of Christ;
Colossians 1:24 afflictions of Christ in my
Colossians 1:27 which is Christ in you,
Colossians 1:28 man perfect in Christ Jesus:
Colossians 2:2 the Father, and of Christ;
Colossians 2:5 of your faith in Christ.
Colossians 2:6 therefore received Christ Jesus the
Colossians 2:8 world, and not after Christ.
Colossians 2:11 by the circumcision of Christ:
Colossians 2:17 the body is of Christ.
Colossians 2:20 dead with Christ from the
Colossians 3:1 risen with Christ, seek those
Colossians 3:3 hid with Christ in God.
Colossians 3:4 When Christ, who is our
Colossians 3:11 free: but Christ is all,
Colossians 3:13 even as Christ forgave you,
Colossians 3:16 word of Christ dwell in
Colossians 3:24 ye serve the Lord Christ.
Colossians 4:3 mystery of Christ, for which
Colossians 4:12 servant of Christ, saluteth you,
1 Thessalonians 1:1 Lord Jesus Christ: Grace be
1 Thessalonians 1:3 Lord Jesus Christ, in the
1 Thessalonians 2:6 as the apostles of Christ.
1 Thessalonians 2:14 are in Christ Jesus: for
1 Thessalonians 2:19 Lord Jesus Christ at his
1 Thessalonians 3:2 gospel of Christ, to establish
1 Thessalonians 3:11 Lord Jesus Christ, direct our
1 Thessalonians 3:13 Lord Jesus Christ with all
1 Thessalonians 4:16 dead in Christ shall rise
1 Thessalonians 5:9 by our Lord Jesus Christ,
1 Thessalonians 5:18 God in Christ Jesus concerning
1 Thessalonians 5:23 of our Lord Jesus Christ.
1 Thessalonians 5:28 Lord Jesus Christ be with
2 Thessalonians 1:1 and the Lord Jesus Christ:
2 Thessalonians 1:2 and the Lord Jesus Christ.
2 Thessalonians 1:8 of our Lord Jesus Christ:
2 Thessalonians 1:12 Lord Jesus Christ may be
2 Thessalonians 2:1 Lord Jesus Christ, and by
2 Thessalonians 2:2 day of Christ is at
2 Thessalonians 2:14 of our Lord Jesus Christ.
2 Thessalonians 2:16 Lord Jesus Christ himself, and
2 Thessalonians 3:5 the patient waiting for Christ.
2 Thessalonians 3:6 Lord Jesus Christ, that ye
2 Thessalonians 3:12 Lord Jesus Christ, that with
2 Thessalonians 3:18 Lord Jesus Christ be with
1 Timothy 1:1 of Jesus Christ by the
1 Timothy 1:2 and Jesus Christ our Lord.
1 Timothy 1:12 I thank Christ Jesus our
1 Timothy 1:14 which is in Christ Jesus.
1 Timothy 1:15 acceptation, that Christ Jesus came
1 Timothy 1:16 first Jesus Christ might shew
1 Timothy 2:5 men, the man Christ Jesus;
1 Timothy 2:7 truth in Christ, and lie
1 Timothy 3:13 which is in Christ Jesus.
1 Timothy 4:6 of Jesus Christ, nourished up
1 Timothy 5:11 wanton against Christ, they will
1 Timothy 5:21 Lord Jesus Christ, and the
1 Timothy 6:3 Lord Jesus Christ, and to
1 Timothy 6:13 and before Christ Jesus, who
1 Timothy 6:14 of our Lord Jesus Christ:
2 Timothy 1:1 of Jesus Christ by the
2 Timothy 1:2 Father and Christ Jesus our
2 Timothy 1:9 us in Christ Jesus before
2 Timothy 1:10 Saviour Jesus Christ, who hath
2 Timothy 1:13 which is in Christ Jesus.
2 Timothy 2:1 that is in Christ Jesus.
2 Timothy 2:3 good soldier of Jesus Christ.
2 Timothy 2:8 that Jesus Christ of the
2 Timothy 2:10 is in Christ Jesus with
2 Timothy 2:19 name of Christ depart from
2 Timothy 3:12 godly in Christ Jesus shall
2 Timothy 3:15 which is in Christ Jesus.
2 Timothy 4:1 Lord Jesus Christ, who shall
2 Timothy 4:22 Lord Jesus Christ be with
Titus 1:1 of Jesus Christ, according to
Titus 1:4 Lord Jesus Christ our Saviour.
Titus 2:13 and our Saviour Jesus Christ;
Titus 3:6 through Jesus Christ our Saviour;
Philemon 1:1 of Jesus Christ, and Timothy
Philemon 1:3 and the Lord Jesus Christ.
Philemon 1:6 in you in Christ Jesus.
Philemon 1:8 bold in Christ to enjoin
Philemon 1:9 a prisoner of Jesus Christ.
Philemon 1:23 my fellowprisoner in Christ Jesus;
Philemon 1:25 Lord Jesus Christ be with
Hebrews 3:1 of our profession, Christ Jesus;
Hebrews 3:6 But Christ as a son
Hebrews 3:14 partakers of Christ, if we
Hebrews 5:5 So also Christ glorified not
Hebrews 6:1 doctrine of Christ, let us
Hebrews 9:11 But Christ being come an
Hebrews 9:14 blood of Christ, who through
Hebrews 9:24 For Christ is not entered
Hebrews 9:28 So Christ was once offered
Hebrews 10:10 of Jesus Christ once for
Hebrews 11:26 reproach of Christ greater riches
Hebrews 13:8 Jesus Christ the same yesterday,
Hebrews 13:21 through Jesus Christ; to whom
James 1:1 Lord Jesus Christ, to the
James 2:1 Lord Jesus Christ, the Lord
1 Peter 1:1 of Jesus Christ, to the
1 Peter 1:2 of Jesus Christ: Grace unto
1 Peter 1:3 Lord Jesus Christ, which according
1 Peter 1:7 the appearing of Jesus Christ:
1 Peter 1:11 Spirit of Christ which was
1 Peter 1:13 the revelation of Jesus Christ;
1 Peter 1:19 blood of Christ, as of
1 Peter 2:5 to God by Jesus Christ.
1 Peter 2:21 called: because Christ also suffered
1 Peter 3:16 your good conversation in Christ.
1 Peter 3:18 For Christ also hath once
1 Peter 3:21 the resurrection of Jesus Christ:
1 Peter 4:1 then as Christ hath suffered
1 Peter 4:11 through Jesus Christ, to whom
1 Peter 4:13 partakers of Christ's sufferings; that,
1 Peter 4:14 name of Christ, happy are
1 Peter 5:1 sufferings of Christ, and also
1 Peter 5:10 glory by Christ Jesus, after
1 Peter 5:14 are in Christ Jesus. Amen.
2 Peter 1:1 of Jesus Christ, to them
2 Peter 1:8 of our Lord Jesus Christ.
2 Peter 1:11 Lord and Saviour Jesus Christ.
2 Peter 1:14 Lord Jesus Christ hath shewed
2 Peter 1:16 Lord Jesus Christ, but were
2 Peter 2:20 Saviour Jesus Christ, they are
2 Peter 3:18 Saviour Jesus Christ. To him
1 John 1:3 with his Son Jesus Christ.
1 John 1:7 of Jesus Christ his Son
1 John 2:1 Father, Jesus Christ the righteous:
1 John 2:22 is the Christ? He is
1 John 3:23 Son Jesus Christ, and love
1 John 4:2 that Jesus Christ is come
1 John 4:3 that Jesus Christ is come
1 John 5:1 is the Christ is born
1 John 5:6 even Jesus Christ; not by
1 John 5:20 Son Jesus Christ. This is
2 John 1:3 Lord Jesus Christ, the Son
2 John 1:7 that Jesus Christ is come
2 John 1:9 doctrine of Christ, hath not
Jude 1:1 of Jesus Christ, and brother
Jude 1:4 and our Lord Jesus Christ.
Jude 1:17 of our Lord Jesus Christ;
Jude 1:21 Lord Jesus Christ unto eternal
Revelation 1:1 of Jesus Christ, which God
Revelation 1:2 of Jesus Christ, and of
Revelation 1:5 from Jesus Christ, who is
Revelation 1:9 of Jesus Christ, was in
Revelation 11:15 of his Christ; and he
Revelation 12:10 of his Christ: for the
Revelation 12:17 the testimony of Jesus Christ.
Revelation 20:4 reigned with Christ a thousand
Revelation 20:6 and of Christ, and shall
Revelation 22:21 Lord Jesus Christ be with

This is what the output file would look like if the word to be searched for was Christ
Was This Post Helpful? 0
  • +
  • -

#14 janotte  Icon User is offline

  • code > sword
  • member icon

Reputation: 990
  • View blog
  • Posts: 5,141
  • Joined: 28-September 06

Re: Need a Walkthrough Of Concordance Program

Posted 05 December 2008 - 10:58 PM

View PostJBabineau, on 5 Dec, 2008 - 09:42 PM, said:

Your time notation is going to be ridiculous something like
O(n) where n is the number of words in the dictionary....
may take some time to get an answer so don't get frustrated if it looks like your program seems to be doing nothing.


That's a very good point.

If you are allowed such touches you might want to consider having an output to the screen along the lines of "Currently searching for [[[word]]]" as you start the search for each word.

Will give the user (you) some reassurance that progress is happening and the program isn't just stuck in an infinite loop somewhere.

Even if you aren't allowed to have such output in the work you hand in to the teacher put an output like that in (known as a "monitor") while you are developing and testing the code for the reaons given above.

Just delete it or comment it out before handing the assignment in if it's not permitted in the final version.

Again, check with the teacher.
Was This Post Helpful? 0
  • +
  • -

#15 Zerobu  Icon User is offline

  • Black Hatter

Reputation: 13
  • View blog
  • Posts: 1,822
  • Joined: 14-January 08

Re: Need a Walkthrough Of Concordance Program

Posted 05 December 2008 - 11:02 PM

in fact that what our teacher told us to do.
Was This Post Helpful? 0
  • +
  • -

  • (4 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »