Build a `Car` class with public attributes `std::string brand`, `std::string model`, and `int year`. Add a public method `void displayInfo()` that prints “Brand: [brand]”, “Model: [model]”, and “Year: [year]” on separate lines. Read these three inputs, instantiate the object, and call the method.
Two single-word strings and an integer separated by spaces.
Print the formatted details separated by line breaks.
Strings will not contain spaces.
Toyota Corolla 2020
Brand: Toyota
Model: Corolla
Year: 2020
This brings everything together: defining attributes, linking member functions, taking standard input, and managing object behavior.
#include <iostream>
#include <string>
class Car {
public:
// Define attributes and displayInfo() here
};
int main() {
// Instantiate Car, read input, assign attributes, and display
return 0;
}Embedded systems rely on efficient low-level programming to interact directly with hardware. In this course, you will learn how to write practical Embedded C programs used in real microcontroller-based systems. Rather than focusing only on theory, this course follows a practice-driven approach. Each lesson includes hands-on coding exercises that simulate real firmware development tasks used