a. What are formal methods? Outline four reasons of using specification in software development.
(6 Marks)
b. By use of suitable symbols, explain the following inference rules: (6 Marks)
i. Modus pones
ii. And – elimination
c. Write the predicate for each of the following statements. (4 Marks)
– If Jane is a math major or Jane is a computer science major, then Jane will take math 100
– If it is raining, then I am carrying an umbrella.
d. Consider the following informal specifications:
The function sum should take as its argument a list of numbers. If the numbers are all positive, it should
return their sum. The function BinarySearch should take as its first argument a sorted list of integers (in
ascending order), and as its second argument a single interger; it should return true if the second
argument is found in the list. The student class contains a list of modules studied by the student (as
interger IDs). These are sorted in descending order. The method is studying should use the function
BinarySearch to find a particular ID in the list.
Find 3 errors in the above informal specification that could be caught by the use of formal methods.
What kind of error is each? (6 Marks)
2
e. Formalize the above circuit in propositional logic such that any satisfying interpretation represents a
feasible system state. (6 Marks)
f. What are hidden sorts used for in formal methods. (2 Marks)

 

 

 

 

For a custom-written paper on the above topic, place your order now!

What We Offer
• On-time delivery guarantee
• PhD-level professionals
• Automatic plagiarism check
• 100% money-back guarantee
• 100% Privacy and Confidentiality
• High Quality custom-written papers

Found something interesting ?

• On-time delivery guarantee
• PhD-level professional writers
• Free Plagiarism Report

• 100% money-back guarantee
• Absolute Privacy & Confidentiality
• High Quality custom-written papers

Related Model Questions

Feel free to peruse our college and university model questions. If any our our assignment tasks interests you, click to place your order. Every paper is written by our professional essay writers from scratch to avoid plagiarism. We guarantee highest quality of work besides delivering your paper on time.

The process of weather forecasting begins with the collection of as much data as possible about the current state of the atmosphere. Weather data (barometric pressure, humidity, temperature, and wind direction and speed) is collected from a variety of sources, including aircraft, automatic weather stations, weather balloons, buoys, radar, satellites, ships, and trained observers. Due to the variety of data types taken from multiple data sources, weather data is captured in a variety of data formats, primarily Binary Universal Form for the Representation of meteorological data (BUFR) and Institute of Electrical and Electronics Engineers (IEEE) binary. These observations are then converted to a standard format and placed into a gridded 3D model space called the Global Data Assimilation System (GDAS). Once this process is complete, the gridded GDAS output data can be used to start the Global Forecast System (GFS) model. For purposes of this exercise, imagine that the accuracy of the weather forecasts has been slipping. In your role as project manager at the National Center for Environmental Information (NCEI), you have been assigned to lead a project reviewing the processing of the initial data and placing it into the GDAS. Review Questions .1. NCEI is responsible for hosting and providing access to one of the most significant archives on Earth, with comprehensive oceanic, atmospheric, and geophysical data. Good database design would suggest that an enterprise data model exists for the NCEI. Why 2. Define the domain of acceptable values for barometric pressure, humidity, and temperature. Critical Thinking Questions 1. What issues could cause the raw weather data received to be incomplete or inaccurate? 2. How might incomplete or inaccurate data be identified and corrected or deleted from the forecasting process? Are there risks in such data cleansing?

Read More »

Grab your Discount!

25% Coupon Code: SAVE25
get 25% !!