 Okay, so this is the assignment to information session for CSC 365. Really, we're just going to be going over sort of some information about the homework assignment, how to get started some tips on common problem areas. And then we'll go ahead and take some questions afterward. So this one is sort of just about reading input until the end of file I've got Java C++ and Python. Sort of getting started code snippets with Java, you're going to be using a scanner or really you can do this anyway if you're more comfortable and kind of know what to do in Java but one of the ways is you can, you can have a scanner object. In a while loop you can have the object check for whether there's a next line in the input. And then print that line out to the to the console and then keep looping over and over and once it detects that there's no next line or the end of file. It'll break that loop and your program will be finished. And C++ it's similar, just with standard get line. And then that'll store into a line string or a string type. And then you can just print that from inside the while loop, and I'll just keep going until the end of file. Really the simplest one to do is Python all you have to do is for line in the standard input or standard in right here. Just print the line or while you're in that loop. Check and see what type of command it is and really for all these it'll apply. You can check and see what type of command it is and react accordingly with the security policy. There's some some quick tips that kind of we've thought about to go about this this process so really this is the main part of the assignment right check and whether someone is allowed inside. So really you can think of this as a process that can't be interrupted by anyone else once it's been started so say person one inserts their key. And we can set some variables to keep track of who entered what key at any given time. So when someone inserts a key, you can, you can keep track of who entered it, and what key they're using what he's currently inserted into the lock. So when someone, if someone tries to turn the key that isn't the first person, we can print an error message. And then once the once the process is finished there once the first person enters the house, we can allow someone else to insert the key and turn that key. While this process is ongoing, we can allow people to type the command who's inside and leave the house, and that shouldn't interfere with anything else with the authentication process. Anyone else have any quick to anything quick to add. And here's just some quick pseudo code for for part two. So, like I said you can have those, those variables that you have so from the from the argument from the arguments that you have when you execute the program. The next one is going to be the owner. So the name of the owner that can change the locks. And then from the next argument on, you'll have all the keys that you can store inside, whether it be a list in Python or an array list or vector and see C plus plus, or whatever it is in Java. And obviously you'll just have the this firefighter secret key that's always going to be. That's always going to allow access to whoever uses it. And that's going to be constant throughout the program. So you'll just have that built in as a constant. And then you'll just have a loop that goes through while there's input, kind of what we showed in the first slide there. And you're going to check if it's a certain, a certain command, then like insert key or turn key or enter house, etc. You can check that and then output whatever is relevant with the command so say person one enters a valid key, and they turn the key, you'll print out a section such person was able to turn the key, and then they can enter the house. Does anyone have any questions want me to go back to the slides. A little bit more about the pseudocode, the pseudocode portion. Sure. So yeah. In this slide, we went over, like the end of file, going through the list of the list of input on. So it's actually going through each one as it would be. And this scenario this is, this is more like, just read until there's nothing left. And we don't work, we don't have to worry about like, we're looped through each line, or it would, I mean it works but this is just another way you can use exceptions to code this way for the firefighter with a special input for that. I don't think so I think it's just the same way it works normally with the other keys, like, if someone if someone enters in the firefighter key, and then that same person turns in and tries to enter it should work. But again, like if the user inserts the key and then someone else that you don't know tries to turn to turn the key and enter the house it's not supposed to allow them to enter the house or turn the key. What you need to make sure is that the same user who turns the key or who inserts the keys the same person who turns the key, and is the same person that is entering the house otherwise. It would deny access. You might have to set up more variables inside within the do work within each of these statements or inside the conditions or the do work statements. So, one thing might be, you want to keep track of who inserted the key and what he was inserted so you might have an another state variable that is keeping track of that. Right after the try statement. Or before the while loop depending on how you want to write it probably before the while loop so that doesn't rewrite the or write over what the states are. And then at the catch EOF is just like just a basic and a file error that for Python is just it's it's EOF and then error for that. You can just call that like a return statement or just exit or six exit would be one way to exit the program. And we can, if anyone has any questions, feel free you can feel free to put it in chat. Excuse me so when they want to use a put insecure house does it assume that the owner is in the house after that or no. So, so some if, if my friend owns the house and then I'm trying to get into his house without him in there. I can do that if I if my friend gave me the key. So, if I know if I know the key and my friend isn't in the house, I can, I can insert my key into his house and then turn and then enter the house. No problem. I need to be inside the house in order for someone else to enter into the house or I guess even for break in using a key that they're not able to use, or using a key that they've gotten access to you. So like man in the middle of tax where I'm inserting the key and then this guy comes to me and like kicks me out of the way and then turns the game enters the house. Do we want them to allow them to like unmute so that they can. Oh wait, yeah, just unmute if you have a question or just type in chat. Should I stop the recording now for the separate question section. Yeah, I would say so. Thank you.