Computers and Technology
Computers and Technology, 07.11.2019 22:31, NFMZombie

This assignment involves writing a program that models a super hero. a super hero has a name, wears a special suit when performing hero duties, might wear a cape, and has a birth date. a super hero is also able to invoke his/her special powers when called on to do so. implement a class named superhero that models the above description. use a name class to represent the name attribute, and a date class to represent the birth date attribute. you may use the date class from the lectures or define your own. if the super hero is wearing their special suit, then the suit attribute should indicate this. similarly, if the super hero is wearing a cape, then a cape attribute should indicate this. string types can be used for these two attributes. there should also be an attribute that indicates whether the super hero is invoking their special powers, and a method to set and unset the special powers attribute. provide appropriate class constructors, getter methods, setter methods, and any other methods you think are necessary to model a super hero. write a main method that creates an array of superhero objects and displays their attributes and displays whether their super powers are being invoked.

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 02:00, hctlawton
Which software would you use to create a print design? a. illustrator b. audacity c. reaper d. dreamweaver
Answers: 2
image
Computers and Technology, 23.06.2019 03:00, jarteria0
State 7 common key's for every keyboard
Answers: 1
image
Computers and Technology, 24.06.2019 00:30, petergriffin6772
Which boolean operator enables you to exclude a search term? a} not b} and c} or d} plus
Answers: 1
image
Computers and Technology, 24.06.2019 01:30, BIKRAMlawati5544
Could you find out how im still getting an 83 percent on this in edhesive a = input("enter an animal: ") s = input ("enter a sound: ") e = "e-i-e-i-o" print ("old macdonald had a farm, " + e) print ("and on his farm he had a " + a + "," + e) print ("with a " + s + "-" + s + " here and a " + s + "-" + s + " there") print ("here a " + s+ " there a " + s) print ("everywhere a " + s + "-" + s ) print ("old macdonald had a farm, " + e)
Answers: 2
Do you know the correct answer?
This assignment involves writing a program that models a super hero. a super hero has a name, wears...

Questions in other subjects: