Chapter 2 and something else

--Originally published at S' Nami Bog. Servitas Vitae

First of all, teacher I would like to apologize for not attending to the past class, I will see you tomorrow.

On the first chapter I discussed and talked about how important it was to follow the requirements of a client’s client.

Even though that is important we also need to take into consideration that our client that is ordering the software also needs attention and dedication.

Most people work this way: What do you need?

I need a software that shows me the addition of this and this.

Say no more. What happens when you deliver the project? Well it is a different thing that the client didn’t want, then your boss makes a huge deal and you know the drill.

How can we avoid this and what went wrong?

Always ask your client what exactly does he want, why? Well, this will help you organizing your ideas and brain storm and deliver a product that the customer really wants. There are no wrong questions and you look more of a fool without asking and leaving with the doubt. Client wants it pink but you did it red. Easy task to fix it but the damage is done.

Another thing is to have into consideration that modt of the time the client will never be honest; therefore, we/you need to look deeper and understand them. Let’s say you are working for a company that sells clothes and their store has pink and red on the walls, customer says “I want it red” You must ask yourself if red is the only color he truly wants and if you have a doubt implement the pink one too. In other words be one step ahead and this doesn’t only apply with aesthetic things, you can also apply this to functions and Continue reading "Chapter 2 and something else"

Software Development Life Cycle

--Originally published at S' Nami Bog. Servitas Vitae

I wanted to know more about Software Development Life Cycle or shorten would be SDLC.

First of all I would like to mention that there are different phases, to be exact there are five and each one does a different function. I will do a breakdown of each one as followed.

Name of the phases:

Requirement Analysis, Design, Coding, Testing, Deployment & Maintenance

Disclaimer: All of this information is summarized from a video form YT whose will be referenced at the end of the post.

Let me start with Requirement Analysis:

As I mentioned on my previous blog the client needs to report what the customer needs or wants; therefore, providing requirements would be what the customer wants. For example, the customer would like to know if we have items in stock and if not an ETA for them.

I think we all know that whenever a big project is on the go a big team is also involved so it is no surprise that it needs someone who is an expert on analysis. This helps the project to be balanced in terms of logistics, financial support etc.

 

First Blog, Ch 1 & Personal Opinion

--Originally published at S' Nami Bog. Servitas Vitae

This is the first blog which will be based on Chapter 1.
First of I would like to start with the very first page of Chapter 1. It is so short but so true that it hurts, let me explain why. In my opinion today’s standards are beyond our imagination and being honest we see and interact with products, items and people that we think they are perfect. Therefore, we think that anything that we do in our lives has to perfect. Just like the book says and I quote “Where to start?”. We worry too much about what other people could say that we never focus on what is really important, are we enjoying what we’re doing?
The next thing that comes up to my mind is the exercise of what we would change to a software app in this case Rick’s guitar shop (for example) and what do we think makes a great software so here is my opinion regarding this…
“Every time we try to write a program we never take into consideration what the client wants. I truly believe that good apps require less clicks or less taps. Take for instance an app in which you want to buy something, after searching you finally made a conclusion, you added the item to the shopping cart and all of a sudden you get bombarded by multiple ads from the app or web page that has nothing to do with what you want. Things like this makes the customer annoyed and most likely will never use the app again. But what happens when we ignore all of those ads and we try to pay? “TAP HERE TO PAY IMMEDIATELY !” And of course it only requires one tap or click. Another good practice would be having a Continue reading "First Blog, Ch 1 & Personal Opinion"

Quiz Week 9

--Originally published at S' Nami Bog. Servitas Vitae

For this assignment these were the instructions:

Write a function that receives four parameters: x1, y1, x2, y2 which are all floating point values.

The function is called distance and returns (float) the distance between x1,y1 and x2,y2 on the cartesian coordinate plane.

Here is the code written on Atom:

Screen Shot 2017-05-04 at 9.18.48 AM

Here is the code running on Terminal, once again I’ve decided to run it twice and using different values just to test the results and have a better understanding.

 

SS Quiz W9


Quiz Week 8

--Originally published at S' Nami Bog. Servitas Vitae

