Cpp Code for Battery Charge

This cpp programming code is used to find the battery charge. You can select the whole cpp code by clicking the select option and can use it. When you click text, the code will be changed to text format. This cpp program code will be opened in a new pop up window once you click pop-up from the right corner. You can just copy, paste this cpp code and use it to find the battery charge.

#include<iostream>
using namespace std;
#include<math.h>
int main()
{
      float a,f=4,g=6,b,c,d,e;
      a=((f/g)*11)/10;
      b=((f/g)*12)/10 ;
      c=((f/g)*13)/10;
      d=((f/g)*14)/10;
      e=((f/g)*10)/10;
      cout<<"Maximum Time To Full Charge (10%)  = "<<a;
      cout<<"
Maximum Time To Full Charge (20%)  = "<<b;
      cout<<"
Maximum Time To Full Charge (30%)  = "<<c;
      cout<<"
Maximum Time To Full Charge (40%)  = "<<d;
      cout<<"
Maximum Time To Full Charge (No)  = "<<e;
      return(0);
}
Other Programming Codes
Online Calculator : Battery Charge
Click on the select code link to copy and paste this free cpp program code for battery charge.

english Calculators and Converters

Ask a Question


Sitemap