subject

You know how to make objects, properties, methods, variables, and functions. There are practically no limits as to how you can combine them. Programming is not an assembly line job where you are given something, you perform the same procedure to it you do every day, and then you have a set result. Programming is problem solving. The problem might be a broken loop, or a broken function, or a broken class, or a total program. But the important thing to keep in mind is that there is no simple single answer for anything. I'm harping on this only because around now is when people complain "But you didn't show us how to make a banana for my fruit salad! How can I do my homework?!?" I showed how to make a class and how to plan a program. You make the fruit salad.
Oh yeah, and I'm also harping on this because the drop date is coming up. If you don't like programming you can still get a W. I personally think y'all should commit and stay because programming is the best job ever.
Spec:
Here we have composition (object property) and association (pointer property) only, and fewer classes than the text assignment. No aggregation (owner of dynamic memory). Write a program for a super hero group. (Avengers, X-Men, X-Force, Justice League, Teen Titans, whatever.) The program needs to track basic information about each hero or villain. Height, weight, primary power, primary weakness, and primary enemy. You don't need to actually look these up - you can invent whatever data you want.
The program needs to be able to add a new hero to the super hero group and set any of those properties with proper public/private and get/set usage. I also want to keep track of everyone's costume; color and material are enough.
Use cases:
A use case is a description of a common user performing actions with a given goal. This helps you decide if your objects are sufficient. "Get money out of an ATM," "Grade an assignment," anything related to why you are writing the program.
I want to add a new member to the group. (Whether the group tracks member or the people track what group they are in is up to you. User doesn't care.)
I want to find the name of someone's enemy.
I want to have a bunch of heroes switch to using the same costume.
Your main:
Test everything you wrote. You don't test the use cases though. You just make sure they could happen if you were asked to do them later.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:00
When is an original work considered public domain? a. when posted via social media b. when it is posted on the internet c. when a copyright symbol is not included with the piece of work d. when explicit permission is given by the author / owner
Answers: 1
question
Computers and Technology, 22.06.2019 19:30
Singing in the rain: this first part of the film shows the early history of motion picture. how accurate do you think the portrayal of the early motion picture industry is? why? is historical accuracy important in films and theater productions? explain.
Answers: 1
question
Computers and Technology, 23.06.2019 01:00
Petrică, tânăr licean în clasa a ix-a, a primit în dar de la părinţii săi un cont bancar pentru micile sale cheltuieli curente. el este pasionat de internet banking şi îşi verifică cu grijă toate tranzacţiile efectuate. pentru creşterea securităţii tranzacţiilor online, banca îi furnizează lui petrică un număr pe care el va trebui să îl modifice, obţinând un număr tan – număr de autentificare a tranzacţiei (transaction authentication number). regula de obţinere a numărului tan este următoarea: se formează cel mai mic număr par din toate cifrele numărului furnizat de bancă. cerinţă cunoscând numărul n furnizat de bancă, să se determine numărul tan obţinut de petrică. date de intrare fişierul tan.in conţine pe prima linie numărul natural n cu semnificaţia din enunţ. date de ieşire fişierul de ieşire tan.out va conţine o singură linie pe care va fi scris numărul tan cerut. restricţii • 0 < n < 18*1018 • n are cel puţin o cifră pară • numărul tan obţinut nu poate conţine zerouri nesemnificative
Answers: 2
question
Computers and Technology, 23.06.2019 11:30
Which excel file extension stores automated steps for repetitive tasks?
Answers: 1
You know the right answer?
You know how to make objects, properties, methods, variables, and functions. There are practically n...
Questions
question
History, 05.12.2020 08:10
question
History, 05.12.2020 08:10
question
Mathematics, 05.12.2020 08:10
Questions on the website: 13722360