Make a flowchart for the below program. #include”mbed.h”; AnalogIn LM35(p15); BusOut control (p21,p22); BusOut SSD(p5,p6,p7,p8,p9,p10,p11,p12); Int main(){ Int MSD=0, LSD=0; control=0x00; While (1) { Float T = LM35*330; MSD = (int) T/10; LSD = (int) T%10; Switch (MSD) { Case 0: SSD=0x3F; break; Case 1: SSD=0x06; break; Case 2: SSD=0x5B; break; Case 3: SSD=0x4F; break; Case 4: SSD=0x66; break; Case 5: SSD=0x6D; break; Case 6: SSD=0x7D; break; Case 7: SSD=0x07; break; Case 8: SSD=0x7F; break; Case 9: SSD=0x6F; break; } Control = 0x01; Wait (0.01); Switch (LSD) { Case 0: SSD=0x3F; break; Case 1: SSD=0x06; break; Case 2: SSD=0x5B; break; Case 3: SSD=0x4F; break; Case 4: SSD=0x66; break; Case 5: SSD=0x6D; break; Case 6: SSD=0x7D; break; Case 7: SSD=0x07; break; Case 8: SSD=0x7F; break; Case 9: SSD=0x6F; break; } Control = 0x02; Wait (0.01); }

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter5: Repetition Statements
Section: Chapter Questions
Problem 2PP: (Mechanics) The deflection at any point along the centerline of a cantilevered beam, such as the one...
icon
Related questions
Question

Make a flowchart for the below program.

#include”mbed.h”;

AnalogIn LM35(p15);

BusOut control (p21,p22);

BusOut SSD(p5,p6,p7,p8,p9,p10,p11,p12);

Int main(){

Int MSD=0, LSD=0; control=0x00;

While (1) {

Float T = LM35*330;

MSD = (int) T/10;

LSD = (int) T%10;

Switch (MSD)

{

Case 0: SSD=0x3F; break;
Case 1: SSD=0x06; break;

Case 2: SSD=0x5B; break;

Case 3: SSD=0x4F; break;

Case 4: SSD=0x66; break;

Case 5: SSD=0x6D; break;

Case 6: SSD=0x7D; break;

Case 7: SSD=0x07; break;

Case 8: SSD=0x7F; break;

Case 9: SSD=0x6F; break;

}

Control = 0x01;

Wait (0.01);

Switch (LSD)

{

Case 0: SSD=0x3F; break;
Case 1: SSD=0x06; break;

Case 2: SSD=0x5B; break;

Case 3: SSD=0x4F; break;

Case 4: SSD=0x66; break;

Case 5: SSD=0x6D; break;

Case 6: SSD=0x7D; break;

Case 7: SSD=0x07; break;

Case 8: SSD=0x7F; break;

Case 9: SSD=0x6F; break;

}

Control = 0x02;

Wait (0.01);

}

Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Fundamentals of Computer System
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning