SlideShare a Scribd company logo
1 of 1
Download to read offline
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.

More Related Content

Viewers also liked

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
 

Viewers also liked (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
 

Similar to 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
 

Similar to 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
 

More from 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
 

More from 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)
 

Recently uploaded

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
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
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
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
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
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
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
 
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
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptxPoojaSen20
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 

Recently uploaded (20)

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
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
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
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
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
 
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
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
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
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptx
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 

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.