Uncategorized
																	
																												 Home > Uncategorized (Page 7)  
																										 
								                                                             
						 
					 
				 
								 
			 
		
        		
							
						
			
								
					
						
						
							Posted at 06:02h
							in 
Uncategorized                                                            
                                    by                                    admin
                                
                            															
																							
																							
													 
						Question:
Being able to send encoded messages during World War II was very important to the Allies. The messages were always sent after being encoded with a known password. Having a fixed password was of course insecure, thus there was a need to change it frequently....
						
					 
				 
			 
		
		
					
			
								
					
						
						
							Posted at 05:22h
							in 
Uncategorized                                                            
                                    by                                    admin
                                
                            															
																							
																							
													 
						Question:
Continue modify the war-robot program we made in the class, so that:
 	if enemy’s hp is lower or equal to 0, use msgbox to display message ‘you win’, and the while program finish.
 	it will be the enemy’s turn to strike you back. Enemy can...
						
					 
				 
			 
		
		
					
			
								
					
						
						
							Posted at 05:04h
							in 
Uncategorized                                                            
                                    by                                    admin
                                
                            															
																							
																							
													 
						
Question 1:
Create a Student class and make the following methods to :
 	__init__() – Initialize it with name and roll number.
 	__str__() – Display all information of the student.
 	setAge() – It should assign age to student.
 	setMarks() – It should assign marks to the...
						
					 
				 
			 
		
		
					
			
								
					
						
						
							Posted at 04:58h
							in 
Uncategorized                                                            
                                    by                                    admin
                                
                            															
																							
																							
													 
						
Question 1:
Create a Student class and make the following methods to :
 	__init__() – Initialize it with name and roll number.
 	__str__() – Display all information of the student.
 	setAge() – It should assign age to student.
 	setMarks() – It should assign marks to the...
						
					 
				 
			 
		
		
					
			
								
					
						
						
							Posted at 04:34h
							in 
Uncategorized                                                            
                                    by                                    admin
                                
                            															
																							
																							
													 
						Question :
Create a loop between 1 to 20.
 	Print “fizz” if the number is divisible by 3
 	Print “bizz” if the number is divisible by 5
 	Print “fizzbizz” if a number is divisible by both 3 and 5.
 	Otherwise, print the number itself.
...
						
					 
				 
			 
		
		
					
			
								
					
						
						
							Posted at 17:41h
							in 
Uncategorized                                                            
                                    by                                    admin
                                
                            															
																							
																							
													 
						
Question 1:
Create a Tank class which have the attributes of:
 	model
 	direction(use ‘up’, ‘down’, ‘left’ or ‘right’)
 	x position and
 	y position
The class also have the following method:
 	move () method can change the x or y position by 10 base on the tank’s direction. (‘up’...
						
					 
				 
			 
		
		
					
			
								
					
						
						
							Posted at 17:36h
							in 
Uncategorized                                                            
                                    by                                    admin
                                
                            															
																							
																							
													 
						
Question 1:
Create a Tank class which have the attributes of:
 	model
 	direction(use ‘up’, ‘down’, ‘left’ or ‘right’)
 	x position and
 	y position
The class also have the following method:
 	move () method can change the x or y position by 10 base on the tank’s direction. (‘up’...
						
					 
				 
			 
		
		
					
			
								
					
						
						
							Posted at 02:53h
							in 
Uncategorized                                                            
                                    by                                    admin
                                
                            															
																							
																							
													 
						Question 1:
Use while loop (NOT for loop) to create the multiplication table program. After asking which table the user wants, ask her how high the table should go. The output should look like this:
Sample Input:
Which multiplication table would you like? 7
How high do you want to go? 12
Sample Output:
Here’s...
						
					 
				 
			 
		
		
					
			
								
					
						
						
							Posted at 02:37h
							in 
Uncategorized                                                            
                                    by                                    admin
                                
                            															
																							
																							
													 
						
Question:
Create a Rocketclass with two attributes: nameand destination. SpaceRocketclass is the inherited class from the base class Rocket. Besides the two attributes the base class has, SpaceRocketclass has an attribute maker.
The Rocketclass has a method called launch(), it returns a string like "Falcon 9(which is...
						
					 
				 
			 
		
		
					
			
								
					
						
						
							Posted at 01:54h
							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:
...