Wednesday, November 24, 2021

Rain Drops Checker in C++

 Machine Problem in C++

A weather station validates the rain into its critical  level by its raindrops fell. Make program that will input number of raindrops fell, Check if raindrops  fell is equal to 10,000 then display "CRITICAL RAIN".   Your program will be terminated if you input zero in  the raindrops fell.  

 I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me at the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.




Program Listing


/*

Author : Prof. Jake Rodriguez Pomperada, MAED-IT, MIT

www.jakerpomperada.blogspot.com and www.jakerpomperada.com

jakerpomperada@gmail.com

Bacolod City, Negros Occidental Philippines.


Machine Problem in C++


A weather station validates the rain into its critical 

level by its raindrops fell. Make program that will 

input number of raindrops fell, Check if raindrops 

fell is equal to 10,000 then display "CRITICAL RAIN". 

Your program will be terminated if you input zero in 

the raindrops fell.   


*/


#include <iostream>



int main()

{

   int raindrops=0;

   

do {


std::cout << "\n\n";

std::cout << "\tRain Drops Checker in C++";

std::cout <<"\n\n";

std::cout <<"\tEnter number of raindrops fell: ";

std:: cin >>raindrops;

if (raindrops==0) {

break; 

}

if (raindrops <= 10000) {

std::cout <<"\n";

std::cout <<"\tCRITICAL RAIN";

} else {

std::cout <<"\n";

std::cout <<"\tNORMAL RAIN";

} while (raindrops!=0);

  std::cout << "\n\n";

std::cout << "\tEnd of Program";

std::cout <<"\n";

}

No comments:

Post a Comment