Programming 8 (final)

Today, in economics, we discussed about health in developing countries and obesity in developed countries. This is one of the global issues today, so I created a program to calculate the Body Mass Index (BMI) to help people identify their BMI.

I employed all of the techniques learnt throughout the project e.g. if, printf, scanf.




Additional learning outcomes
Engaged with issues of global importance – obesity and underweight in the world


Source Code:
#include <stdio.h>

int main(void)
{
double a, b;
puts("Body Mass Index Calculator");
puts("Enter your weight and height");
printf("Weight:"); scanf("%lf", &a);
printf("Height (m):"); scanf("%lf", &b);

printf("Your BMI – %.1f",  a/(b*b));

if(a/(b*b) < 18.5)
puts("Underweight");
else if(a/(b*b) >= 25)
puts("Obese");
else
puts("Normal range");

return(0);
}

Tutor (Final)

As I mentioned last week, today is my last day of this tutor project.

I initiated this project since the 1 October, 2012 and I had three students in total. While I began with just one student, other parents who heard how much my student had improved offered me more work as a private tutor. I believe that this success was the result of my efforts to improve my teaching skills and the quality of my lessons. Through this experience I have learnt the importance of preparation in order to maintain a high standard, as well as how to think from my students’ point of view so that they could get the most out of our study sessions.

Throughout the project I have learnt many things, e.g. the importance of continuous improvement. In terms of CAS learning outcomes, I believe that I have met most of the objectives.



  • Increase awareness of your strengths and areas for growth – since Maths was one of my strongest subjects, I enjoyed teaching it and I felt I have deepening my understanding of basic concepts by teaching. In my opinion,  teaching someone is the shortest way to learn things because in order to teach, I have to understand it first, and this gives a subconscious pressure that motivates me to learn.
  • Undertake new challenges – this was my first time to work as a tutor. 
  • Planned and initiated activities – I always prepare some textbooks or other teaching materials for my students and this preparation was an essential part to sustain a high quality lesson.
  • Worked collaboratively with others – since I only had an hour to teach, a good communication is required in order to use time effectively. In addition, good communication helped me to think from my students’ point of view, which leads to better understanding.
  • Shown perseverance and commitment in their activities – teaching every week wasn’t an easy task, however, I have succeed to compile my project.  
  • Engaged with issues of global importance – as I mentioned in my other posts, we sometimes discussed about global issues, such as global warming, poverty, and cultural discrimination, to practice my students’ speaking skills.
  • Developed new skills



  • Programming 7

    This program enables a user to input a value and evaluates whether the number is a multiple of 3.





    Source code:
    #include <stdio.h>

    int main(void)
    {
    int a;

    puts("3の倍数かを判定します");
    puts("数字を入力してください");
    scanf("%d", &a);

    if(a%3)
    printf("%dは3の倍数じゃないです", a);
    else
    printf("%dは3の倍数です", a);

    return(0);
    }

    Programming 6

    This program enables a user to enter a number and it shows the absolute value.
    I used printf, scanf, and if function.




    Source code:
    #include <stdio.h>

    int main(void)
    {
    double a;
    puts("数字を入力してください");
    scanf("%lf", &a);

    if(a>=0)
    printf("絶対値は%lf", a);
    else
    printf("絶対値は%lf", -a);

    return(0);
    }

    Programming 5

    This program enables a user to input two values and it display the bigger one.
    I used the if function to evaluate the two numbers



    Source code:
    #include <stdio.h>

    int main (void)
    {
    int a,b;

    puts("二数の大きい方を表示します。");
    printf("整数1:"); scanf("%d", &a);
    printf("整数2:"); scanf("%d", &b);

    if(a>b)
    printf("整数1のほうが大きいです。");
    else
    printf("整数2の方が大きいです。");

    return(0);
    }

    Programming 5

    This program enables a user to input three numbers and it displays the biggest number.

    Techniques used:
    max1=(n1 > n2) ? n1 : n2;
    max2=(max1 > n2) ? max1: n3;



    The code:
    #include <stdio.h>

    int main(void)
    {
    int n1, n2, n3, max1, max2;

    puts("3つの整数を入力してください。");
    printf("整数1: "); scanf("%d", &n1);
    printf("整数2: "); scanf("%d", &n2);
    printf("整数3: "); scanf("%d", &n3);

    max1=(n1 > n2) ? n1 : n2;
    max2=(max1 > n2) ? max1: n3;

    printf("最大値は%dです\n", max2);

    return(0);
    }

    Filming (for International Day)


    For the International Day, me and my colleagues collaborated to produce a short film to entertain the people who are watching the talent show. 

    The film involves professional throwing and catching skills. Due to the nature of the film, we had to retake the same scene many times until it works. In total, we had more that 400 takes.

    We spent a lot of time in planning, what to do and how to do it. Also time allocation and time management were the keys of this project because otherwise we will not have enough time to complete all the moves we wanted to show.

    I was the project leader so I had to plan and take leadership to guide the team members. I was also responsible for all the editing. I believe my leadership style was quite democratic – listening to all opinions but I was the one making decisions.

    Although this project was very time consuming, I have acquired number of editing skills and learnt how to take leadership.

    http://www.youtube.com/watch?v=0a1BUcSaYJw