Lecture Introduction to computer and programming - Lecture No 12

After studying this chapter you will be able to understand: Example program – nested loop, break and continue statement, case control structure, a menu driven program using if else, switch case, nested case control structure. | CSC103: Introduction to Computer and Programming Lecture No 12 Previous lecture Example program – nested loop break and continue statement case control structure Today’s lecture outline A menu driven program using if else switch case Nested case control structure A calculator program using switch A calculator program using if else Go to program Cont. Go to program 6 Another menu driven program Menu is Factorial Prime no Even / odd exit Write a program Nested switch case structure Suppose we want to make a program of student teacher database. A user can add, display and edit record of teacher or student. Main menu Student record Teacher record exit Student record menu Add record Display record Edit record Go back to main menu Teacher record menu Add record Display record Edit record Go back to main menu Write a . | CSC103: Introduction to Computer and Programming Lecture No 12 Previous lecture Example program – nested loop break and continue statement case control structure Today’s lecture outline A menu driven program using if else switch case Nested case control structure A calculator program using switch A calculator program using if else Go to program Cont. Go to program 6 Another menu driven program Menu is Factorial Prime no Even / odd exit Write a program Nested switch case structure Suppose we want to make a program of student teacher database. A user can add, display and edit record of teacher or student. Main menu Student record Teacher record exit Student record menu Add record Display record Edit record Go back to main menu Teacher record menu Add record Display record Edit record Go back to main menu Write a program | CSC103: Introduction to Computer and Programming Lecture No 12 Previous lecture Example program – nested loop break and continue statement case control structure Today’s lecture outline A menu driven program using if else switch case Nested case control structure A calculator program using switch A calculator program using if else Go to program Cont. Go to program 6 Another menu driven program Menu is Factorial Prime no Even / odd exit Write a program Nested switch case structure Suppose we want to make a program of student teacher database. A user can add, display and edit record of teacher or student. Main menu Student record Teacher record exit Student record menu Add record Display record Edit record Go back to main menu Teacher record menu Add record Display record Edit record Go back to main menu Write a . | CSC103: Introduction to Computer and Programming Lecture No 12 Previous lecture Example program – nested loop break and continue statement case control structure Today’s lecture outline A menu driven program using if else switch case Nested case control structure A calculator program using switch A calculator program using if else Go to program Cont. Go to program 6 Another menu driven program Menu is Factorial Prime no Even / odd exit Write a program Nested switch case structure Suppose we want to make a program of student teacher database. A user can add, display and edit record of teacher or student. Main menu Student record Teacher record exit Student record menu Add record Display record Edit record Go back to main menu Teacher record menu Add record Display record Edit record Go back to main menu Write a program

Bấm vào đây để xem trước nội dung
TÀI LIỆU MỚI ĐĂNG
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.