jillian0013
13.10.2020 •
Computers and Technology
Purpose: This application provides experience with user input and interaction in the Console, writing files to disk, working with 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.
Solved
Show answers
More tips
- A Auto and Moto Which alarm system to choose?...
- A Auto and Moto How to Start a Diesel Engine in Cold Weather?...
- H Health and Medicine Hangover: How to Get Rid of It Quickly?...
- C Computers and Internet How to Calibrate Your Monitor: Useful Tips and Recommendations...
- P Philosophy Agnosticism: Opinion or Belief?...
- L Leisure and Entertainment When will Maslenitsa start?...
- F Family and Home Stay Warm but Don t Overheat: What is the Optimal Temperature for Your Home During Winter?...
- H Health and Medicine Heartburn: Causes and Ways to Get Rid of It...
- S Society and Politics Will Japan become Russia s Military Enemy?...
- F Family and Home How to Choose the Perfect Air Conditioner for Your Life...
Answers on questions: Computers and Technology
- C Computers and Technology Create a junit test employeetest.java that will test all the methods of the provided employee class use the as a reference for implementing specific tests or other sources...
- S Social Studies In evaluating a house that has an actual age of 15 years, the appraiser assigned it an age of only 10 years because of the home s excellent condition. this is an example of:...
- B Biology Fluffernutter labradors are identical to earth labradors in every way, except that they grow marshmallows instead of fur. the three possible types of marshmallow skin are:...
- M Mathematics HELP PLEASE! THIS IS FOR TURN IN TODAY! Look at the photo...
- M Mathematics What is the smallest amount of m& m s if the ratio of green m& m s to yellow is 2: 3?...
- E English You have been appointed as the head of the IAAF (International Association of Athletics Federations). It is your job to decide if Caster Semenya should be allowed to compete...
Ответ:
the answer is c#/.net
Explanation:
Ответ:
You must have wrote the equation incorrectly
Step-by-step explanation:
You wanna make f(x) equal to 6
So its 6 = 2x + 57
Subtract 57 from both sides to get -51 = 2x
Divide both sides by 2 to get -25.5