Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Question

1. The program starts by printing your name with an end sign ">". For example, "FirstName LastName >";

2. No matter what an input line is, program print: "Do you want to use my vi to edit a file: test.txt? Y or N";

3. If "Y" or "y",

a) print out "OK, I've made a copy of your file at: test1.txt";

b) your program will open "test.txt" for reading, and open "test1.txt" for writing;

c) write a head line into "test1.txt" saying that "The following is a copy from test.txt";

d) copy the contents from "test.txt" to "test1.txt", and your program exit.

4. If "N" or "n", print out "OK. I will work on a vi system.", and your program exit;

5. If otherwise, print out "Error.", and your program go to Step 2.

Here are some other requirements:

1. You have to use functions, for example, one for checking the input and another for handling the two files;

2. You must have comments which explain what the functions do;

3. Each function cannot be over 100 lines of code except the major function.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M9718865

Have any Question?


Related Questions in Computer Engineering

Question after 1 year of launch ride sharing increased a

Question: After 1 year of launch, ride sharing increased a lot resulting in a lot of insertion requests to the database. Consider there is no room to further increase the size of server and changing database is not an op ...

The local police department must write an average of 5

The local police department must write an average of 5 traffic tickets each day to keep department revenues at budgeted levels. Suppose the number of tickets written per day follows a Poisson distribution with a mean of ...

How do you calculate the annual interest rate of 12

How do you calculate the annual interest rate of 12% compounded monthly. I know how to do for annually but not monthly. You are offered the opportunity to put some money away for retirement. You will receive 10 annual pa ...

We are evaluating a project that costsnbsp1140000 has a

We are evaluating a project that costs $1,140,000, has a ten-year life, and has no salvage value. Assume that depreciation is straight-line to zero over the life of the project. Sales are projected at 51,000 units per ye ...

The ages of commercial aircraft are normally distributed

The ages of commercial aircraft are normally distributed with a mean of 13.5 years and a standard deviation of 8.3821 years. What percentage of individual aircraft have ages between 10 years and 16 years? Assume thata ra ...

Answer the following question what is a remote procedure

Answer the following Question : What is a 'Remote Procedure Call (RPC)'? How a RPC is originated and what are the applications/examples of a RPC process? The response must be typed, single spaced, must be in times new ro ...

In a survey of 100 people 40 were casual drinkers event d

In a survey of 100 people, 40 were casual drinkers (event D), and 60 did not drink (event D). Of the ones who drank, 6 had minor headaches. Of the non-drinkers, 9 had minor headaches. Let D represent set of surveyed peop ...

Question suppose an algorithm requires cn2nbspoperations

Question : Suppose an algorithm requires cn 2  operations when performed with an input of size n (where c is a constant). a. How many operations will be required when the input size is increased from m to 2m (where m is ...

Question suppose we are given a chain of n nodes as shown

Question : Suppose we are given a "chain" of n nodes as shown below. Each node i is "neighbors" with the node to its left and the node to its right (if they exist). An independent set of these nodes is a subset of the no ...

Calculate the standard gibbs free energy change and the

Calculate the standard Gibbs free energy change and the equilibrium constant for the oxidation of a formate ion to carbon dioxide at pH=7 and room temperature.

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As