Posted at 19:28h
in
Uncategorized
by admin
Question:
Modify the program we made in the class:
if your spaceship touched the enemy, the game over and return back the the start screen. so you can click the play button and restart the game.
...
Question:Let's say you have 4 coins each worth 1$, 2$ , 5$ and 10$. You have to find the number of ways you can give him N dollars change. N is a whole number.
Sample Input 1: 1
Sample Output 1:1
Explanation: You can give him only one 1$...
Posted at 18:58h
in
Uncategorized
by admin
Question:
Write a method that reads in three angles (in degrees). State the type of the triangle based on the conditions below:
If all three angles are 60, output Equilateral.
If the three angles add up to 180 and exactly two of the angles are the...
Problem Description
We often include emoticons in our text messages to indicate how we are feeling.
The three consecutive characters :-) indicate a happy face and the three consecutive characters :-( indicate a sad face.
Write a program to determine the overall mood of a message.
Input...
Posted at 18:48h
in
Uncategorized
by admin
Question 1
Mike, Cindy and Terry went to the orchard to pick apples. After a whole day of work, everyone picked a lot of apples. Please write a program ask how many apples each person has picked, then print the total apples all three of them...
Posted at 18:45h
in
Uncategorized
by admin
Question 1.
Write a program that asks for your first name, then asks for your last name, and then prints a message with your first and last names in it.
Hint:
Use input() to ask question and get answer, for example:
firstName = input("What is your first name?")
The string answer as value will be assigned...