Posts

Showing posts from December 6, 2015

Calculate average of 10 student using c++

Object: In this Post I am discuss how to write a c++ program to calculate average of 10 student and the basic understanding of while loop. Formula: total += marks; average=total/10; Source Program: In in program declare fore variable called i=1 , marks , total=0 , average enter the marks for each student and store the total marks as in variable and calculate the average for 10 student. #include "iostream" using namespace std; void main () {     int i=1 , marks , total=0 , average;     while ( i <= 10 )     {              cout<< "Enter Marks Of " <<i<< " Student = " ;              cin>>marks;              total += marks;           ...

Find the total number of seconds hours and minutes as input

Subject In this Post I am discuss how to write a c++ program that finds the total second in the given time, Time will be taken as hours, minutes and seconds. Find the total number of seconds. Source Program In in program declare five variable   Hour, Min, TimeinHour, Timeinsec, Totalsecond  as datatype is float and hours, minute as input from users and calculate the total number of seconds. # include "iostream" using namespace std; void main() {       float Hour, Min, TimeinHour, Timeinsec, Totalsecond;       cout<< "Hour is = " ;       cin>>Hour;       cout<< "The Total Time in Hour is = " ;       TimeinHour=Hour*3600;       cout<<TimeinHour<<endl;       cout<< "The min is = " ;       cin>>Min; ...

how to calculate the gross pay of an employee using C++

Subject I this post I am discuss how to calculate the gross pay of an employee take salary as input for the user and calculate gross pay using formula. Formula “Grosspay=Salary=Allowance-Deduction” This code is written to C++ initial declare four variable Salary , Allowance , Deduction , Grosspay and user enter the salary and calculate the gross pay. Source Program: #include "iostream" using namespace std; void main() {             float Salary , Allowance , Deduction , Grosspay;             cout<< "The Monthly Salary is = " ;             cin>>Salary;             cout<< "The Allowance is = " ;             Allowance=15*Salary/100;       ...

How to make a marks obtained by a student

Subject In this post I am discuss how to make a marks obtained by a student Five subjects are input through the users and find out the total marks and percentage obtained by the student print the total marks and percentage. Source Program: In this program declare nine variable called English, Physics, Math, Chemistry, Urdu, Marks_Obtained, Total_Marks, Percentage and users enter the total marks as input and enter the subject marks as individual and the program calculate the marks obtained. # include "iostream" using namespace std; void main () {     float   English, Physics, Math, Chemistry, Urdu, Marks_Obtained, Total_Marks, Percentage;     cout<< "The TotalMarks is = " ;     cin>>Total_Marks;     cout<< "Enter marks of English is = " ;     cin>>English;     cout<< "Enter marks of Physics is = " ;     cin>>Ph...

How to Create Labels in Blogger

1. Go to your Blogger account and sign in. 2. Click on the down arrow next to the blog you want to edit 3. Click on "settings" 4. Click on the "labels" tab 5. Enter the label you want in the "Name" field 6. Select a color for the label 7. Click "Save Settings" "How to Create Labels in Blogger" Most people are familiar with HTML and the various codes used to create websites. However, if you want to add labels to your website, you'll need to use a different code. Fortunately, it's not difficult to learn. With just a little bit of practice, you'll be able to add labels to your website in no time. There are two ways to add labels to your website. The first is by manually adding the code to your website. The second is by using a label maker. If you're not familiar with code, you may want to consider using a label maker. These programs will generate the code for you and allow you to simply copy and paste it into your websi...