Problem DescriptionKen is working for the secret agency. He is going to send a secret message that encodes UPPERCASE words by shifting their letters forward.
Shifting a letter by S positions means to go forward S letters in the alphabet. For example, shifting B by S...
Posted at 18:58h
in
Uncategorized
by admin
Question:
Modify the program we made in the class. Add starting screen as below, the real game will start when play click the mouse in the range of the “PLAY” button. (Scroll down for more hint)
You can download the background images from below:
The size of the...
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...