Microsoft Visual C#
7th Edition
ISBN: 9781337102100
Author: Joyce, Farrell.
Publisher: Cengage Learning,
expand_more
expand_more
format_list_bulleted
Concept explainers
Question
error_outline
This textbook solution is under construction.
Students have asked these similar questions
in java but don't write as a GUI (Graphical User Interface)
Write a program that reads a file named input.txt and writes a file that contains the same contents, but is named output.txt. The input file will contain more than one line when I test this and so should your output file. Do not use a path name when opening these files. This means the files should be located in the top level folder of the project. This would be the folder that contains the src folder, probably named FileCopy depending on what name you gave the project. Do not use a copy method that is supplied by Java. Your program must read the file line by line and write the file itself. Class should be named FileCopy
do not write to input.txt!
A) Design a program for Hunterville College. The current tuition is $20,000 per year, and tuition is expected to increase by 3 percent each year. Display the tuition each year for the next ten years.
Create the " PLD5-10a" application. MAKE SURE NO SPACES ARE IN THE DIRECTORY PATH OR FILE NAME. Specifically perform the following.
Create a Folder "PLD5-9a" (e.g., "C:\COP1000\PLD5-10a")
Create a Dev C++ Project (i.e., " PLD5-10a") and store in the folder
Add code for the application (save as " PLD5-10a.cpp")
Compile & Run the Project
When submitting assignment, upload the source code file only , (i.e., " PLD5-10a.cpp", file with the ".cpp" extension).
// Pseudocode PLD Chapter 5 #10a, pg. 223
//
// Start
// Declarations
// number currentTuition
// number futureTuition
// number interestRate
// number numYears
// number year
//
// output "Please enter current tuition: "
// input currentTuition
// output "Please enter…
The _____ option on an application file menu allows you to save the latest version of a file under its current name and its current location.
a) backspace
b) save as
c) save
d) delete
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- If the file to be opened exists, which method erases the file’s contents? AppendText CreateText InsertText OpenTextarrow_forwardCreate a program named FileComparison that compares two files. First, use a text editor such as Notepad to save your favorite movie quote. Next, copy the file contents, and paste them into a word-processing program such as Word. Then, write the file-comparison application that displays the sizes of the two files as well as the ratio of their sizes to each other. To discover a files size, you can create a System. 10. Filelnfo object using statements such as the following, where FILE_NAME is a string that contains the name of the file, and size has been declared as an integer: FileInfo fileInfo = new FileInfo(FILE_NAME); size = fileInfo.Length;arrow_forwardPlease help me. Description of what to do is below. A user must be able to enter any phrase or sentence that they would like to encrypt or decrypt Then if you can in a txt file create a gui for that program. An example is below in the photosarrow_forward
- U are to create a report for users that will list their student id number, last name, and first name. Also, you will list their username and email address The input file is linked below studentInfo.txt (opens in new window) Note: You are to add YOUR first and last name in the first row ( instead fo Mr. Cameron's), the ID SHOULDN'T be your real ID, just a imaginary number there The output file that your program will generate should look like the one linked below: loginInfo.txt (opens in a new window) Given a text file , studentInfo.txt , linked above (or U can use one you created) that contains only last name( field size = 10) and first name(field size is 10) and student id numbers (field size is 7) you will create a report that will generate the usernames as well as student email accounts as shown in the loginInfo.txt linked above. Notice that the login name consists of the first 7 characters of the last name, the first initial and the last 4 digits of the student ID (letters…arrow_forwardThe homework needs to be in Visual Studio :1)Where in the text box you can add by the button Add.2)Where you can open (by the button Open ) a file dialog by selecting a text file and all the contents should be display in the multiline box.3)Where you can save like a .textfile (by the button Save) a file dialog which all contents are in multiline box .arrow_forwardRename the Team directory to Return to the Boston Celtics directory and create a new directory inside named Cheerleaders. Create a text file named Roster.txt and place it in the Cheerleaders directory. Add 3 random names to the Roster.txt file, save then display the contents of the file in the terminal List the contents of the Boston Celtics directory.arrow_forward
- It's possible to open and edit four files called asiasales2009.txt if you create four file objects named asia, eu, africa or latin and use them to open and edit the files.arrow_forwardWrite the program FileComparison that compares two files. Two files have been provided for you, Quote.txt and Quote.docx, both containing movie quotes and are located in the /root/sandbox/ directory Note: you will not be able to see the Quote.docx file. Next write the file comparison application that displays the sizes of the two files as well as the ratio of their sizes to each other. To discover a file’s size, you can create a System.IO.FileInfo object using statements such as the following, where FILE_NAME is a string that contains the name of the file, and size has been declared as an integer: FileInfo fileInfo = new FileInfo(FILE_NAME); size = fileInfo.Length; Your program's output should look like the following: The size of the Word file is FILE_SIZE and the size of the Notepad file is FILE_SIZE The Notepad file is x% of the size of the Word file using System; using static System.Console; using System.IO; class FileComparison { static void Main() { // Getting…arrow_forwardWrite an application that displays the name, containing folder, size, and time of last modification for the file FileStatistics.java. Example output: File name is FileStatistics.java Folder name is sandbox File's size is 884 File's creation time is 2018-05-30T16:28:01.410343Zarrow_forward
- You have been provided with a QTCreator project called Project13 _ Student. Open the project in QTCreator and make the necessary changes to the main.cpp file. You have been provided with file named Data.txt. Data.txt contains information about students. Each line contains the information for one student. The student information is seperated by a comma and is in the following format : Name,Surname,Email,Age,StudentNumber Notice how the first line in the file contains a heading. This line should be ignored by your code when processing the file. You may not modify the Data.txt file. Write the code for the function named splitSingleStudent ( string[],string ) . splitSingleStudent receives an array and a signle line from the file as parameter. The function then splits the line received from the file and loads the array parameter with the correct values. The array parameter should be loaded as follows : Index 1 : Name Index 2 : Surname Index 3 : Email Index 4 : Age In the main function…arrow_forwardjava You may NOT write this program as a GUI (Graphical User Interface). Write a program that reads a file named input.txt and writes a file that contains the same contents, but is named output.txt. The input file will contain more than one line when I test this and so should your output file. Do not use a path name when opening these files. This means the files should be located in the top level folder of the project. This would be the folder that contains the src folder, probably named FileCopy depending on what name you gave the project. Do not use a copy method that is supplied by Java. Your program must read the file line by line and write the file itself. I will test it with a file, input.txt do not write to input.txt* Your class name must be FileCopy.arrow_forwardjava You may NOT write this program as a GUI (Graphical User Interface). Write a program that reads a file named input.txt and writes a file that contains the same contents, but is named output.txt. The input file will contain more than one line when I test this and so should your output file. Do not use a path name when opening these files. This means the files should be located in the top level folder of the project. This would be the folder that contains the src folder, probably named FileCopy depending on what name you gave the project. Do not use a copy method that is supplied by Java. Your program must read the file line by line and write the file itself. do not write to input.txt* Your class name must be FileCopy. It should be in a package named mypackagearrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Microsoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,EBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENTCOMPREHENSIVE MICROSOFT OFFICE 365 EXCEComputer ScienceISBN:9780357392676Author:FREUND, StevenPublisher:CENGAGE L
- Programming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage Learning
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:9780357392676
Author:FREUND, Steven
Publisher:CENGAGE L
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning