SlideShare ist ein Scribd-Unternehmen logo
1 von 1
Downloaden Sie, um offline zu lesen
Computer System and Programming
Assignment # 1
Instructions:
1. This assignment is only for DE38-ME-Syndicate A.
2. The solution of the assignment should include the code and the output of the programme.
3. Assignment is to be submitted individually in the form of hard copy (printed form).
4. Copying from one another or the internet isn’t permitted. Both (or more) parties involved
in plagiarising will be awarded zero marks. Assignment in which the code has been copied
from the internet will also be awarded zero marks.
5. In case of any queries, feel free to contact me.
6. The submission deadline of the assignment is November 11th
, 2016 before 04:00 p.m.
Question 1:
Write a programme that takes an input from the user in the range of 1 to 500 and tells whether
the number is prime or not.
Question 2:
Take an alphabet as an input from the user and display the next alphabet. If the user enters a
special character, the programme should display that the character entered is a special
character.
Question 3:
Write a programme that displays the digits separately of a number entered by the user. For
example, if the user enters 19231, your programme should display 1 3 2 9 1.
Question 4:
Take the age of the user as an input in dd/mm/yyyy format and calculate the user’s age in days.
1 year has 365 days while a month, on average, has 30 days.
Question 5:
Write a programme that calculates the final bonus of an employee. The bonus is calculated by
multiplying the number of years that employee has worked for the company by 50 percent of
their monthly pay. If the user has worked for over 10 years, then for each year after the 10th
year, the employee gets 2500 added to the final bonus.
Question 6:
A light year is the distance travelled by a beam of light in a year. The speed of light is
299 792 458 m / s. Ask the user to enter the number of years and calculate the distance that the
light beam will travel in that time. Display the distance in kilometres and miles.

Weitere ähnliche Inhalte

Andere mochten auch

Handout # 3 functions c++
Handout # 3   functions c++Handout # 3   functions c++
Handout # 3 functions c++NUST Stuff
 
Function class in c++
Function class in c++Function class in c++
Function class in c++Kumar
 
Purpose of the Corporation
Purpose of the CorporationPurpose of the Corporation
Purpose of the CorporationPaige Morrow
 
IDCC 1316 Accord opca et financement
IDCC 1316 Accord opca et financementIDCC 1316 Accord opca et financement
IDCC 1316 Accord opca et financementSociété Tripalio
 
Composicio Digital _Practica Part 2
Composicio Digital _Practica Part 2Composicio Digital _Practica Part 2
Composicio Digital _Practica Part 2Marcos Baldovi
 
Drg 10 isometric
Drg 10 isometricDrg 10 isometric
Drg 10 isometricNUST Stuff
 
Locais a contactar em caso de emergência
Locais  a contactar em caso de emergênciaLocais  a contactar em caso de emergência
Locais a contactar em caso de emergênciaAlexandra Leal
 
Zayava yanukovich
Zayava yanukovichZayava yanukovich
Zayava yanukovichRBC-Ukraine
 
методические рекомендации для проведения классного часа, посвященного 85 тиле...
методические рекомендации для проведения классного часа, посвященного 85 тиле...методические рекомендации для проведения классного часа, посвященного 85 тиле...
методические рекомендации для проведения классного часа, посвященного 85 тиле...Андрей Мирошниченко
 
Nuestro periodico mural 02
Nuestro periodico mural 02Nuestro periodico mural 02
Nuestro periodico mural 02diodath
 
New zealand apartment highly prefabricated
New zealand apartment highly prefabricatedNew zealand apartment highly prefabricated
New zealand apartment highly prefabricatedleo tan
 
Lec 7 bio data cv and resume (1)abc
Lec 7 bio data cv and resume (1)abcLec 7 bio data cv and resume (1)abc
Lec 7 bio data cv and resume (1)abcNUST Stuff
 
Question 3 what have you learned from
Question 3   what have you learned fromQuestion 3   what have you learned from
Question 3 what have you learned fromJshepherd1460
 
ข้อดีและข้อเสียของเว็บ
ข้อดีและข้อเสียของเว็บข้อดีและข้อเสียของเว็บ
ข้อดีและข้อเสียของเว็บLion_PK
 
Short run aggregate_supply
Short run aggregate_supplyShort run aggregate_supply
Short run aggregate_supplymattbentley34
 

Andere mochten auch (17)

Handout # 3 functions c++
Handout # 3   functions c++Handout # 3   functions c++
Handout # 3 functions c++
 
Function class in c++
Function class in c++Function class in c++
Function class in c++
 
Purpose of the Corporation
Purpose of the CorporationPurpose of the Corporation
Purpose of the Corporation
 
IDCC 1316 Accord opca et financement
IDCC 1316 Accord opca et financementIDCC 1316 Accord opca et financement
IDCC 1316 Accord opca et financement
 
Composicio Digital _Practica Part 2
Composicio Digital _Practica Part 2Composicio Digital _Practica Part 2
Composicio Digital _Practica Part 2
 
Drg 10 isometric
Drg 10 isometricDrg 10 isometric
Drg 10 isometric
 
Locais a contactar em caso de emergência
Locais  a contactar em caso de emergênciaLocais  a contactar em caso de emergência
Locais a contactar em caso de emergência
 
Zayava yanukovich
Zayava yanukovichZayava yanukovich
Zayava yanukovich
 
VOL-2-No-10-10-2016
VOL-2-No-10-10-2016VOL-2-No-10-10-2016
VOL-2-No-10-10-2016
 
методические рекомендации для проведения классного часа, посвященного 85 тиле...
методические рекомендации для проведения классного часа, посвященного 85 тиле...методические рекомендации для проведения классного часа, посвященного 85 тиле...
методические рекомендации для проведения классного часа, посвященного 85 тиле...
 
Nuestro periodico mural 02
Nuestro periodico mural 02Nuestro periodico mural 02
Nuestro periodico mural 02
 
New zealand apartment highly prefabricated
New zealand apartment highly prefabricatedNew zealand apartment highly prefabricated
New zealand apartment highly prefabricated
 
Lec 7 bio data cv and resume (1)abc
Lec 7 bio data cv and resume (1)abcLec 7 bio data cv and resume (1)abc
Lec 7 bio data cv and resume (1)abc
 
Question 3 what have you learned from
Question 3   what have you learned fromQuestion 3   what have you learned from
Question 3 what have you learned from
 
Functions in C++
Functions in C++Functions in C++
Functions in C++
 
ข้อดีและข้อเสียของเว็บ
ข้อดีและข้อเสียของเว็บข้อดีและข้อเสียของเว็บ
ข้อดีและข้อเสียของเว็บ
 
Short run aggregate_supply
Short run aggregate_supplyShort run aggregate_supply
Short run aggregate_supply
 

Ähnlich wie Assignment # 1 c++ computer system and Programming EC-105

Assignment # 2 computer system and Programming EC-105
Assignment # 2   computer system and Programming EC-105 Assignment # 2   computer system and Programming EC-105
Assignment # 2 computer system and Programming EC-105 NUST Stuff
 
Cs141 term project
Cs141 term projectCs141 term project
Cs141 term projectFahadaio
 
Arts6_q1_mod3_concepts on the use of computer software_v2.pdf
Arts6_q1_mod3_concepts on the use of computer software_v2.pdfArts6_q1_mod3_concepts on the use of computer software_v2.pdf
Arts6_q1_mod3_concepts on the use of computer software_v2.pdfrochellelittaua
 
M150 A Fall2010 T01
M150 A Fall2010 T01M150 A Fall2010 T01
M150 A Fall2010 T01abdalodainat
 
Request for ProposalMGMT 393 Group Case ProjectA. INTRODUCTIO.docx
Request for ProposalMGMT 393  Group Case ProjectA.  INTRODUCTIO.docxRequest for ProposalMGMT 393  Group Case ProjectA.  INTRODUCTIO.docx
Request for ProposalMGMT 393 Group Case ProjectA. INTRODUCTIO.docxsodhi3
 
Assignment2 btkr1343 sem2_20122013
Assignment2 btkr1343 sem2_20122013Assignment2 btkr1343 sem2_20122013
Assignment2 btkr1343 sem2_20122013Sulaiman Sabikan
 
Learning area 5 programming
Learning area 5   programmingLearning area 5   programming
Learning area 5 programmingShuren Lew
 
Remote Data Acquisition from Android Mobile
Remote Data Acquisition from Android MobileRemote Data Acquisition from Android Mobile
Remote Data Acquisition from Android MobileIRJET Journal
 
IRJET- Online Programming Assessment and Evaluation Platform in Education System
IRJET- Online Programming Assessment and Evaluation Platform in Education SystemIRJET- Online Programming Assessment and Evaluation Platform in Education System
IRJET- Online Programming Assessment and Evaluation Platform in Education SystemIRJET Journal
 
Module programming
Module programmingModule programming
Module programmingKak Yong
 
Mis 589 Success Begins / snaptutorial.com
Mis 589  Success Begins / snaptutorial.comMis 589  Success Begins / snaptutorial.com
Mis 589 Success Begins / snaptutorial.comWilliamsTaylor44
 
Mis 589 Massive Success / snaptutorial.com
Mis 589 Massive Success / snaptutorial.comMis 589 Massive Success / snaptutorial.com
Mis 589 Massive Success / snaptutorial.comStephenson185
 
ENGL 313 Syllabus Spring 2021
ENGL 313 Syllabus Spring 2021ENGL 313 Syllabus Spring 2021
ENGL 313 Syllabus Spring 2021Christine Slater
 
Focused Question and Answer for Job Portal
Focused Question and Answer for Job PortalFocused Question and Answer for Job Portal
Focused Question and Answer for Job PortalIRJET Journal
 
CRICOS Provider No. 00103D ITECH1400 Foundations of Progra.docx
CRICOS Provider No. 00103D ITECH1400 Foundations of Progra.docxCRICOS Provider No. 00103D ITECH1400 Foundations of Progra.docx
CRICOS Provider No. 00103D ITECH1400 Foundations of Progra.docxfaithxdunce63732
 
Microsoft Student Partners
Microsoft Student PartnersMicrosoft Student Partners
Microsoft Student PartnersShuvrajyoti Roy
 
Software engineering srs library management assignment
Software engineering srs library management assignmentSoftware engineering srs library management assignment
Software engineering srs library management assignmentRajat Mittal
 

Ähnlich wie Assignment # 1 c++ computer system and Programming EC-105 (20)

Assignment # 2 computer system and Programming EC-105
Assignment # 2   computer system and Programming EC-105 Assignment # 2   computer system and Programming EC-105
Assignment # 2 computer system and Programming EC-105
 
Cs141 term project
Cs141 term projectCs141 term project
Cs141 term project
 
Arts6_q1_mod3_concepts on the use of computer software_v2.pdf
Arts6_q1_mod3_concepts on the use of computer software_v2.pdfArts6_q1_mod3_concepts on the use of computer software_v2.pdf
Arts6_q1_mod3_concepts on the use of computer software_v2.pdf
 
M150 A Fall2010 T01
M150 A Fall2010 T01M150 A Fall2010 T01
M150 A Fall2010 T01
 
Request for ProposalMGMT 393 Group Case ProjectA. INTRODUCTIO.docx
Request for ProposalMGMT 393  Group Case ProjectA.  INTRODUCTIO.docxRequest for ProposalMGMT 393  Group Case ProjectA.  INTRODUCTIO.docx
Request for ProposalMGMT 393 Group Case ProjectA. INTRODUCTIO.docx
 
Marketing plan
Marketing planMarketing plan
Marketing plan
 
Assignment2 btkr1343 sem2_20122013
Assignment2 btkr1343 sem2_20122013Assignment2 btkr1343 sem2_20122013
Assignment2 btkr1343 sem2_20122013
 
Learning area 5 programming
Learning area 5   programmingLearning area 5   programming
Learning area 5 programming
 
Remote Data Acquisition from Android Mobile
Remote Data Acquisition from Android MobileRemote Data Acquisition from Android Mobile
Remote Data Acquisition from Android Mobile
 
IRJET- Online Programming Assessment and Evaluation Platform in Education System
IRJET- Online Programming Assessment and Evaluation Platform in Education SystemIRJET- Online Programming Assessment and Evaluation Platform in Education System
IRJET- Online Programming Assessment and Evaluation Platform in Education System
 
Module programming
Module programmingModule programming
Module programming
 
La5 programming
La5   programmingLa5   programming
La5 programming
 
Mis 589 Success Begins / snaptutorial.com
Mis 589  Success Begins / snaptutorial.comMis 589  Success Begins / snaptutorial.com
Mis 589 Success Begins / snaptutorial.com
 
Mis 589 Massive Success / snaptutorial.com
Mis 589 Massive Success / snaptutorial.comMis 589 Massive Success / snaptutorial.com
Mis 589 Massive Success / snaptutorial.com
 
ENGL 313 Syllabus Spring 2021
ENGL 313 Syllabus Spring 2021ENGL 313 Syllabus Spring 2021
ENGL 313 Syllabus Spring 2021
 
MPP-UPNVJ
MPP-UPNVJMPP-UPNVJ
MPP-UPNVJ
 
Focused Question and Answer for Job Portal
Focused Question and Answer for Job PortalFocused Question and Answer for Job Portal
Focused Question and Answer for Job Portal
 
CRICOS Provider No. 00103D ITECH1400 Foundations of Progra.docx
CRICOS Provider No. 00103D ITECH1400 Foundations of Progra.docxCRICOS Provider No. 00103D ITECH1400 Foundations of Progra.docx
CRICOS Provider No. 00103D ITECH1400 Foundations of Progra.docx
 
Microsoft Student Partners
Microsoft Student PartnersMicrosoft Student Partners
Microsoft Student Partners
 
Software engineering srs library management assignment
Software engineering srs library management assignmentSoftware engineering srs library management assignment
Software engineering srs library management assignment
 

Mehr von NUST Stuff

Drag force on a sphere in yield stress fluid
Drag force on a sphere in yield stress fluidDrag force on a sphere in yield stress fluid
Drag force on a sphere in yield stress fluidNUST Stuff
 
Nums entry test 2017 paper
Nums entry test 2017 paperNums entry test 2017 paper
Nums entry test 2017 paperNUST Stuff
 
Nums entry-test-new-syllabus-mbbsc-bds
Nums entry-test-new-syllabus-mbbsc-bdsNums entry-test-new-syllabus-mbbsc-bds
Nums entry-test-new-syllabus-mbbsc-bdsNUST Stuff
 
MCAT Full length paper 8-student_copy_
MCAT Full length paper  8-student_copy_MCAT Full length paper  8-student_copy_
MCAT Full length paper 8-student_copy_NUST Stuff
 
MCAT Full length paper 7-student_copy_
MCAT Full length paper 7-student_copy_MCAT Full length paper 7-student_copy_
MCAT Full length paper 7-student_copy_NUST Stuff
 
MCAT Full length paper 6-student_copy_
MCAT Full length paper  6-student_copy_MCAT Full length paper  6-student_copy_
MCAT Full length paper 6-student_copy_NUST Stuff
 
MCAT Full length paper 5-student_copy_
MCAT Full length paper 5-student_copy_MCAT Full length paper 5-student_copy_
MCAT Full length paper 5-student_copy_NUST Stuff
 
Mcat (original paper 2014)
Mcat (original paper 2014)Mcat (original paper 2014)
Mcat (original paper 2014)NUST Stuff
 
MCAT Full length paper 4-student_copy
MCAT Full length paper  4-student_copyMCAT Full length paper  4-student_copy
MCAT Full length paper 4-student_copyNUST Stuff
 
mcat (original paper 2013)
mcat (original paper 2013)mcat (original paper 2013)
mcat (original paper 2013)NUST Stuff
 
mcat (original paper 2012)
mcat (original paper 2012)mcat (original paper 2012)
mcat (original paper 2012)NUST Stuff
 
MCAT Full length paper 3 final
MCAT Full length paper 3 finalMCAT Full length paper 3 final
MCAT Full length paper 3 finalNUST Stuff
 
MCAT (original paper 2011)
MCAT (original paper 2011)MCAT (original paper 2011)
MCAT (original paper 2011)NUST Stuff
 
mcat (original paper 2010)
 mcat (original paper 2010) mcat (original paper 2010)
mcat (original paper 2010)NUST Stuff
 
MCAT Full length paper 1 (student copy)
MCAT Full length paper 1 (student copy)MCAT Full length paper 1 (student copy)
MCAT Full length paper 1 (student copy)NUST Stuff
 

Mehr von NUST Stuff (20)

Me211 1
Me211 1Me211 1
Me211 1
 
Lab LCA 1 7
Lab LCA 1 7Lab LCA 1 7
Lab LCA 1 7
 
Me211 2
Me211 2Me211 2
Me211 2
 
