Tuesday 17 December 2013

C++ Calculate Total days in Year by Input only February days in current year or else year

#include<iostream.h>
#include<conio.h>

void main()
{
int months[11]={31,31,30,31,30,31,31,30,31,30,31};
int fab;
cout<<"How much Days in Fab this year = "; cin>>fab;
int i=0;
int *ptr;
while(i<=11)
{
 fab=fab+months[i];
 ptr=&fab;
 i++;
}
cout<<"total Days this Year Will be = "<<fab;
getch();
}

output :-

Friday 13 December 2013

C++ Assignment For Air University Student



CS-161 Computer Programming— Fall 2013

BEE                                                    Assignment # 03                                     5th Dec, 2013

                                                Submission Date: 12th Dec, 2013
_____________________________________________________________________________

Q#1   Write a program to keep record of employees personal and payroll information in structure. You should take information of employee name, address, id, served years, and for how many hours he works per day and hourly rate. Think yourself if it needs some nested structure or simple structure. You are required to calculate monthly salary of all 30 employees. Add 20% of salary increment if an employee has over 2 years of experience.

Instructions:

         Do not copy paste
         Submit in hard copy in start of lab
         Copied assignments will be marked Zero
         Total Marks 10
         Late assignment will not be considered