Question: Write a program using Java that implements a method expense(), that would help them to calculate the total expenses and display a message if the
Write a program using Java that implements a method expense(), that would help them to calculate the total expenses and display a message if the total exceeds Rs.2000. The program should also construct a string that contains Arzoo's full name which is made by sufficing both her parent's name with hers. The program should then print a welcome message "Welcome < contents of the string constructed>". NB: Pre-defined methods of String class may be used to form the concatenated string containing her name
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
