SlideShare ist ein Scribd-Unternehmen logo
1 von 2
Need to write C code to program Ardunio to keep constant flow for below digram
Solution
int main()
{int increment=2;
int input_flow;
float valve_angle;
printf("enter the input flow");
scanf("%d",&input_flow)
printf("Enter an angle in degrees: ");
scanf("%f",&valve_angle);
if(valve_angle==180)
{cout<<"let the flow continue";
incrementer++;
}
else
{ cout<<" stop the flow here ,close valve";
increment--;
}
if(increment==1)
cout<<" no flow";
else
cout<<" let the flow move on";
}
}

Weitere ähnliche Inhalte

Mehr von todd971

Netting Process Bill report the following capital gains and losses for.docx
Netting Process Bill report the following capital gains and losses for.docxNetting Process Bill report the following capital gains and losses for.docx
Netting Process Bill report the following capital gains and losses for.docxtodd971
 
Neilson Company has monthly salaries of $22-000- Assume Neilson pays a.docx
Neilson Company has monthly salaries of $22-000- Assume Neilson pays a.docxNeilson Company has monthly salaries of $22-000- Assume Neilson pays a.docx
Neilson Company has monthly salaries of $22-000- Assume Neilson pays a.docxtodd971
 
Neuron cells generate electrical signals by concentration gradients ac.docx
Neuron cells generate electrical signals by concentration gradients ac.docxNeuron cells generate electrical signals by concentration gradients ac.docx
Neuron cells generate electrical signals by concentration gradients ac.docxtodd971
 
nest Rutherford was a prominent scientist who contributed significantl.docx
nest Rutherford was a prominent scientist who contributed significantl.docxnest Rutherford was a prominent scientist who contributed significantl.docx
nest Rutherford was a prominent scientist who contributed significantl.docxtodd971
 
Need some help!! Explain why all polynomial functions are continuou.docx
Need some help!!    Explain why all polynomial functions are continuou.docxNeed some help!!    Explain why all polynomial functions are continuou.docx
Need some help!! Explain why all polynomial functions are continuou.docxtodd971
 
On January 1- 2015- Alice Corporation had 20-000 shares of $6 par valu.docx
On January 1- 2015- Alice Corporation had 20-000 shares of $6 par valu.docxOn January 1- 2015- Alice Corporation had 20-000 shares of $6 par valu.docx
On January 1- 2015- Alice Corporation had 20-000 shares of $6 par valu.docxtodd971
 
On January 1- 2014- Richards Inc- had cash and common stock of $62-150.docx
On January 1- 2014- Richards Inc- had cash and common stock of $62-150.docxOn January 1- 2014- Richards Inc- had cash and common stock of $62-150.docx
On January 1- 2014- Richards Inc- had cash and common stock of $62-150.docxtodd971
 
On January 1- 2014- Jay Company had 10-000 shares of $1 par common sto.docx
On January 1- 2014- Jay Company had 10-000 shares of $1 par common sto.docxOn January 1- 2014- Jay Company had 10-000 shares of $1 par common sto.docx
On January 1- 2014- Jay Company had 10-000 shares of $1 par common sto.docxtodd971
 
On January 1- 2011- Phoenix Co- acquired 100 percent of the outstandin.docx
On January 1- 2011- Phoenix Co- acquired 100 percent of the outstandin.docxOn January 1- 2011- Phoenix Co- acquired 100 percent of the outstandin.docx
On January 1- 2011- Phoenix Co- acquired 100 percent of the outstandin.docxtodd971
 
On a circular track with 24 -elds two players Blue and Yellow place th.docx
On a circular track with 24 -elds two players Blue and Yellow place th.docxOn a circular track with 24 -elds two players Blue and Yellow place th.docx
On a circular track with 24 -elds two players Blue and Yellow place th.docxtodd971
 

Mehr von todd971 (10)

Netting Process Bill report the following capital gains and losses for.docx
Netting Process Bill report the following capital gains and losses for.docxNetting Process Bill report the following capital gains and losses for.docx
Netting Process Bill report the following capital gains and losses for.docx
 
Neilson Company has monthly salaries of $22-000- Assume Neilson pays a.docx
Neilson Company has monthly salaries of $22-000- Assume Neilson pays a.docxNeilson Company has monthly salaries of $22-000- Assume Neilson pays a.docx
Neilson Company has monthly salaries of $22-000- Assume Neilson pays a.docx
 
Neuron cells generate electrical signals by concentration gradients ac.docx
Neuron cells generate electrical signals by concentration gradients ac.docxNeuron cells generate electrical signals by concentration gradients ac.docx
Neuron cells generate electrical signals by concentration gradients ac.docx
 
nest Rutherford was a prominent scientist who contributed significantl.docx
nest Rutherford was a prominent scientist who contributed significantl.docxnest Rutherford was a prominent scientist who contributed significantl.docx
nest Rutherford was a prominent scientist who contributed significantl.docx
 
Need some help!! Explain why all polynomial functions are continuou.docx
Need some help!!    Explain why all polynomial functions are continuou.docxNeed some help!!    Explain why all polynomial functions are continuou.docx
Need some help!! Explain why all polynomial functions are continuou.docx
 
On January 1- 2015- Alice Corporation had 20-000 shares of $6 par valu.docx
On January 1- 2015- Alice Corporation had 20-000 shares of $6 par valu.docxOn January 1- 2015- Alice Corporation had 20-000 shares of $6 par valu.docx
On January 1- 2015- Alice Corporation had 20-000 shares of $6 par valu.docx
 
On January 1- 2014- Richards Inc- had cash and common stock of $62-150.docx
On January 1- 2014- Richards Inc- had cash and common stock of $62-150.docxOn January 1- 2014- Richards Inc- had cash and common stock of $62-150.docx
On January 1- 2014- Richards Inc- had cash and common stock of $62-150.docx
 
On January 1- 2014- Jay Company had 10-000 shares of $1 par common sto.docx
On January 1- 2014- Jay Company had 10-000 shares of $1 par common sto.docxOn January 1- 2014- Jay Company had 10-000 shares of $1 par common sto.docx
On January 1- 2014- Jay Company had 10-000 shares of $1 par common sto.docx
 
On January 1- 2011- Phoenix Co- acquired 100 percent of the outstandin.docx
On January 1- 2011- Phoenix Co- acquired 100 percent of the outstandin.docxOn January 1- 2011- Phoenix Co- acquired 100 percent of the outstandin.docx
On January 1- 2011- Phoenix Co- acquired 100 percent of the outstandin.docx
 
On a circular track with 24 -elds two players Blue and Yellow place th.docx
On a circular track with 24 -elds two players Blue and Yellow place th.docxOn a circular track with 24 -elds two players Blue and Yellow place th.docx
On a circular track with 24 -elds two players Blue and Yellow place th.docx
 

Kürzlich hochgeladen

Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxMaryGraceBautista27
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 

Kürzlich hochgeladen (20)

Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptx
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 

Need to write C code to program Ardunio to keep constant flow for belo.docx

  • 1. Need to write C code to program Ardunio to keep constant flow for below digram Solution int main() {int increment=2; int input_flow; float valve_angle; printf("enter the input flow"); scanf("%d",&input_flow) printf("Enter an angle in degrees: "); scanf("%f",&valve_angle); if(valve_angle==180) {cout<<"let the flow continue"; incrementer++; } else { cout<<" stop the flow here ,close valve"; increment--; }