{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

HES1300 Lab 3 - Swinburne University of Technology(Sarawak...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Swinburne University of Technology (Sarawak Campus) School of Engineering, Computing and Science Semester 2, 2014 HES1300 Robotics & Mechatronics Project 1 (C Programming) Lab 3 – Control Structure (selection) Task 1 – simple if/else structure Write a C program to implement the instructions below: 1. Start 2. Read <number of kills> from user 3. Read < number of death> from user 4. If <number of kills> / < number of death> is greater than 1, print “ you are pro!! 5. Else , print “ Noob!! Practice more….. 6. End Task 2 – Nested if/else structure Translate the following flowchart into a C program (use nested If Else statement).
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Task 3 – Nested if/else structure
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}