CSC1401 - Foundation Programming Assignment

Assignment Help Other Subject
Reference no: EM132551275

CSC1401 - Foundation Programming Assignment - University of Southern Queensland, Australia

Assignment Specification - Australian Coronavirus Confirmed Cases Calculator

Goals and Topics - The assignment problem is straightforward. All necessary details have been supplied. The solution of the problem will use the programming concepts and strategies covered in Workshops 1-7. The subgoals are:

Obtaining advanced understanding of values, variables and arrays;

Understanding program input and output, functions and expressions;

Understanding simple strategies like iteration, validation plans;

Translating simple design into Pseudocode then JavaScript code.

The mechanics of editing, interpreting, building, running and testing a program.

Commenting source code.

Becoming confident and comfortable with programming in small problems.

Background - According to Australian Government Department of Health, as at 6:00am on 25 March 2020, there have been 2,252 confirmed cases of COVID-19 in Australia. There have been 429 new cases since 6:00am yesterday. The number of confirmed cases on 25 March 2020 is as Table 1 on page 2.

Task - In this assignment, you will design and implement an Australian Coronavirus Confirmed Cases (ACCC) calculator program for client that allows users to input the state/territory name and the number of confirmed cases, then calculate the total number of confirmed cases and average number of confirmed cases accordingly.

Functional Requirements - The program should be implemented in JavaScript and running on Firefox, a web browser independent to operating systems. The client has specified the following requirements for the functionality of the program:

1. The program should be running without errors throughout two Phases: Information Gathering and Information Presenting.

2. Information Gathering is to gather the information such as state/territory name and the corresponding confirmed cases for calculation of ACCC;

3. The program should first confirm with the user for willingness of entering a new state/territory before proceeding to gather information of the state/territory name and confirmed cases for calculation.

4. When receiving a new entry for a state/territory, the program should first prompt and ask the user to enter the state/territory name. If the user enters nothing or an invalid state/territory name, the program should alert an error message on screen and then prompt the user to re-enter. The process should iterate until a valid state/territory name is entered.

5. If the entered state/territory name is valid, the program should then prompt the user to input the corresponding confirmed cases for the state/territory. Again, if nothing or an invalid value is entered, the program should display an error message then iterate until receive a valid number of confirmed cases.

6. After valid input of state/territory name and the confirmed cases, the program should loop back to seek user confirmation for either proceeding to add one more state/territory or moving to the Information Presenting phase to calculate and display the results;

7. If the user confirms no more state/territory to enter, the Information Gathering phase is completed and the program then moves to Information Presenting.

8. In the Information Presenting phase, the program prints on the web page a table containing all entered state/territory(s), including information such as state/territory name and the confirmed cases.

9. To make the ACCC calculator user-friendly, the client also expects the program to display some statistic information:

- The state/territory(s) with the largest number of confirmed cases;

- The total confirmed cases for the entered state/territory(s);

- The average number of confirmed cases for the entered state/territory(s).

Respectively, Figure 1 and 2 illustrate the dataflow in Information Gathering and a sample result presented to the web browser in Information Presenting.

Implementation -

Task 1 - A Validation Plan for state/territory name

You need to implement a validation plan to get a valid input from the user for state/territory name. A valid state/territory name needs to satisfy ALL the following criteria:

- The input should be one of the states/territories (New South Wales, Victoria, Queensland, South Australia, Western Australia, Tasmania, Northern Territory, Australian Capital Territory).

- The state/territory name should be case-insensitive.

Task 2 - A Validation Plan for the confirmed cases of entered state/territory

You need to implement another validation plan to get a valid input from the user for confirmed cases of entered state/territory. A valid input needs to satisfy the following criteria: it is a non-negative integer number.

Task 3 - An Iteration Plan for Information Gathering Phase

You need to design an iteration plan to implement the Information Gathering Phase. Refer to Functional Requirements and Fig. 1 for the detail of dataflow in iteration. Clearly, this task should incorporate the works in Task 1 and 2.

Task 4 - A Maximum Plan to find the state/territory with the largest number of confirmed cases

Your program needs to find the entered state/territory with the largest number of confirmed cases.

Task 5 - Sum, Count, Average Plans to calculate the number of confirmed cases

Your program needs to be able to calculate the average number of confirmed cases for all entered state/territory(s). The task includes:

- a sum plan to accumulate the confirmed cases of all the entered state/territory(s);

- a count plan to count the number of state/territory(s) being entered;

- an average plan to calculate the average number of confirmed cases of all the entered state/territory(s);

- handling the "Division by Zero" exception when calculating average.

Task 6 - Presenting the Detailed Information

Print to a table the detailed information of entered state/territory(s) including the state/territory name and the confirmed cases.

- The state/territory(s) should be presented with all upper case letters.

- They are listed in ascending order according to the confirmed cases of entered state/territory(s) even the state/territory with the smallest number of confirmed cases is not entered as the first input (challenge task).

Task 7 - Presenting the Statistics

Print to an unordered list the statistic information of

- the state/territory with the largest confirmed cases;

- the total confirmed cases of entered state/territory(s);

- the average confirmed cases of entered state/territory(s) and it is an integer value;

The state/territory name should be presented with all upper case letters. The table and the list should be formatted like the screenshot in Figure 2.

Note - All required information are in attached file.

Attachment:- Foundation Programming Assignment Files.rar

Reference no: EM132551275

Questions Cloud

What would you say has been the most beneficial : How do you feel this course has improved your knowledge in management consultancy and what would you say has been the most beneficial
Which journal entry correctly records this transaction : Partner Chris Vanguard makes a $25,000 withdrawal from the partnership. Which journal entry correctly records this transaction
MBA403 Financial & Economic Interpretation and Communication : MBA403 Financial & Economic Interpretation and Communication Assignment Help and Solution - Kaplan Business School, Australia - Assessment Writing Service
Construct the Probability-Impact Matrix : Identify at least six milestones for this project using SMART criteria. Construct the Probability/ Impact Matrix for those 5 potential risks
CSC1401 - Foundation Programming Assignment : CSC1401 - Foundation Programming Assignment Help and Solution - University of Southern Queensland, USQ, Australia - Assessment Writing Service
PAQM321 Project Quality and Management Assignment : PAQM321 Project Quality and Management Assignment Help and Solution - Kent Institute, Australia - Assessment Writing Service
IFSM - OSI and Digital Convergence : Select three layers of the OSI model. Describe what the layers do, any specific protocols that are utilized in that layer, and why those layers are important.
The benefits of virtualization software : Discuss the benefits of virtualization software, as described in the text. Do you agree/disagree with these benefits, or can you think of additional benefits
Security mechanisms associated with virtualization : Do some Internet research on security mechanisms associated with virtualization. Choose one of the following cloud services categories: SaaS, IaaS, PaaS.

Reviews

Write a Review

Other Subject Questions & Answers

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd