Posted at 02:32h
in
Uncategorized
by admin
Question:
Make a class definition for a BankAccount. It should have attributes for :
- its name (a string),
- account number (a string or integer),
- and balance (a float).
It should have methods to:
- make deposits with displaying the balance,
- and make withdrawals with displaying the balance.
Hint:
...
Problem Description
Text messaging using a cell phone is popular among teenagers. The messages can appear peculiar because short forms and symbols are used to abbreviate messages and hence reduce typing.
For example, “LOL” means “laughing out loud” and “:-)” is called an emoticon which looks like...
Posted at 02:08h
in
archives
by admin
Question 1:
Input a string using scanner and replace all vowels with the letter “#”
Input:
apple
Output:
#ppl#
Question 2:
Input a string using scanner and print the reverse of the string
Input:
apple
Output:
elppa...
Posted at 02:04h
in
Uncategorized
by admin
Question 1.
Write a program that asks for your name, then asks for your age, then prints a message with your name and age in it.
Input example:
What is your name? Kevin
What is your age? 12
Output example:
Kevin is 12 years old
Question 2.
Write a program that asks...
Question 1:
Input a string using scanner and remove all consonant from the string
input:
apple
output:
ae
Question 2:
Input a string using scanner and replace all vowels with the letter “#”
input
apple
output
#ppl#...
Posted at 01:57h
in
Uncategorized
by admin
Question 1.
Write a program that asks for your name, then asks for your age, then prints a message with your name and age in it.
Input example:
What is your name? Kevin
What is your age? 12
Output example:
Kevin is 12 years old
Question 2.
Write a program that asks...