Asks the user for the name of an input file and translates

Assignment Help C/C++ Programming
Reference no: EM13159218

ROT13 (rotate by 13 places) is a simple letter substitution cipher that is an instance of a Caesar cipher developed in ancient Rome and used by Julius Caesar who used it in his private correspondence. ROT13 replaces a letter with a letter 13 characters after it in the alphabet. The following table demonstrates the transliation in ROT13:

A <-> N

B <-> O

C <-> P

D <-> Q

E <-> R

F <-> S

G <-> T

H <-> U

I <-> V

J <-> W

K <-> X

L <-> Y

M <-> Z

Thus, the translation of the word JULIUS using ROT13 would be WHYVHF.

Write a C++ program that asks the user for the name of an input file and translates the contents of that input file using ROT13. Your main function should be responsible for reading the input file and coordinating calls to a value-returning function named Rot13 that will do the translation for each character andWriteTranslatedCharacter that will write the translated character to a secondary file. The Rot13 function takes as input the character to be translated and returns the translated character. The second function namedWriteTranslatedCharacter will have two parameters, the translated character and a reference to an ifstream data type for a secondary file named "output.rot13", and write the translated character to this file.

 

 

Reference no: EM13159218

Questions Cloud

Cost method in the preparation of a consolidated workpaper : S Company earned $840,000 evenly throughout the year and declared a dividend of $300,000 on November 1. What is the amount needed to establish reciprocity under the cost method in the preparation of a consolidated workpaper on December 31, 2011?
Virtual and physical addresses : The page table shown in Figure 9.32 is for a system with 16-bit virtual and physical addresses and with 4,096-byte pages. The reference bit is set to 1 when the page has been referenced. Periodically, a thread zeroes out all values of the reference b..
Write a program that reads the data in the file and displays : Write a program that reads the data in the file and displays the car number, miles driven, gallons used and the miles per gallon for each car.
Initialize an array and fill the array with the gpa values. : Write a program in java that asks user input (using a loop) for name of 10 student and the corresponding grade point averages (GPAs). Initialize an array and fill the array with the GPA values.
Asks the user for the name of an input file and translates : Write a C++ program that asks the user for the name of an input file and translates the contents of that input file using ROT13. Your  main  function should be responsible for reading the input file and coordinating calls to a value-returning functio..
Compare u.s. and e.u. policies : Compare U.S. and E.U. policies and underlying philosophies of privacy. Include references to monitoring and privacy in the workplace, surveillance, and disclosure/data privacy. In your estimation, could self-regulation be effective or does it need to..
Write a function that takes an integer array : 1. Write a function that takes an integer array and the array's size as parameters. The function will check if the array is sorted. If it is, it will return a 1. If it is not sorted it will return 0. The function should not  sort the array.
The mean and standard deviation : How do i write a program in c++ that use functions max, min, the total numbers, the mean and standard deviation to read a file text and return these values from the file text. note the file text has random numbers. note im not suppose to use arrays.
Write a count occurrences() function that accepts a string : Write a CountOccurrences() function that accepts a string to be searched and a sub-string to be found. The function should return the # of times the sub-string is found. Write a tester file that declares a secret sentence as a constant.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd