STIA1113-A201-GROUP-H / QUIZZES

0 stars 0 forks source link

QUIZ 1 #1

Closed azmanyasin closed 3 years ago

azmanyasin commented 4 years ago

INSTRUCTOR

Write a program to compute the ideal weight for both males and females. According to one study, the ideal weight for a female is 40 kg plus 5 kg for each inch in height over 5 feet. For example, the ideal weight for a female who is 5'3" would be 40 + 15 = 55 kg.

For a male, the ideal weight is 50 kg plus 6 kg for each inch in height over 5 feet. For example, the ideal weight for a male who is 6'2" would be 50 + 14*6 = 134kg.

Your program should ask the user to enter his/her height in feet and inches (both as integers—so a person 5'3" would enter the 5 and the 3). It should then compute and print both the ideal weight for a female and the ideal weight for a male. The general outline of your main function would be as follows:

  1. Declare your variables (think about what variables you need—you need to input two pieces of information (what?), then you need some variables for your calculations (see the following steps)
  2. Get the input (height in feet and inches) from the user
  3. Compute the total number of inches of height (convert feet and inches to total inches)
  4. Compute the ideal weight for a female and the ideal weight for a male (here you basically convert the "word" description above to assignment statements)
  5. Print the answers
  6. Plan your program, then type it in, compile, and run it. Be sure it gives correct answers.

SUBMISSION

  1. Coding
  2. Input
  3. Output
SNaqilah commented 4 years ago

https://github.com/SNaqilah/Quiz.git

YongBoonKeat commented 4 years ago

https://github.com/YongBoonKeat/Quiz

Esyaa00 commented 4 years ago

https://github.com/Esyaa00/Quiz1.git

ngchunlong279645 commented 4 years ago

https://github.com/ngchunlong279645/quiz1/tree/master/QUIZ1/src

nurqurratuaini commented 4 years ago

https://github.com/nurqurratuaini/exercises/tree/main/Quiz1

Ainurnatasya17 commented 4 years ago

https://github.com/Ainurnatasya17/Quiz1.git

ChongCheeTwau278751 commented 4 years ago

https://github.com/ChongCheeTwau278751/Quiz-1

piqahamir commented 4 years ago

https://github.com/piqahamir/Quiz.git

lohsiewchin commented 4 years ago

Loh Siew Chin 278723 https://github.com/kellyloh811/ProgrammingQuiz/tree/master/Quiz/src

athirahbazilah commented 4 years ago

https://github.com/athirahbazilah/Quiz.git

tehyeexin commented 4 years ago

TEH YEE XIN 278070 https://github.com/tehyeexin/QUIZ-1---STIA1113.git

NGZIHENG commented 4 years ago

https://github.com/NGZIHENG/NgZiHeng278024quiz.git

jiakee1026 commented 4 years ago

https://github.com/jiakee1026/Quiz1

LimKitEeNatelie commented 4 years ago

https://github.com/LimKitEeNatelie/Quiz1.git

Nurafiza058 commented 4 years ago

https://github.com/Nurafiza058/ExcerciseProg1/tree/main/quiz

MohamadAmmar123 commented 4 years ago

https://github.com/MohamadAmmar123/STIA1113/tree/master/STIA1113/src/Quiz1

khooyenni commented 4 years ago

KHOO YEN NI 278520 https://github.com/khooyenni/Quiz1.git

JasonLau278177 commented 4 years ago

https://github.com/JasonLau278177/Quiz1-.git

chunkhai8 commented 4 years ago

https://github.com/chunkhai8/quiz

zhiyi16510 commented 4 years ago

https://github.com/zhiyi16510/Quiz1-Ideal-Weight-.git

wanizzat836 commented 4 years ago

https://github.com/wanizzat836/Quiz1.git

qingyunleong commented 4 years ago

https://github.com/qingyunleong/Quiz

WoonZhunPing commented 4 years ago

https://github.com/WoonZhunPing/Quiz1

ChunWai279321 commented 4 years ago

https://github.com/ChunWai279321/QUIZZES/tree/master/Quiz/src

ffangtn commented 4 years ago

https://github.com/ffangtn/Quiz1/tree/master/quiz/src

Dayat102 commented 4 years ago

https://github.com/Dayat102/Quiz2.git Annotation 2020-11-06 095506

Chong-LeeTing commented 4 years ago

https://github.com/Chong-LeeTing/Quiz1.git

puteriwan commented 4 years ago

https://github.com/puteriwan/Quiz/tree/master/Quiz/src

FatinShamas commented 4 years ago

https://github.com/FatinShamas/QUIZ.git

Farahanim-nym commented 4 years ago

https://github.com/Farahanim-nym/quiz1

izannuddin commented 4 years ago

https://github.com/izannuddin/quiz1/tree/master/quiz1/src/quiz1

shakir277980 commented 4 years ago

https://github.com/shakir277980/quiz1.git

Pee278802 commented 4 years ago

https://github.com/Pee278802/quiz1/tree/master/QUIZ

leetzongying commented 4 years ago

https://github.com/leetzongying/Quiz1