Practice
Write Names to File and Read Back
HARDFile Handling
Read 3 names from the user (one per line). Write each name to a file called output.txt, one name per line. Then close the file, reopen it for reading, and output each name in UPPERCASE.
Input: 3 names on separate lines. Output: The 3 names in uppercase, one per line.
Example:
Input: alice
bob
charlie
Output: ALICE
BOB
CHARLIE
Premium is coming soon. All grading features are currently unlocked.
Sample Test Cases
Test 1: Lowercase → uppercase
Inputs: alice, bob, charlie
Expected: ALICE
BOB
CHARLIE
Test 2: Mixed case → uppercase
Inputs: XENA, Yuki, zara
Expected: XENA
YUKI
ZARA
Ctrl+Enter
Press Ctrl+Enter to run your code
or Ctrl+Shift+Enter to grade