Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

hi sorry for that mistake click the wrong button thank for the help this is a good job from you . can you help me

hi sorry for that mistake click the wrong button thank for the help this is a good job from you . can you help me with this homework using the scanner class think for that

image text in transcribed

image text in transcribed

Write a program that asks the user for the names of two files. The first file should be opened for reading (friends.txt, it is provided along with the homework assignment document in D2L) and the second file should be opened for writing (name it as myfriends.txt). The program should read the contents of the first file, change all characters to uppercase, and store the results in the second file. The second file will be a copy of the first file, except that all the characters will be uppercase. For example, Contents of friends.txt Joe Rose Greg Kirk Renee Contents of my friends.txt JOE ROSE GREG KIRK RENEE Expected Output: Exp ed Output: Page 2 of Give me two file names and I will convert the contents of first file into uppercase and write into second file. Enter the filename to read: friends.txt Enter the filename to write: my friends.txt File 1 is converted to uppercase and stored in File 2

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

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Shamkant B. Navathe

7th Edition Global Edition

1292097612, 978-1292097619

More Books

Students also viewed these Databases questions

Question

Answered: 1 week ago

Answered: 1 week ago