cs608 assignment 1 solution 2021

0
134
cs608 assignment 1 solution 2021

cs608 assignment 1 solution 2021

 

Please carefully read the following instructions before attempting assignment.

INSTRUCTIONS

It should be clear that your assignment would not get any credit if:

The assignment is submitted after the due date.

Submitted assignment does not open or file is corrupt.

Strict action will be taken if submitted solution is copied from any other student or from the internet.

You should concern the recommended books to clarify your concepts as handouts are not sufficient.

You are supposed to submit your assignment in .doc or docx format.

Any other formats like scanned images, PDF, zip, rar, ppt and bmp etc. will not be accepted.

Topics Covered:

●        Importance and motivation for software testing

●        Control Flow Graph

CS608 Assignment 1 solution 2021  :

NOTE

No assignment will be accepted after the due date via email in any case (whether it is the case of load shedding or Internet issues etc.). Hence refrain from uploading assignment in the last hour of deadline. It is recommended to upload solution file well before its closing date.

If you find any confusion in the assignment (Question statement), please consult with your Instructor before the deadline. After the deadline no queries will be entertained in this regard.

For any query, feel free to email at CS608@vu.edu.pk

Question#1:                                                                                                           (10 Marks)

Give at least 5 examples of software systems where bugs have the potential to cost human lives?

                                                                                               

Question#2:                                                                                                           (10 Marks)

Draw Control Flow Graph (CFG) for the following piece of code.?

 

CS608 Assignment 1 solution 2021  :

 

Question#1:                                                                                                           (10 Marks)

Give at least 5 examples of software systems where bugs have the potential to cost human lives.

Solution:

1.      Radiation therapy

In the 1980s, five patients died after receiving a massive dose of X-rays, the result of a programming bug in a Therac-25 radiation therapy machine. The disaster is thought to have been caused by a glitch that made separate code threads try to do the same thing at the same time.

  1. Airbus software 

In May 2015, Airbus issued an alert for urgently checking its A400M aircraft when a report detected a software bug that had caused a fatal crash earlier in Spain. Prior to this alert, a test flight in Seville has caused the death of four air force crew members and two were left injured.

3.      Patriot Missile Software Failure

28 American soldiers were killed and 98 were injured when an Iraqi missile hit their barracks. The patriot missile system failed to track and intercept an incoming missile due bug in patriot’s radar and tracking software.

  1. Air India diverts Boeing 787 flight

During an emergency stunt in Feb 2014, Air India diverted Boeing 787 plane to Kuala Lumpur when the pilots noticed a software glitch while on a flight from Melbourne to New Delhi. The Engineers were flown down from Hong Kong to fix the glitch and worked with Air India to resolve the same. It has been reported that 787 has been suffering such glitches and Boeing was aware about it

  1. Leeds Pathology IT crash

In September 2016, Leeds Teaching Hospitals NHS Trust, one of Europe’s largest teaching trusts witnessed a pathology IT crash that resulted in a delay of operations for almost 132 patients. Leeds Teaching holds a budget of a £1 billion and employs over 16,000 staff. It serves 780,000 people in the city and provides expert care for 5.4 million patients. The outage further affected Bradford Teaching Hospitals NHS Foundation Trust, GP services in Leeds and a minor number of GP services in Bradford.

  1. Cyber Attack on Nuclear Power Plant

In October 2016, the head of an international nuclear energy consortium declared that disruption at a nuclear power plant during the last several years was caused due to a ‘Cyber Attack’. Yukiya Amano, head of the International Atomic Energy Agency (IAEA) didn’t drill the matter much in detail, but did alter on the potential attacks in the future.