Me211 4
Me211 4Me211 4
Me211 4
 
Me211 3
Me211 3Me211 3
Me211 3
 
Drag force on a sphere in yield stress fluid
Drag force on a sphere in yield stress fluidDrag force on a sphere in yield stress fluid
Drag force on a sphere in yield stress fluid
 
Nums entry test 2017 paper
Nums entry test 2017 paperNums entry test 2017 paper
Nums entry test 2017 paper
 
Nums entry-test-new-syllabus-mbbsc-bds
Nums entry-test-new-syllabus-mbbsc-bdsNums entry-test-new-syllabus-mbbsc-bds
Nums entry-test-new-syllabus-mbbsc-bds
 
MCAT Full length paper 8-student_copy_
MCAT Full length paper  8-student_copy_MCAT Full length paper  8-student_copy_
MCAT Full length paper 8-student_copy_
 
MCAT Full length paper 7-student_copy_
MCAT Full length paper 7-student_copy_MCAT Full length paper 7-student_copy_
MCAT Full length paper 7-student_copy_
 
MCAT Full length paper 6-student_copy_
MCAT Full length paper  6-student_copy_MCAT Full length paper  6-student_copy_
MCAT Full length paper 6-student_copy_
 
MCAT Full length paper 5-student_copy_
MCAT Full length paper 5-student_copy_MCAT Full length paper 5-student_copy_
MCAT Full length paper 5-student_copy_
 
Mcat (original paper 2014)
Mcat (original paper 2014)Mcat (original paper 2014)
Mcat (original paper 2014)
 
MCAT Full length paper 4-student_copy
MCAT Full length paper  4-student_copyMCAT Full length paper  4-student_copy
MCAT Full length paper 4-student_copy
 
mcat (original paper 2013)
mcat (original paper 2013)mcat (original paper 2013)
mcat (original paper 2013)
 
mcat (original paper 2012)
mcat (original paper 2012)mcat (original paper 2012)
mcat (original paper 2012)
 
MCAT Full length paper 3 final
MCAT Full length paper 3 finalMCAT Full length paper 3 final
MCAT Full length paper 3 final
 
MCAT (original paper 2011)
MCAT (original paper 2011)MCAT (original paper 2011)
MCAT (original paper 2011)
 
mcat (original paper 2010)
 mcat (original paper 2010) mcat (original paper 2010)
mcat (original paper 2010)
 
MCAT Full length paper 1 (student copy)
MCAT Full length paper 1 (student copy)MCAT Full length paper 1 (student copy)
MCAT Full length paper 1 (student copy)
 

Kürzlich hochgeladen

How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 

Kürzlich hochgeladen (20)

Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 

Assignment # 1 c++ computer system and Programming EC-105

  • 1. Computer System and Programming Assignment # 1 Instructions: 1. This assignment is only for DE38-ME-Syndicate A. 2. The solution of the assignment should include the code and the output of the programme. 3. Assignment is to be submitted individually in the form of hard copy (printed form). 4. Copying from one another or the internet isn’t permitted. Both (or more) parties involved in plagiarising will be awarded zero marks. Assignment in which the code has been copied from the internet will also be awarded zero marks. 5. In case of any queries, feel free to contact me. 6. The submission deadline of the assignment is November 11th , 2016 before 04:00 p.m. Question 1: Write a programme that takes an input from the user in the range of 1 to 500 and tells whether the number is prime or not. Question 2: Take an alphabet as an input from the user and display the next alphabet. If the user enters a special character, the programme should display that the character entered is a special character. Question 3: Write a programme that displays the digits separately of a number entered by the user. For example, if the user enters 19231, your programme should display 1 3 2 9 1. Question 4: Take the age of the user as an input in dd/mm/yyyy format and calculate the user’s age in days. 1 year has 365 days while a month, on average, has 30 days. Question 5: Write a programme that calculates the final bonus of an employee. The bonus is calculated by multiplying the number of years that employee has worked for the company by 50 percent of their monthly pay. If the user has worked for over 10 years, then for each year after the 10th year, the employee gets 2500 added to the final bonus. Question 6: A light year is the distance travelled by a beam of light in a year. The speed of light is 299 792 458 m / s. Ask the user to enter the number of years and calculate the distance that the light beam will travel in that time. Display the distance in kilometres and miles.