Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2015
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. 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: -
  2. INPUT: F:\Java|Jdk5\bin\fact.java
  3. OUTPUT: Path: F:\Java\Jdk5\bin
  4. File name fact
  5. Extension java
  6. 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.
  7. The user is given the following options:
  8. Main Menu
  9. Number of Digits N/n
  10. Count vowel words V/v
  11. Exit E/e
  12. Enter your choice?
  13. For an incorrect option, an appropriate error message should be displayed.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement