Posts

Showing posts from August, 2017

C language) How fat am I?? -->Let's check out BMI(Body Mass Index) using C language~!

Image
Hi guys~~   I'm lulu:-)   Today I'm going to make a program that calculates our BMI.   #include <stdio.h> int  main() {  double  weight, height;  //Declare variables to store our weight, height.  double  bmi;  //declare bariable to store our bmi.  printf("Input your weight(kg) : ");   scanf("%lf", &weight);  //store the input weight in variable 'weight'  printf("Input your tall(cm) : ");  scanf("%lf", &height);  //store the input height in variable 'height'.  height = height / 100;  //bmi uses "meter", so we should change to meter.  bmi = weight / (height * height);  //This is the formula of calculating BMI.  printf("Your BMI is : %.1lf\n", bmi);  if (bmi >= 20.0 && bmi < 25.0)   printf("Standard weight.\n");  else if (bmi < 20)   printf("Under weight.\n");  else   prin...

python) Let's make calculator using python~~

Image
Hi guys~~   I'm lulu~ :-)   Today, I'm going to make two calculators using python.   First is a calculator that calculates plus, minus, multiple and division if a user input two numbers.   Second calculator will only show one result when a user input two numbers and a operation.   These days python is really loved so studying python will be helpful.     It's not hard to make it. Let's see how to make calculator.   First calculator)   print("Input two numbers:")  #first, I printed "Input two numbers" x=int(input(''))  # after that, I stored two numbers at "x" and "y" each. y=int(input('')) def my_plus(x,y):  # I used "def" function to make my_plus function  return x+y   #my_plus function will return "x+y" print("Plus result is", my_plus(x,y))  #and finally my_plus will print "Plus result is x+y" def my_minus(x,y):   #again, I made my_mi...

C language programming) How much will I get after calculate salary, bonus, and tax?

Image
Hi guys~! I`m lulu~ :-) Today, I`m going to make program that informs me "How much will I get after calculate salary, bonus, and tax?" Let`s see how to do this. #include <stdio.h> int main() { int  salary, bonus, total;  /* they are the variables for storage my salary, bonus, and total. Total, in here, is the sum of salary and bonus. However, you don't have to memorize  because we will define down there. */ double  tax, real_income;  /*we also proclaim tax, and real_income. I proclaimed using "double" because tax and real_income are real numbers*/ salary = 300;   //Let's say my salary is $300 bonus = 30;   //Let's say my bonus is $30 total = salary + bonus;   // Here, I defined total is the sum of salary and bonus. tax = total * 0.0033;   // Also, I defined tax is 3.3% of total  real_income = total - tax;    // Then, my real_income will be like this. printf("Your real_incom...

My first blog posting

Hi guys~~!!  I`m lulu~~ This is my first time posting my writting at google, so I`m going to  introduce myself just a little bit (cuz it`s my first time~^^). I`m Korean so my Engligh is not that great.  However, I want to communicate with many people so I decided to make account at google.  Actually, I have my blog at Naver in Korean,  but that couldn`t make me satisfied.  So, from now on, I`m going to manage this blog too. I`m going to post my daily life, programming, and many helpful informations.  So subscribe me!! it will help you to live smarter life~!! :-) I`m major in ICT. Information & Communication Technology (ICT)  is now a critical technology. Although my English is not that great right now, I can learn from you guys (and you can learn from me about many information). So lets communicate actively~!!^^