0% found this document useful (0 votes)
39 views1 page

C Programming Quiz for Mechanical Eng.

The document is a flowchart for a C programming quiz that simulates a shop. It tracks the number of customers that buy something and the number that don't buy anything until the customer counter reaches 10 or buys surpass 8, at which point it will print a message to open or close the shop. It introduces programming concepts like variables, conditional statements, and printing outputs.

Uploaded by

Mc Eswaran
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views1 page

C Programming Quiz for Mechanical Eng.

The document is a flowchart for a C programming quiz that simulates a shop. It tracks the number of customers that buy something and the number that don't buy anything until the customer counter reaches 10 or buys surpass 8, at which point it will print a message to open or close the shop. It introduces programming concepts like variables, conditional statements, and printing outputs.

Uploaded by

Mc Eswaran
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

NILAI POLYTECHNIC, NEGERI SEMBILAN

DEPARTMENT OF MECHANICAL ENGINEERING


DJM 1022 C PROGRAMMING
COURSE/ SECTION : DJM 1022
QUIZ 1: INTRODUCTION OF PROGRAMMING CONCEPT (CLO1, C3)

START

Buy=0

CUSTOMER=+1

nothing=0

BUY=+1

Customer =1
TRUE

Customer buy in shop

Customer counter <=10

FALSE

TRUE

NOTHING =+1

FALSE
PRINT NUM OF
BUY

BUY>8

TRUE

PRINT NUM OF
NOTHING

PRINT OPEN THE


SHOP

FALSE
PRINT CLOSE
THE SHOP

END

You might also like