Var strUserName = "" // user's name, this is a STRING var strUserCity = "" // user's city, this is a STRING var intNumLetters = 0 // number of letters in user's first name, this is an INTEGER var strMessage = "" // output to the user, this is a STRING strUserName = window.prompt("What is your name?") //this is asking for the user's name strUserCity = window.prompt("Where do you live?") //this is asking what city does the user live in strMessage = ("Hello, ") strMessage += (strUserName.toUpperCase()) //this puts the user's name into uppercase letters strMessage += (". Welcome Message Ask for data Input name, address, city, favorite color data Output data Write name, address, city, favorite color message – the sequence of the program until it finishes No deviation Each activity of a project leads to a defined intermediate result, normally in the form of a document (e.g., a requirement specification) during the early phases. Start – where the program begins Input – data to be used for the program Step One, Step Two, etc. The linear structure of sequential models is plausible and facilitates planning and communication of a project. #SEQUENTIAL STRUCTURES SERIES#(decisions and loops)Ī series of statements Executed in order No branching A jump in the flow of execution Sequential programs are easy to write, but lack flexibility. Basic Sequential Learning Phenomena: Rats Appear to be Sensitive to Structure and Violations of Structure in Hierarchically Organized and Interleaved Serial. of Computer and Information ScienceĢ Goals Understand why a sequence structure is usedģ Sequential Logic Early programs used sequential logic. Introduction to Programming Concepts Dept. Presentation on theme: "Sequential Structures"- Presentation transcript:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |