Fill in Order Details

  • Submit paper details for free using our simple order form

Make Payment Securely

  • Add funds to your account. There are no upfront payments. The writer will only be paid once you have approved your paper

Writing Process

  • The best qualified expert writer is assigned to work on your order
  • Your paper is written to standard and delivered as per your instructions

Download your paper

  • Download the completed paper from your online account or your email
  • You can request a plagiarism and quality report along with your paper

C.

& Rudwick

WHAT OUR CURRENT CUSTOMERS SAY

  • Google
  • Sitejabber
  • Trustpilot
Zahraa S
Zahraa S
Absolutely spot on. I have had the best experience with Elite Academic Research and all my work have scored highly. Thank you for your professionalism and using expert writers with vast and outstanding knowledge in their fields. I highly recommend any day and time.
Stuart L
Stuart L
Thanks for keeping me sane for getting everything out of the way, I’ve been stuck working more than full time and balancing the rest but I’m glad you’ve been ensuring my school work is taken care of. I'll recommend Elite Academic Research to anyone who seeks quality academic help, thank you so much!
Mindi D
Mindi D
Brilliant writers and awesome support team. You can tell by the depth of research and the quality of work delivered that the writers care deeply about delivering that perfect grade.
Samuel Y
Samuel Y
I really appreciate the work all your amazing writers do to ensure that my papers are always delivered on time and always of the highest quality. I was at a crossroads last semester and I almost dropped out of school because of the many issues that were bombarding but I am glad a friend referred me to you guys. You came up big for me and continue to do so. I just wish I knew about your services earlier.
Cindy L
Cindy L
You can't fault the paper quality and speed of delivery. I have been using these guys for the past 3 years and I not even once have they ever failed me. They deliver properly researched papers way ahead of time. Each time I think I have had the best their professional writers surprise me with even better quality work. Elite Academic Research is a true Gem among essay writing companies.
Got an A and plagiarism percent was less than 10%! Thanks!

ORDER NOW

CategoriesUncategorized

c++

Cylon says what?!?!?! Part 1

Admiral Adama needs to decrypt a series of messages from his various lookout pilots. He’s hoping that one of them will let him know the position of the Cylon fleet. Because of his standing order, computers cannot be networked together, so to decrypt the message it will have to be run through 3 separate programs run on 3 different computers. 

Adama feeds the encrypted file into the first computer, and it immediately spits out a new file.  Looking at it he can see that it’s starting to decrypt the file.

He then feeds this new file into the second computer, and it immediately spits out a second new file. Looking at this file he can see that the file is almost readable, but still needs to go through the next stage.

Finally, Adama  feeds the file to the last computer.  It immediately spits out the final decrypted file and sees that one of his pilots has indeed found the Cylon fleet. 

Decryption

For this project you will be writing 3 programs. Each program will contain a main and 1 function that will do the decrypting. 

Decryption stage 1:

You will be given the initial file to decrypt. It will be named “messages.txt”. You will read the sentence into a string.

You will send the string to a function you write named “reverse_sentence”:

string reverse_sentence(string s);

This function will reverse the string, and then return the reversed string. Do not make a new string, save it back into the original string.

You must use one of the STL algorithms.

Next you will write the string to a new file called “stage2.txt”.

Decryption stage 2:

The structure of this program is similar to  stage 1; you will open the file “stage2.txt” and read the sentence into a string.

You will send the string to a function you write named “normalize_sentence”:

string normalize_sentence(string s);

This function will down case all letters of the string, and then up case only the first character of the string.  It will then return the modified string.

You must use one of the STL algorithms.

Once you have normalized the string you will then write it out to a new file called “stage3.txt”. 

Decryption stage 3:

The structure of this program is similar to  stage 2; you will open the file “stage3.txt” and read the sentence into a string.

You will send the string to a function called “replace_sentence”:

string replace_sentence(string s);

This function will replace certain words in the string with other words.  You will then return the modified string.

You must use string functions.

YOU MUST USE A SERIES OF IF-STATEMENTS. DO NOT USE A SWITCH-STATEMENT IN THIS FUNCTION!!!

