jay's old blog

this blog will be deleted soon - please visit my new blog - https://thesanguinetechtrainer.com

Assignments - Giving your types some body

Here are the assignments that can be done to understand this, like, really well.

·         Create a solution where you will (GYTSBASS1)

o   Define a class that represents something that you around you (for example, a laptop, phone, dog, cat, dinosaurs, batman, clouds)

o   Add some fields (at least five) to this class of yours. For example, if you chose dinosaur, then a field would be the weight of the dinosaur.

o   Each field must have a 1) collecting input method 2) returning the field method isplay that variable on the debug window

o   One method that will combine all the filed and return it as a string.

o   There must be a constructor that will assign default values to each and every field in your class.

Solutions

Find the solutions (if any) to the above assignments here.

  • ·         GYTSBASS1
[note, the solutions are provided by students who actually solved it. And as with real life, there are no 'right' solutions. Please feel free to approach the solution in any way you want and only use the current solutions as a light house, rather than a destination]

Find the other Exam 483 assignments right here.

Assignment Instructions

  • Check existing blog posts that already explain how to do each of the above.
  • Write comments (as detailed as possible, like 2 to 3 lines or even more) explaining why you did what you did. A solution without comments is like a ship without its mast, a dog without its tail, a phone without battery, a fish without fins, a bike without its wheels, a book without pages, a laptop without keyboard…and I can just keep on with other examples here.
  • After doing each step (no matter how simplistic it is), ensure that you do a commit to your repo.

You can find assignments related to Exam 483, right here.


Assignments - Choosing a type to create

Choosing a type to create

Here are the assignments that can be done to understand this, like, really well.

·         Create a solution where you will (CATTCASS1)

o   Declare a variable with correct type that will hold the sentence “study nildana”

o   Display that variable on the debug window

·         Create a solution where you will (CATTCASS2)

o   Declare a variable with correct type that will hold the sentence “exam 483”

o   Display that variable on the console window.

·         Create a solution where you will (CATTCASS3)

o   Declare a variable(s) with correct type that will hold two numbers “5” and “10”

o   Declare another variable which will hold the results of adding the above two numbers.

o   Display the value in the results variable in the debug window.

o   Display the value in the results variable in the console window.

·         Create a solution where you will (CATTCASS4)

o   Declare and define an enum that have five animals (any 4 animals of your choice. One of those animals must be a dinosaur from the movie Jurassic World)

o   Then, print each of those enum values via the console window.


Solutions

Find the solutions (if any) to the above assignments here.

  • ·         CATTCASS1
  • ·         CATTCASS2
  • ·         CATTCASS3
  • ·         CATTCASS4
[note, the solutions are provided by students who actually solved it. And as with real life, there are no 'right' solutions. Please feel free to approach the solution in any way you want and only use the current solutions as a light house, rather than a destination]

Find the other Exam 483 assignments right here.