06 Mar PMCA Sunday 10:00 Java Homework 20.03.01.
Question: Create the following * pattern image base on your input Sample Input 1: 3 Sample Output 1: * ** *** *** ** * Sample Input 2: 5 Sample Output 2: * ** *** **** ***** ***** **** *** ** *...
Question: Create the following * pattern image base on your input Sample Input 1: 3 Sample Output 1: * ** *** *** ** * Sample Input 2: 5 Sample Output 2: * ** *** **** ***** ***** **** *** ** *...
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...
Question: Make a list by taking 10 input from user. Now delete all repeated elements of the list. Sample Input: 1,2,3,2,1,3,12,12,32 Sample Output: 1,2,3,12,32...
Question: Write a program to ask the user for five names. The program should store the names in a list, and print them all out at the end. It should look something like this: Sample input: Enter 5 names: Tony Paul Nick Michel Kevin Sample output: The names are Tony, Paul, Nick, Michel, Kevin Hint: You can...
Question 1: A soccer team is looking for girls from ages 10 to 12 to play on their team. Write a program to ask the user’s age and if male or female (using “m” or “f”). Display a message indicating whether the person is eligible to play on the team. Sample Input...
Question:Create a Student class and make the following methods to : __init__() - Initialize it with name and roll number. __str__() - Display all informations of the student. setAge() - It should assign age to student. setMarks() - It should assign marks to the student. ...
Question: You and your friend have come up with a way to send messages back and forth. Your friend can encode a message to you by writing down a positive integer N and a symbol. You can decode that message by writing out that symbol N times in a row...
Question: A store is having a sale. If the customer purchased 10 dollars or more, the store will give $2 off. Please write a program to ask how much the customer has bought. The program will show the discount and the final price the customer has...
Question: Create the following * pattern image base on your input Sample Input 1: 3 Sample Output 1: *** ** * * ** *** Sample Input 2: 5 Sample Output 2: ***** **** *** ** * * ** *** **** ***** Sample Input 3: 1 Sample Output 3: * * Sample Input 4: 2 Sample Output 4: ** * * **...
Question: Create the following * pattern image base on your input Sample Input 1: 3 Sample Output 1: *** ** * * ** *** Sample Input 2: 5 Sample Output 2: ***** **** *** ** * * ** *** **** ***** Sample Input 3: 1 Sample Output 3: * * Sample Input 4: 2 Sample Output 4: ** * * **...