Unit 3: Storing data in structs, saving text files

CS 200: Concepts of Programming with C++, Summer 2022

🔙 BACK TO HOME PAGE


This unit we're going to learn more about storing and organizing data in our programs. While variables can be useful for storing single bits of information, if we want data that is related to each other it is best to store that data in a struct.

💬 Discussion board

If you have any questions on this week's assignments, make sure to post in the 💬 Unit 3 help - Discussion board!


🆕 Introducing... Structs and file output

Structs are a handy way we can create our own data types. What do we use this for? - We can put variables inside our structs to relate several items together, for example: Product, which contains a "string name" and a "float price" and a "int quantityInStock".

We will also be saving information to text files outside of our programs. This is a way we can generate reports or save data to be loaded in later on.


📘 Textbook chapters

TEXTBOOK DOWNLOAD


🧠 Tech Literacy - Data representation

Part of computer science and learning how software works includes learning how computers store information. How do we turn binary values (1's and 0's) into text, images, music, and videos?


🏋️ Exercises... Practicing Structs and File Output

These exercises will help introduce you to working with structs and writing data out to a text files.


💪 Extra practice with C++ basics

Extra practice with this week's content! Do the extra practice to make sure you have a good grasp on the topic!


💻 Project - Units 3 and 4

Every two units have a project that combines the topics from the two units together. These assignments require more problem solving and planning, so make sure to give yourself enough time to work on it!


🧑‍🏫 Check in - How did this week go?

How did this week go? Let me know in the check in!


💯 Mastery check

When you're feeling ready you can work on the Mastery Check for these topics.