1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
guajiro [1.7K]
2 years ago
9

Purpose: This application provides experience with user input and interaction in the Console, writing files to disk, working wit

h exceptions, and writing programs in C#/.NET.
Requirements:
Target Platform: Console
Programming Language: C#
This program is to display the name of the app "Document" followed by a blank line, prompt the user for the name and content for a document, save the document to the current directory, and display a message if it was successful or unsuccessful based on a specification provided. The filename of the document is the name provided by the user with ".txt" appended to it.
When the program runs:
Display "Document" followed by a blank line.
Prompt the user for the name of the document.
Prompt the user for the content that is to be in the document.
Append .txt to the name and use it as the file name.
Save the content to a file in the current directory.
If an exception occurs, output the exception message and exit.
If an exception does not occur, output "[filename] was successfully saved. The document contains [count] characters." and exit. [filename] and [count] are placeholders for the filename of the document and the number of characters it contains.
Note that the requirements say the file is to be saved in the current directory. This means you can use just the file name as the path for the file. If you do that, the file will be saved in the current directory for the application. When I created the project and called it Document, a directory called Document was created that contains Document.sln and another directory called Document. The Document directory inside of the project is the current directory when the application runs and is where you will find the files that are saved.
Computers and Technology
1 answer:
pishuonlain [190]2 years ago
5 0

Answer:

the answer is c#/.net

Explanation:

You might be interested in
____________ approach involves trying every possible key until an intelligible translation of the ciphertext into plaintext is o
Vitek1552 [10]

Answer:

Symmetric encryption or single key encryption

8 0
3 years ago
Code.org lesson 8 level 5
Likurg_2 [28]

Answer:

and?

Explanation:

5 0
2 years ago
Read 2 more answers
Parameters are treated as variables within a function.
Amanda [17]

Answer:

In C programming you can only pass variables as parameter to function.

Explanation:

3 0
3 years ago
Select the correct answer.
vaieri [72.5K]

I'm not too sure, but I can remove three of the options above. Artificial Intelligence programmers write code for Artificial Intelligence- tis in the name. Game tool programmers code for video games. Web programmers program webpages or apps for the web.


Of the two options left, I would say that it is most likely D. System Programmers. It's not a definite, though. Good luck!

3 0
3 years ago
Read 2 more answers
What does the gravity setting of a jump control?
Vikki [24]

Answer:

A

Explanation:

3 0
2 years ago
Other questions:
  • On the CallCenterReport worksheet, add formulas that will summarize the issues for the department entered in cell B3. In cell B6
    13·1 answer
  • Does anybody know how to use these showers?
    11·2 answers
  • Crossing out answers that could not possibly be correct is called ‘eliminating answers.’ Please select the best answer from the
    13·2 answers
  • Which best describes the benefits of renting a home?
    10·2 answers
  • Use the _______ command to combine the selected cells and center them. merge across center across selection merge cells merge an
    7·1 answer
  • Which command displays the contents of the NVRAM?
    13·1 answer
  • Which type of portfolio might a young investor who is not afraid of risk choose?
    12·1 answer
  • A desperate employee calls because she has accidentally deleted crucial files from her hard drive and can’t retrieve them from t
    13·1 answer
  • Ndcdeviceid?????????????????????​
    8·1 answer
  • What is the difference between margin and padding property?
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!