Author: admin
																	
																												 Home > Articles posted by admin (Page 203)  
																										 
								                                                             
						 
					 
				 
								 
			 
		
            			
									
						
			
								
					
						
						
							Posted at 21:32h
							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 also download the code from the following link:
fighter_program.py
You can...
						
					 
				 
			 
		
		
					
			
								
					
						
						
							Posted at 22:41h
							in 
Uncategorized                                                            
                                    by                                    admin
                                
                            															
																							
																							
													 
						Question:
As we mentioned in the class, please modify the code below to create simple calculator to:
 	add addition, subtraction, multiplication and  division button and calculate accordingly
 	check if the num1 and num2 is valid entry(has to be all digits)
 	show "please select operation" when user...
						
					 
				 
			 
		
		
					
			
								
					
						
						
							Posted at 22:30h
							in 
Uncategorized                                                            
                                    by                                    admin
                                
                            															
																							
																							
													 
						 
Question 1
Write a program to solve the following question: Three people ate dinner at a restaurant and want to split the bill. The total is $35.27, and they want to leave a 15 percent tip. How much should each person pay?
Hint:
You can create several variables for each...
						
					 
				 
			 
		
		
					
			
								
					
						
						
						
Question 1:
Write a program to print a multiplication table (a times table). At the start, it should ask the user which table to print. The output should look something like this:
You probably used a for loop in your program in last homework. That’s how most people would do...
						
					 
				 
			 
		
		
					
			
								
					
						
						
							Posted at 21:46h
							in 
Uncategorized                                                            
                                    by                                    admin
                                
                            															
																							
																							
													 
						Question 1.
A store is having a sale. They’re giving 10 percent off purchases of $10 or lower, and 20 percent off purchases of greater than $10. Write a program that asks the purchase price and displays the discount (10% or 20%) and the final
price.
Question 2.
A soccer team is looking...
						
					 
				 
			 
		
		
					
			
								
					
						
						
							Posted at 21:39h
							in 
Uncategorized                                                            
                                    by                                    admin
                                
                            															
																							
																							
													 
						Question:
Eric works in a door mat manufacturing company. One day, he designed a new door mat with the
following specifications:
◦ Mat size must be A x B. (A is an odd natural number, and B is 3 times A.)
◦ The design should have 'WELCOME' written in...
						
					 
				 
			 
		
		
					
			
								
					
						
						
						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...
						
					 
				 
			 
		
		
					
			
								
					
						
						
						Question 1.
Write a program to print a multiplication table (a times table). At the start, it should ask the user which table to print. The output should look something like this:
Sample Input:
Which multiplication table would you like? 5
Sample Output:
Here's your table:
5 x 1 = 5
5 x 2...
						
					 
				 
			 
		
		
					
			
								
					
						
						
							Posted at 22:04h
							in 
Uncategorized                                                            
                                    by                                    admin
                                
                            															
																							
																							
													 
						Question:
Use TKinter to create following window with three buttons:
 	the "blue" button will print "blue" in the python shell screen
 	the "red" button will print "red" in the python shell screen
 	if left mouse button click the "color" button will print "blue" in the python...
						
					 
				 
			 
		
		
					
			
								
					
						
						
						Question:
Important!!!! Please read question through carefully, if you have any questions, please do not hesitate to contact me through weChat. The problem solving thinking of this question will help you understand future computer competition questions. 
You and your friend have come up with a way to...