Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
318 views
Lecture 5 Single File Programming Questions
Uploaded by
syash9457
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save Lecture 5 Single File Programming Questions For Later
Download
Save
Save Lecture 5 Single File Programming Questions For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
318 views
Lecture 5 Single File Programming Questions
Uploaded by
syash9457
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save Lecture 5 Single File Programming Questions For Later
Carousel Previous
Carousel Next
Save
Save Lecture 5 Single File Programming Questions For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 12
Search
Fullscreen
oven © ‘Single Fle Programming Question ‘ovine magne youre devaepinga payrel management sytem for acorgon hanes oop tockal amplyee sary lamatin fepertf tha ysem yous toead wah cestngacxe ana eployen to epresrt each eployessla,. te clos shod have te folowng spctetons | prt tate data mare named cout eps Hackl ha tel number ployee tect este shou ned d ‘pub tae rebar uncon named gato that lows he company ftv he ttl cour eploes cies | put member incon raed ete nes thai ery’ parce crt ecrerpansng can membarforanameoyee bc. icin lloe he company oat ‘nasa or on empoyes ‘pune mera uncon nada ries cnieturathe oie "ary for anempsyes ect Th incon als th comgany te eee on employes sl fr varus ‘pris Sta mame nods sore ne eg saun clon employers sony Ts ta member spect to sch empayes obec ose ont ven spcicson your tats to implemen te Employes coss ht met the eaten enna above This close hp he company manoge eros slay slematonalicary thn te poyl managementeatrsNote: This is a sample question asked in an HCL interview. Input format : The first line of the input consists of an integer denoting the number of employees (n). The next n lines consist of the salaries of n employees stored as integers. Output format : The output displays the total number of employees, followed by their salary on each line. Refer to the sample output for formatting specifications.‘Sample test cases : Input: output: 3 ‘Total number oF employees: 3 200 Solary for enployee 1: 100 200 salary for employee 2: 200 200 Salary for exployes 3: 200 Woitetiae «) CD CD xaCea Ct) #include
Penge ee ete ee storie peers eters Sirarey Cars public: erate rare home| reas) 3 void setsalary(int s) { Pesan ernie rr Tira ie STONE t Peart o esCee cy oe Pat tet ae ra OOS pos Stee ooo aH Ce ea aC Pec SU erit TS Oa cee Serie ie 3 CeCe Ce Soret cea cae) CL ae ee eae et cout << “Salary for employee } pects Sea Ore ERE oe eT cerssconmacedsonngcoim: UGE) (NE) (GR) panes! ‘on comect | antotind 19h | ntuted © Tinescompled 1 | Tnesauimiied 1 | lel Ward | Gueianhge geriePegemming Siti ve ‘opie Clomeandenhels SubTene Chaeeondehiec —tosrstenny sey oat aa recat Paesed Compr Messo9eSalary for eapoyee 10100 Solary for erpoye a 200 Slory for saployee 6: 0 cones ouoe Salary far empoyee 3: 300 Solar far erpoyee 3 200 met) ‘ime complosty space Complenhytne ue corpse2 ° eect “ : = corplatonnccute pet Sony Yor employe 1 10 ‘Siar fon eater 2 508 Stary for enloyee 3: 08 Slory for cnloye 4 90 Sy for clos: 0 ‘Slay for caployes 6 Slur for cmloje 7 30 Sin for clos 6 50 neti esl aber of emoyees: 8 Sin Yer eaployee 1 to SsLy for satay 3: So Slory for culoyer 3 60 SLi for cuployes 4 9 Sy for saptoyn 8 a Siar for eto 6 10 Ser for suloye 7 20, SELLY for Saptoyn 0 Dnent oe Salers for erployee 25 56 Sity fee Sloe Se Slary foreplay 6: Salery for erploye 6 cues out tol ater of employees 10 ‘Slary tor sapoyen 12 1528 ‘any for splojes 3: 3356 Sslery for erployee 31 856 Slory for enloyes es 15Solution 1 ttrees Cree Perag ros cei rm one etre static int count; SUT ICL Pry ete) estar ico Os Roce sy i iret Ca eLiars Erna i rarer One return salary; iy es ortO ne eras Sires SRTSolution 1 eran Cora oc cret sc aeeers int main() { fay) teem Employee “emp — new Employee[n]; for (int i = 0; i
You might also like
TCS PRA-IRA-CPA Questions
PDF
No ratings yet
TCS PRA-IRA-CPA Questions
24 pages
A Term Paper of Cse101 (Foundation of Computing) On: Topic: "Pay Calculation of Employee"
PDF
No ratings yet
A Term Paper of Cse101 (Foundation of Computing) On: Topic: "Pay Calculation of Employee"
10 pages
Home Work - 1 Programming Oops CAP-320
PDF
No ratings yet
Home Work - 1 Programming Oops CAP-320
16 pages
priyanshu,rishi, manraj
PDF
No ratings yet
priyanshu,rishi, manraj
8 pages
AnshYadavCP
PDF
No ratings yet
AnshYadavCP
25 pages
Lab Activity 2
PDF
No ratings yet
Lab Activity 2
13 pages
Artificial Intelligence Lab1
PDF
No ratings yet
Artificial Intelligence Lab1
7 pages
Group Work Assignment
PDF
No ratings yet
Group Work Assignment
2 pages
Sallary Management System
PDF
No ratings yet
Sallary Management System
22 pages
Lab Activity 3B PDF
PDF
100% (1)
Lab Activity 3B PDF
10 pages
Sheet2 Solved
PDF
No ratings yet
Sheet2 Solved
14 pages
Huzaifa ..OOP ASSIGNMENT 6
PDF
No ratings yet
Huzaifa ..OOP ASSIGNMENT 6
12 pages
CS304 ASSIGNMENT#2 SOLUTION BY VU SPARKY ⚡ V(2.4)
PDF
No ratings yet
CS304 ASSIGNMENT#2 SOLUTION BY VU SPARKY ⚡ V(2.4)
6 pages
Java Practical Assignment
PDF
No ratings yet
Java Practical Assignment
45 pages
COL 100 Assignment 5
PDF
No ratings yet
COL 100 Assignment 5
6 pages
C ++ Yukt
PDF
No ratings yet
C ++ Yukt
7 pages
Home Task 09
PDF
No ratings yet
Home Task 09
8 pages
DCIT 22 2020 Practice
PDF
No ratings yet
DCIT 22 2020 Practice
4 pages
java
PDF
No ratings yet
java
5 pages
Simple C++ Programs to Implement Various Control Structures.
PDF
No ratings yet
Simple C++ Programs to Implement Various Control Structures.
11 pages
Department of Electrical Engineering CS:152L Object Oriented Programming
PDF
No ratings yet
Department of Electrical Engineering CS:152L Object Oriented Programming
7 pages
Assignment 4 Fop
PDF
No ratings yet
Assignment 4 Fop
5 pages
Assignment-PF-NO - 2 - Naeem - 44250
PDF
No ratings yet
Assignment-PF-NO - 2 - Naeem - 44250
3 pages
Vetri 1
PDF
No ratings yet
Vetri 1
30 pages
C++ by Dev
PDF
No ratings yet
C++ by Dev
21 pages
c++ record
PDF
No ratings yet
c++ record
38 pages
Group Members
PDF
No ratings yet
Group Members
6 pages
C
PDF
No ratings yet
C
5 pages
That's great! To build a C++ projec
PDF
No ratings yet
That's great! To build a C++ projec
5 pages
Department of Electrical Engineering CS:152L Object Oriented Programming
PDF
No ratings yet
Department of Electrical Engineering CS:152L Object Oriented Programming
6 pages
C++ LAB RECORD
PDF
No ratings yet
C++ LAB RECORD
81 pages
CS304 Assignment 2 Solution Fall 2024-1
PDF
No ratings yet
CS304 Assignment 2 Solution Fall 2024-1
6 pages
Program 1: - Practical File 1
PDF
No ratings yet
Program 1: - Practical File 1
94 pages
call A Function That Returns The Largest Sum of Contiguous Integers in The Array
PDF
No ratings yet
call A Function That Returns The Largest Sum of Contiguous Integers in The Array
51 pages
Payroll Management System - Final
PDF
No ratings yet
Payroll Management System - Final
38 pages
CPP SLIP
PDF
No ratings yet
CPP SLIP
74 pages
Esaimen 3 & Esaimen 4 Nani
PDF
No ratings yet
Esaimen 3 & Esaimen 4 Nani
8 pages
ppr
PDF
No ratings yet
ppr
5 pages
C++ Practice Codes
PDF
No ratings yet
C++ Practice Codes
7 pages
OOP Microproject
PDF
No ratings yet
OOP Microproject
9 pages
ANURAG CPP Lab Manual A1to10
PDF
No ratings yet
ANURAG CPP Lab Manual A1to10
63 pages
Practical 03 Answers
PDF
No ratings yet
Practical 03 Answers
8 pages
C Program 1 Sem
PDF
No ratings yet
C Program 1 Sem
83 pages
Assignment 4
PDF
No ratings yet
Assignment 4
5 pages
CS Project File
PDF
No ratings yet
CS Project File
19 pages
Cs304 Assignment 2 Solution Fall 2024 by VuCopier
PDF
No ratings yet
Cs304 Assignment 2 Solution Fall 2024 by VuCopier
6 pages
CT2_2018_autumn_soln
PDF
No ratings yet
CT2_2018_autumn_soln
4 pages
1 ASSIGNMENT
PDF
No ratings yet
1 ASSIGNMENT
3 pages
12th CS - 1 Practical
PDF
No ratings yet
12th CS - 1 Practical
50 pages
C++ Final
PDF
No ratings yet
C++ Final
45 pages
Structured Programming: Dr. Ahmed Sherif Zekri
PDF
No ratings yet
Structured Programming: Dr. Ahmed Sherif Zekri
25 pages
Oops Final
PDF
No ratings yet
Oops Final
44 pages
Oop Assignment
PDF
No ratings yet
Oop Assignment
1 page
FPL Prac Mannual
PDF
No ratings yet
FPL Prac Mannual
35 pages
CPP Notes - 01
PDF
No ratings yet
CPP Notes - 01
30 pages
1
PDF
No ratings yet
1
33 pages
Synopsis: Topic: "Pay Calculation of Employee"
PDF
No ratings yet
Synopsis: Topic: "Pay Calculation of Employee"
3 pages
Lecture 8 Coding Questions
PDF
No ratings yet
Lecture 8 Coding Questions
22 pages
Lecture 5 Coding Questions
PDF
No ratings yet
Lecture 5 Coding Questions
43 pages
Lecture 8 Single File Programming Questions
PDF
No ratings yet
Lecture 8 Single File Programming Questions
8 pages
Lecture 4 Single File Programming Question
PDF
No ratings yet
Lecture 4 Single File Programming Question
21 pages