0% found this document useful (0 votes)
910 views8 pages

Final Term Paper Mobile Application Development - Lab

This document provides instructions for a mobile application development exam assignment involving adding screens to an app that allow users to solve the Farmer, Wolf, Goat and Cabbage (FWGC) problem. The requirements include displaying the current and goal states, move count, move buttons, and messages. Behavior requirements specify handling legal and illegal moves, solving the problem, and resetting. An automated solving feature is also required, displaying solution statistics and stepping through the moves.

Uploaded by

Umair Aziz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
910 views8 pages

Final Term Paper Mobile Application Development - Lab

This document provides instructions for a mobile application development exam assignment involving adding screens to an app that allow users to solve the Farmer, Wolf, Goat and Cabbage (FWGC) problem. The requirements include displaying the current and goal states, move count, move buttons, and messages. Behavior requirements specify handling legal and illegal moves, solving the problem, and resetting. An automated solving feature is also required, displaying solution statistics and stepping through the moves.

Uploaded by

Umair Aziz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

FOUNDATION UNIVERSITY ISLAMABAD

RAWALPINDI CAMPUS
Final Term Examinations Lab (Spring-2020)

Programme: BCSE/BSCS Semester: 8th

Course Title: Mobile Application Development CSC 491L Section: BCSE A

Instructor Name: Muhammad Asif Max Marks: 35

Time to Solve and Submit to EXAM LMS: 5 Hours Date: 28 July, 2020

Note: Be brief and to the point. Attempt all the scenarios in the question. Please mention your
name, section and reg# on the solution file also.

Q No. 1: Marks 35

Your project will be inspected, tested, and run by the examiner.


Grading criteria:

1. (10 points) Successful implementation of the layout requirements for


the solver screens
2. (20 points) Successful implementation of the behaviour (Coding)
requirements for the problem
3. (5 points) Extra credit: Logic will be taken an account

Instructions:

In this assignment you will add screens to the app that allow the user to solve the Farmer,
Wolf, Goat and Cabbage (FWGC) problem

This will involve porting the non-GUI aspects of your Java Problem Solver project to your
Android Problem Solver project.

Project requirements are described next.

Requirements Suggestions Submission Android Lab Android Lecture

For this task, when the user clicks one of these buttons, a solver screen is presented.

See the menu for layout and behavior requirements.

Layout Requirements Behavior Requirements Extra Credit

When the user begins a problem, a screen is presented that includes:

Page 1 of 8
 Displays of the current and goal states
 The number of moves attempted so far
 Buttons for the moves
 An area for messages to be displayed
 A button to reset the problem
 A button to automatically solve the problem
 A button to show the next move in an automatically generated solution
 An area for automated solution statistics to be displayed

Behavior requirements with examples are shown through the menu at left.

 Illegal Moves
 Legal Moves
 Solved and Reset
 Automated Solving

If an attempted move is illegal, an error message is displayed.

In this FWGC example the user clicks TAKES WOLF in the start state.

Page 2 of 8
If the move is legal:

Page 3 of 8
The current state is updated and displayed

The number of moves attempted is incremented and displayed

Any "illegal move" messages are cleared

Below is the FWGC problem after several legal moves.

If the user solves the problem, a congratulatory message is displayed as shown below.

Page 4 of 8
If the user presses the Reset button:

 The initial state is displayed


 The move count is set to zero
 Any displayed messages are cleared

This reset behavior is possible any time during step-through of an automated solution. In
addition, any components disabled during a step-through are re-enabled.

Page 5 of 8
The Solve button is enabled any time the user is trying to solve the problem.

When Solve is pressed:

 A minimum-length solution is found from the current state


 Solution statistics are displayed, at minimum:
o Solution length
o Solution time in milliseconds
Page 6 of 8
o Number of queue operations during the solution
o Maximum queue size

More statistics can be displayed if your screen has space for them.

 The Solve button is disabled


 The Next button is enabled
 The move buttons are disabled
 The benchmark spinner is disabled

Here the user has clicked Solve in the start state of the FWGC problem.

Note that although the move buttons are not dithered out, they are indeed disabled. This
appears to be an Android glitch.

Page 7 of 8
Thank You

Page 8 of 8

You might also like