Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Pseudocode Assignment For the problem statement below, you must write the Pseudocode for each part of the solution. The Pseudocode must be complete. Problem Statement

Pseudocode Assignment

For the problem statement below, you must write the Pseudocode for each part of the solution. The Pseudocode must be complete.

Problem Statement:

Write a program that reads every line in a text file, line by line. Obtain the name of the existing file and the name of the new (copy) of the file by prompting the user for both of these on the console. Make sure that the original file exists and can be read. If not, display a warning message and allow the user to either abort the program or enter a new file name. If the name of the new file to copy the text into already exists, then display a warning message and ask the user if they wish to overwrite the existing file or change the file name. If they wish to give a new name, then go through the same procedure as you did with the first name.

After you have copied the file successfully, you should display to the user the name of the original file that was copied and the name of the file it was copied to successfully.

(A sample file textfile.txt has been included along with this assignment in the dropbox to assist you in your programming)

Break the problem down and write the pseudocode:

Break the problem statement into parts to fully understand what is expected as input, output and processes in your code. Write down all the variables you will need from the problem statement. Once you have broken down the problem, start writing your pseudocode.

Writing the pseudocode may take a while and several iterations to fully get the solution complete. Walk through the problem and your pseudocode as if the program is running.

Now make sure that your pseudocode is the best it can be. Check your formatting, comments, and make sure your output is correct and communicates what is happening in your pseudocode

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2017 Skopje Macedonia September 18 22 2017 Proceedings Part 3 Lnai 10536

Authors: Yasemin Altun ,Kamalika Das ,Taneli Mielikainen ,Donato Malerba ,Jerzy Stefanowski ,Jesse Read ,Marinka Zitnik ,Michelangelo Ceci ,Saso Dzeroski

1st Edition

3319712721, 978-3319712727

More Books

Students also viewed these Databases questions

Question

what are the provisions in the absence of Partnership Deed?

Answered: 1 week ago

Question

1. What is called precipitation?

Answered: 1 week ago

Question

1.what is dew ?

Answered: 1 week ago