These were my instructions for this quiz:

  • Write a function that calculates returns the “nth” Fibonacci number where we define a function over the Fibonacci numbers mapping the naturals (starting with zero) to the Fibonacci series. So fibonacci(0) returns 0, fibonacci(1) returns 1, fibonacci(2) returns 1 and so on. Note that we are using the modern definition where the sequence starts with zero. You should try to implement this with two solutions: one with a loop and one with recursion. Which do you think is “better”, which looks more “elegant”, which is more “efficient”?

This is my code written on Atom:Quiz Week 8

Here is the code running on Terminal:

SS Quiz W8.png

As you can see I decided to use two numbers just to test the results in this case the numbers were 5 and 20.


Quiz Week 4

--Originally published at S' Nami Bog. Servitas Vitae

This were the instructions posted by the teacher:

For this quiz I want you to (in class) create a program with two functions:

  • def minimum_three(x, y, z):  # returns the value that is smallest of x, y and z
  • def sum_squares(x, y, z): # returns the value of the sum of squares of x, y, z

Here is a screenshot of my code:

Edit: I missed an underscore on line 22.

Edit 2: I missed the ” : ” on line 24 after “__main__”: Running the code should be fine now.Quiz Week 4

After saving the file I will run it on Terminal, here is the result:

 


WSQ06 in Python 5! 10! 50! Bringing that Math 4 class

--Originally published at S' Nami Bog. Servitas Vitae

Instructions:

” Create a program that asks the user for a non-negative integer (let’s call that number n) and display for them the value of n! (n factorial).

After showing them the answer, ask them if they would like to try another number (with a simple y/n response) and either ask again (for y) or quit the program and wish them a nice day (if they answered n). ”

For this task I will apply what I learned back in Math IV in high school; n! factorial, the factorial is not hard to learn it is in fact one of the easiest topics in math. For instance if you have 5! the result will be 5x4x3x2x1 etc. This is applied to any number and for easier results just use the calculator.

Here is my code: Screen Shot 2017-04-03 at 12.03.42 AM

Line 11 “y” and “n” refers to yes and no but I pulled out this idea from Rafael’s blog to save up space.

Here is my code running on python:

Screen Shot 2017-04-03 at 12.08.04 AM

For the first number I decided to go for a high one in this case 50! then by typing “n” I break the command and it stops there by saying “Have a fantastic day!” Very polite to be honest… The next one was 5! and finally 10!.


WSQ05 Going back in time?

--Originally published at S' Nami Bog. Servitas Vitae

Ken posted the instructions:

” You will go back and do WSQ01 – Fun with Numbers again.

But this time, write a function for each calculation. Each function should define two parameters (in this example of type int) and return the correct value as an integer as well.

You main program needs to ask the user for the input and then call each function to calculate the answer for each of the parts. ”

Back in time or should we go forward? Anyways, I’m not trying to make a reference to the song by Pitbull Men in Black III… Instead I decided to pull out this:

Honestly which one is better? The original one or the spin off by Rick and Morty aka the best cartoon show ever after DBZ.

I should stop talking about non related stuff and focus on the code:

Screen Shot 2017-04-02 at 7.05.38 PM

Here is the code running on Terminal:

Before posting the photo I would like to mentioned I made some mistakes when writing the code and those are as followed:

  1. Line 15, I wrote “: instead of :” (this has been fixed) print(“The difference of the two numbers is”:,difference(var1,var2))
  2.   File “WSQ05.py”, line 19  if __name__==”__main__” this line was missing a ” : ” (this has been fixed)
  3. Finally, line 17 (var,var2)) was missing a 1 after var (this has been fixed)
Click to view slideshow.

 


WSQ04. Did someone said Boot Loops or Froot Loops or just Loops?

--Originally published at S' Nami Bog. Servitas Vitae

Let’s get this started by the instructions posted by Ken:

” Write a program that asks for a range of integers and then prints the sum of the numbers in that range (inclusive).

You can use a formula to calculate this of course but what we want you to do here is practice using a loop to do repetitive work.

For example, the sum from 6 to 10 would be 0 + 6 + 7 + 8 + 9 + 10 ”

Here is the code written on Atom:

Screen Shot 2017-04-02 at 6.56.00 PM

Here is the code running on Terminal:

Screen Shot 2017-04-02 at 6.58.15 PM

I made some tests with different values and here are the results; I even put 10 and 10 to see what the result was…for my surprise it is 10.