Write a C++ program defining a `Rectangle` class with length and breadth, containing member functions to compute area and perimeter.
Two floating-point numbers representing length and breadth.
Print area and perimeter.
Length, Breadth > 0
5.5 3.2
Area: 17.60, Perimeter: 17.40
Encapsulates geometric calculations inside a class.
#include <iostream>
#include <iomanip>
class Rectangle {
public:
float length;
float breadth;
void compute() {
// Write your code here
}
};
int main() {
Rectangle r;
if (std::cin >> r.length >> r.breadth) {
r.compute();
}
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