Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write Program in Java using file handling as in this program the code should display a menu which ask user to Add String o Lower

Write Program in Java using file handling as in this program the code should display a menu which ask user to

  • Add String

o Lower case format

o Upper case format

o Camel case (first letter capital of each word and third word completely capitalized)

  • Delete:

String o Line number

  • Exit:

This menu should display after each iteration.

On Camel Case your code should do the functionality for example user enter a string in lower case letters (also check string format is correct or not) e.g., "i love programming a lot" as you press enter. If user said that save it in camel case so this sentence should be saved into a file name code.txt and in this file, the string that has been entered by the user should be changed in such a way that every first letter of the word should be capitalized and the third word of the string should be totally capitalized. And same for upper case.

Input: i love programming a lot

Output: I Love PROGRAMMING A Lot

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

C++ Primer Plus

Authors: Stephen Prata

6th Edition

978-0321776402, 0321776402

More Books

Students also viewed these Programming questions

Question

What are the modules of C++ programs called?

Answered: 1 week ago