374,544 views
23 votes
23 votes
What paradigm is this code based on? How do you know?

What does the number 16 mean in this code? How do you know?
Imagine you wanted to tweak the project so that the list produced by the program included teachers and kept track of how many years they have been working at the school. Using the principles of inheritance and overriding, explain how you could take this code and quickly create the new programs.
How could you apply some of the ideas, principles, or structures of coding to fields of study, industries, or tasks outside of creating computer programs? Propose at least one way to use “coding” or creating programs outside of computer science and explain how it uses coding-related concepts.
Imagine that you were programming without an IDE. What problems might you encounter?

User Deadroxy
by
3.0k points

2 Answers

18 votes
18 votes

Answer:

I Don't Know

Step-by-step explanation:

  1. nsjskdoeowowokskdnekmek biien
User RobertoT
by
3.1k points
7 votes
7 votes

1. I think this code is based on the procedural programming paradigm because it is uses a list of instructions to tell the computer what to do step-by-step.

2. The number 16 is Charlotte’s age.I do not know.I am making an educated guess on what makes sense based on what the code looks like.

3. To quickly change the code, you could add the teachers as the object, the year they started teaching, and the year it is now. Then you could find the total years worked at the school.

4. Like a computer program, a power plant uses input and output instructions in order to make a fully working and realized product.A production plant starts with an initial input, that input is taken and used in a set of instructions, those instructions take that input and create a new output. when the new output is created it is then passed on to another set of instructions that takes that output as an input to create a new output.

5. It would be harder, slower, and you would not have a tool to look for bugs for you.

What paradigm is this code based on? How do you know? What does the number 16 mean-example-1
User Sadakatsu
by
3.0k points