{"id":197,"date":"2022-05-10T20:41:35","date_gmt":"2022-05-10T19:41:35","guid":{"rendered":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phsn5computingscience\/?page_id=197"},"modified":"2024-11-28T14:51:50","modified_gmt":"2024-11-28T14:51:50","slug":"analysis","status":"publish","type":"page","link":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phsn5computingscience\/analysis\/","title":{"rendered":"Analysis"},"content":{"rendered":"<h2 style=\"color: red\">What is the Analysis<\/h2>\n<p><span data-contrast=\"none\">This is the very first stage of the process cycle. <\/span><span data-contrast=\"none\">Clarifying exactly what the client wants.<\/span>\u00a0<span data-contrast=\"none\">The analysis is the formal written report that outlines exactly what problem has to be solved.<\/span><\/p>\n<p><span data-contrast=\"none\">To begin with, a systems analyst will meet with the client to determine:<\/span><\/p>\n<ul>\n<li data-aria-posinset=\"1\" data-aria-level=\"2\"><span data-contrast=\"none\">the purpose of the software<\/span><\/li>\n<li data-aria-posinset=\"2\" data-aria-level=\"2\"><span data-contrast=\"none\">the functional requirements of the software<\/span><\/li>\n<\/ul>\n<p><span data-contrast=\"none\">The <strong>purpose<\/strong> of a piece of software is often expressed as a description of what the software will be used for.\u00a0<\/span><\/p>\n<p><span data-contrast=\"none\">The <strong>functional<\/strong> requirements will specify inputs, processes and outputs.<\/span><\/p>\n<h2 style=\"color: red\">Analysis Example<\/h2>\n<p><span data-contrast=\"none\">A farmer plans to hire out quad bikes and allow customers to ride them across a route on his land. Customers will pay \u00a340 for the experience. Concession tickets at \u00a327.50 are available for people under 18 years old and people over 60 years old. Tickets must be purchased as a group booking. The minimum number of people\u00a0 in a group is 2 and the maximum number of people in a group is 10. \u202f<\/span><\/p>\n<p><strong>Your task is to write a program that will enable the farmer to calculate the total cost of a single group booking.\u00a0<\/strong><\/p>\n<h3><b><span data-contrast=\"none\">Purpose<\/span><\/b><\/h3>\n<ul style=\"font-weight: 400\">\n<li data-aria-posinset=\"2\" data-aria-level=\"1\"><b><span data-contrast=\"none\">Give brief description of program<\/span><\/b><\/li>\n<li data-aria-posinset=\"3\" data-aria-level=\"1\"><span data-contrast=\"none\">Read over a few times then write a brief description.<\/span><\/li>\n<li data-aria-posinset=\"4\" data-aria-level=\"1\"><span data-contrast=\"none\">Who is the program for?<\/span><\/li>\n<li data-aria-posinset=\"5\" data-aria-level=\"1\"><span data-contrast=\"none\">What is the main purpose of the program?<\/span><\/li>\n<\/ul>\n<p><span data-contrast=\"none\">A farmer has decide to hire out quad bikes to groups of people to ride across his land. He would like a program developed to\u00a0<\/span><b><span data-contrast=\"none\">calculate the total cost of a single group booking<\/span><\/b><span data-contrast=\"none\">. The number of people in a group must be between 2 and 10 inclusive. The cost per person to purchase a ticket is \u00a340 per person, this is reduced to \u00a327.50 for anyone whose age is below 18 or over 60.\u00a0<\/span><\/p>\n<h3 style=\"color: red\"><b><span data-contrast=\"none\">Functional Requirements<\/span><\/b><\/h3>\n<p><b><span data-contrast=\"none\">Input<\/span><\/b><\/p>\n<ul>\n<li><b><span data-contrast=\"none\">Describe the data the program will ask the user to enter<\/span><\/b><\/li>\n<li data-aria-posinset=\"6\" data-aria-level=\"1\"><span data-contrast=\"none\">Read over and identify user input.<\/span><\/li>\n<\/ul>\n<p><span data-contrast=\"none\">The program will need:<\/span><\/p>\n<ul>\n<li data-aria-posinset=\"1\" data-aria-level=\"2\"><span data-contrast=\"none\">the name of the group (which is making the booking)<\/span><\/li>\n<li data-aria-posinset=\"2\" data-aria-level=\"2\"><span data-contrast=\"none\">the number of people in each group (between 2 and 10 inclusive)<\/span><\/li>\n<li data-aria-posinset=\"3\" data-aria-level=\"2\"><span data-contrast=\"none\">the age of each person in the group (loop for number of people in group)<\/span><\/li>\n<\/ul>\n<p><b><span data-contrast=\"none\">Process<\/span><\/b><\/p>\n<ul>\n<li><b><span data-contrast=\"none\">A description of the calculations and logic operations the program will carry out<\/span><\/b><\/li>\n<li><span data-contrast=\"none\">Is the program carrying out any calculations?\u00a0<\/span><\/li>\n<li><span data-contrast=\"none\">Will any input be validated?<\/span><\/li>\n<\/ul>\n<p><span data-contrast=\"none\">The processes the program will carry out are:<\/span><\/p>\n<ul>\n<li data-aria-posinset=\"9\" data-aria-level=\"1\"><span data-contrast=\"none\">Input validation &#8211; number of people (between 2 and 10 inclusive).\u00a0<\/span><\/li>\n<li data-aria-posinset=\"10\" data-aria-level=\"1\"><span data-contrast=\"none\">Calculate cost depending on age<\/span><\/li>\n<li data-aria-posinset=\"11\" data-aria-level=\"1\"><span data-contrast=\"none\">Running total within loop of the total cost<\/span><\/li>\n<\/ul>\n<p><b><span data-contrast=\"none\">Output<\/span><\/b><\/p>\n<ul>\n<li><b><span data-contrast=\"none\">A description of the data that the program will display to screen<\/span><\/b><\/li>\n<li data-aria-posinset=\"12\" data-aria-level=\"1\"><span data-contrast=\"none\">What will the program display on the screen?<\/span><\/li>\n<li data-aria-posinset=\"13\" data-aria-level=\"1\"><span data-contrast=\"none\">Does any output need to be formatted?<\/span><\/li>\n<\/ul>\n<p><span data-contrast=\"none\">The program will display the\u00a0<\/span><\/p>\n<ul>\n<li><span data-contrast=\"none\">heading \u2018Booking Details\u2019<\/span><\/li>\n<li><span data-contrast=\"none\">name of the group<\/span><\/li>\n<li><span data-contrast=\"none\">number of people in the group\u00a0<\/span><\/li>\n<li><span data-contrast=\"none\">total cost of the booking (formatted to 2 decimal places).\u00a0<\/span><\/li>\n<\/ul>\n<p><span data-contrast=\"none\">The task is unclear on the age range that the user can input. Further information regarding the range of acceptable ages would benefit the construction of program. For example all children must be over the age of 7 and adults must be under the age of 80.\u00a0<\/span><\/p>\n<p><b><span data-contrast=\"none\">Otherwise<\/span><\/b><span data-contrast=\"none\">\u00a0\u2013 state there is no further information required to complete the program.<\/span><\/p>\n<h2 style=\"color: red\">Completed Analysis<\/h2>\n<p><span data-contrast=\"none\">A farmer will hire out quad bikes to groups of people to ride across his land. The program developed will <\/span><b><span data-contrast=\"none\">calculate the total cost of a single group booking<\/span><\/b><span data-contrast=\"none\">. The number of people in a group must be between 2 and 10 inclusive. The cost per person to purchase a ticket is \u00a340 per person, this is reduced to \u00a327.50 for anyone whose age is below 18 or over 60.\u00a0<\/span><\/p>\n<p><b><span data-contrast=\"none\">Input &#8211;\u00a0<\/span><\/b><span data-contrast=\"none\">The name of the group making the booking, number of people in each group (between 2 and 10 inclusive) and the age of each person in the group.<\/span><\/p>\n<p><b><span data-contrast=\"none\">Processes &#8211;\u00a0<\/span><\/b><span data-contrast=\"none\">Input validation &#8211; number of people (between 2 and 10 inclusive), calculate cost depending on age and running total within loop of the total cost<\/span><\/p>\n<p><b><span data-contrast=\"none\">Output &#8211;\u00a0<\/span><\/b><span data-contrast=\"none\">The program will display the heading Booking Details, name of the group, number of people in the group and total cost of the booking (formatted to 2 decimal places).\u00a0<\/span><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is the Analysis This is the very first stage of the process cycle. Clarifying exactly what the client wants.\u00a0The analysis is the formal written report that outlines exactly what problem has to be solved. To begin with, a systems analyst will meet with the client to determine: the purpose of the software the functional [&hellip;]<\/p>\n","protected":false},"author":79984,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"page-templates\/full-width.php","meta":{"footnotes":""},"class_list":["post-197","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phsn5computingscience\/wp-json\/wp\/v2\/pages\/197","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phsn5computingscience\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phsn5computingscience\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phsn5computingscience\/wp-json\/wp\/v2\/users\/79984"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phsn5computingscience\/wp-json\/wp\/v2\/comments?post=197"}],"version-history":[{"count":9,"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phsn5computingscience\/wp-json\/wp\/v2\/pages\/197\/revisions"}],"predecessor-version":[{"id":607,"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phsn5computingscience\/wp-json\/wp\/v2\/pages\/197\/revisions\/607"}],"wp:attachment":[{"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phsn5computingscience\/wp-json\/wp\/v2\/media?parent=197"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}