Transcript for:
Project 1 - Flooring Estimate Program Overview

Hello everyone. In this video, I'm going to do a demo of what project one should look like when it's run. So, I've already gone ahead and solved this uh this assignment. And I'm going to run it now. I'm going to run it two different ways. One way is the way that it's displayed here as sample output. Then I'm going to show you another way that you might want to try to uh to display the information in a nicer way using a table. But that way that part's totally optional. Okay. So let me run this the first way. I'm going to run it in full screen mode. Okay. So the first thing it's doing it's asking me for the customer name. I'm going to use my own name. Remember you should be able to enter anything you want here. Don't hard code any names. So that's my name. My address is 123 Main Street. And now it's going to ask me what's the size of one side of the square room. So I'm going to use the same values that I used in the example. 12.5. What's the length of the rectangular room in feet? It would be 10.5 by 11.75. Remember, we can type both floating point numbers in here as well as integers. So be sure you test with both. And the circular room is 20.5. I'll press enter. And there's the estimate for the customer. So there's the estimate for Frank Metropolis 123 Main Street. Here's the information for the square room, the square footage, the material cost, the installation cost, the total cost. Here's the information for the rectangular room. Here's the information for the circular room, and there's the grand total, 326183. So that's the program as described in the spec. Uh this is the output. If you give me output like this, it's perfectly fine. I'll be real happy with this. But if you want to play around with tables and using fringing and formatting, again, this is completely optional, but you want might want to play around with it. Let me show you what it would look like with that. Okay, so here's the same program except the output is going to be different. Everything else is the same, the calculations, the input, everything else. So, let's say that this is for Mary Johnson, and we just capitalize that M. And Mary lives at 200 Elm Street. And we'll use the same values. 12.5 for the square room, 10.5 and 11.75 for the rectangular room, and 20.5 for the circular room. Oops, there we go. 20.5. Now, if I press enter, everything else is exactly the same. The output's different. Here you see the output looks a little bit nicer. Estimate from Mary Johnson, 200 Elm Street. Here you have the room type, the area for each room, the material cost, the installation costs, and so forth. And then I'm giving the grand total here. Obviously, this is much nicer output. This is much easier to read, but it's going to take a little bit of work to format this with your fstrings and your, you know, right justifying and left justifying a certain width and so forth. It's not hard. And uh, as I said, it's optional. You don't have to do this, but if you have the time, you might as well give it a shot. Make sure you solve it the first way, which is a little easier. And uh if you have time do go ahead and do this. This will give you a little bit of experience um fooling around with tables because later on in the future assignments we're going to have tables that are like this that are required. Okay. So uh at that point you know just go in there test your code with integers test your code with floats. Don't worry about inputting invalid data. I'm going to test your code only with valid data. I'm not going to type any you know gibberg and stuff in there and try to crash it. That's not the point. We we'll learn how to deal with crashing later on and validate input. But right now, it's just a straight program. Write down the no if statements, no statements, no loops, no object-oriented programming. Just sequence right from top to bottom. Get the information from the user, do your calculations, and display the results. Okay. If there's any questions, please let me know. Hope everyone has a great day.