Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. Write a program to input a full path(folder name/ subdirectory name) & file name as given below. Using String library functions, extract an output the full file path, file name and extension separately as shown below: -
- INPUT: F:\Java|Jdk5\bin\fact.java
- OUTPUT: Path: F:\Java\Jdk5\bin
- File name fact
- Extension java
- 2. Using the switch case & do while statement, write a menu driven program, through which calculate & print number of digits in a given number or count the number of words which starts with an vowel in a sentence.
- The user is given the following options:
- Main Menu
- Number of Digits N/n
- Count vowel words V/v
- Exit E/e
- Enter your choice?
- For an incorrect option, an appropriate error message should be displayed.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement