CP2022 - Lab01 - Algorithm - IntroC# - Student 2
CP2022 - Lab01 - Algorithm - IntroC# - Student 2
Objectives
● To understand the concept of Flowchart and Pseudocode.
Sending Method:
● Submission files for submitting are listed as follow:
o Save this document file that contains all answers as “Lab01_YourID.pdf”
Practice I – Designing pseudo code and flowchart by fill in the answers in the boxes
Question 1 : Design Pseudo code and corresponding Flowchart to Ask user to input a number. If a number is
positive, print “positive”. Otherwise print “zero or negative”.
Input: number
Process: check condition of number
Output: show message of “positive” or “zero or negative”.
-1/6-
1501116 Computer Programing
-2/6-
1501116 Computer Programing
-3/6-
1501116 Computer Programing
Question 2 : Design Pseudo code and corresponding Flowchart to transform the degree of Fahrenheit to Celsius
and display it on the screen.
Input: fahrenheit
Process: calculate a degree of Celsius
Output: "Degree of celsius is " + celsius
-4/6-
1501116 Computer Programing
Practice II – Use Visual Studio 2022 to develop, compile and run program
This practice shall give you the step to develop source code, compile and run Hello World
program using Visual Studio 2022 IDE as a developer tool
Create Project
1. Select menu File > Create a new project
-5/6-
1501116 Computer Programing
Question 3 : Write the program to show the output is “My name is ___Your name_____”
-6/6-