28 May PMCA Sunday 12:00 Java Homework 20.05.24.
Question: Continue with the code of the previous class and create a method to add data to a heap....
Question: Continue with the code of the previous class and create a method to add data to a heap....
Draw the following picture in the pygame window: (could be different color) Hint: using pygame.draw.circle ...
Question: Given a string, find the first non-repeating character in it and return it's index. If it doesn't exist, return -1. Sample Input 1: Apple Sample Output 1: 0 Explanation: “a” is the first character which is not repeating in the string apple and occur only once. Sample Input 2: lovelivesure Sample Output 2: 1 Explanation:...
Question: Modify the program we made in the class to: Add one missile to your program missile will automatically move from your spaceship to the top of the screen once missile reach the top of the screen, it will re-appear from the location of your fighter Hint: ...
Question: Use input() to take 10 input from user, each item is separated by space. Then try to complete the following task: Create a list from the input Delete all repeated elements of the list. Sample Input 1: 1 2 3 2 1 3 98 98 67 Sample Output...
Question 1: Write a program that asks the user to enter his/her name, age, favorite color, and favorite food. Have the program save all four items to a text file, each one on a separate line. Question 2: Write a program that asks the user to enter his/her favorite book...