Here are the words that need to be replaced. There may be multiple words that need to be replaced in a string, but the replacement word will only appear once.

1Replace “barn” with “Galactica

2Replace “toaster” with “Cylon

3Replace “juice” with “fuel

4Replace “wagon” with “viper

You must replace the entire string if you find these phrases

After you finish write out the string to a new file named “decrypted.txt”. 

 

Additional Things!!

•In each program you must read in the entire file into the string before you can start using your decryption function. 

•You must close the files your reading from and writing to before the end of each program.

•You can use cin/cout for testing, but remove or comment out the lines before turning in the program.

 

IMPORTANT HINTS!!!!

You can find the functions required in the standard template library. You can see the library on http://www.cplusplus.com under the reference section.

Do some experimentation. Write small test programs to test out functions before you build the full programs.

 

A messages.txt file is provided

 

Objectives:

•practice declaring C++ variables with appropriate names and data types

•practice console I/O

•practice using C++ arithmetic operators

•practice using boolean expressions in flow-of-control statements

•learn and practice the strategy of incremental development

Requirements:

•your program source code must be documented correctly (see the starter.cpp example) 

•your program source code must be neatly and consistently formatted (see the starter.cpp example) 

•your programs must compile and run without errors 

•your programs must successfully read from and write to text files 

                  reverse_sentence function implemented correctly 

•                     normalize_sentence function implemented correctly  

•                     replace_sentence function implemented correctly 

 

                   NOTE: Start small and get it working before you move on to a new feature. You have to follow the requirements to get credit

WHAT OUR CURRENT CUSTOMERS SAY

  • Google
  • Sitejabber
  • Trustpilot
Zahraa S
Zahraa S
Absolutely spot on. I have had the best experience with Elite Academic Research and all my work have scored highly. Thank you for your professionalism and using expert writers with vast and outstanding knowledge in their fields. I highly recommend any day and time.
Stuart L
Stuart L
Thanks for keeping me sane for getting everything out of the way, I’ve been stuck working more than full time and balancing the rest but I’m glad you’ve been ensuring my school work is taken care of. I'll recommend Elite Academic Research to anyone who seeks quality academic help, thank you so much!
Mindi D
Mindi D
Brilliant writers and awesome support team. You can tell by the depth of research and the quality of work delivered that the writers care deeply about delivering that perfect grade.
Samuel Y
Samuel Y
I really appreciate the work all your amazing writers do to ensure that my papers are always delivered on time and always of the highest quality. I was at a crossroads last semester and I almost dropped out of school because of the many issues that were bombarding but I am glad a friend referred me to you guys. You came up big for me and continue to do so. I just wish I knew about your services earlier.
Cindy L
Cindy L
You can't fault the paper quality and speed of delivery. I have been using these guys for the past 3 years and I not even once have they ever failed me. They deliver properly researched papers way ahead of time. Each time I think I have had the best their professional writers surprise me with even better quality work. Elite Academic Research is a true Gem among essay writing companies.
Got an A and plagiarism percent was less than 10%! Thanks!

ORDER NOW


Consider Your Assignments Done

“All my friends and I are getting help from eliteacademicresearch. It’s every college student’s best kept secret!”

Jermaine Byrant
BSN

“I was apprehensive at first. But I must say it was a great experience and well worth the price. I got an A!”

Nicole Johnson
Finance & Economics

Our Top Experts

See Why Our Clients Hire Us Again And Again!


OVER

10.3k
Reviews

RATING
4.89/5
Average

YEARS
13
Mastery

Success Guarantee

When you order form the best, some of your greatest problems as a student are solved!

Reliable

Professional

Affordable

Quick

Using this writing service is legal and is not prohibited by any law, university or college policies. Services of Elite Academic Research are provided for research and study purposes only with the intent to help students improve their writing and academic experience. We do not condone or encourage cheating, academic dishonesty, or any form of plagiarism. Our original, plagiarism-free, zero-AI expert samples should only be used as references. It is your responsibility to cite any outside sources appropriately. This service will be useful for students looking for quick, reliable, and efficient online class-help on a variety of topics.