Fill This Form To Receive Instant Help

Help in Homework
trustpilot ratings
google ratings


Homework answers / question archive / M21387 Introduction to Algorithms and Programming Problem 1: Banking application You will create an application that represents the limited functionalities of a banking system

M21387 Introduction to Algorithms and Programming Problem 1: Banking application You will create an application that represents the limited functionalities of a banking system

Computer Science

M21387 Introduction to Algorithms and Programming

Problem 1: Banking application
You will create an application that represents the limited functionalities of a banking system. Write a program that allows a customer to secure login to the bank account. Your program should also allow customers to deposit or withdraw money from a bank account, and if a user elects to withdraw funds, ensure that sufficient funds exist. Assume that the customer's account already contains a balance of 300. Your program MUST perform precisely as detailed. The functionality of the program must perform the following: ? Provide a secure login process whereby users must verify their identity with a User ID and PIN to access their information and accounts. ? If the identity does not match, provide the user a further 2 attempts. ? Your program should allow the user to deposit money ? Your program should allow the user to withdraw money ? Your program should have the intelligence to decide whether to allow the user to withdraw cash or not, depending on the user's balance. ? You should display informative messages where appropriate.
Marking Scheme:
1. Pseudocode: 5 Marks
Pseudocode is frequently used by programmers to aid in developing algorithms. It is primarily a marriage between human-like language and actual programming language. Because of its likeness to programming syntax, it has always been more popular among programmers. Following this, provide complete pseudocode of the solution must be written at the top of the program source code and must be enclosed with source code comments delimiters.
5 Marks
2. Source Code: 35 Marks
Source code is the fundamental component of a computer program that a programmer creates. In computing, source code is any collection of code, with or without comments, written using a human-readable programming language, usually as plain text. The source code of a program is specially designed to facilitate the work of computer programmers, who specify the actions to be performed by a computer mostly by writing source code. Following this, provide complete source code of the solution must be written in C programming language using CodeBlocks. Your code must be ready to compile, so please test it before submission.
1) Secure Login 5 Marks
2) Allowing user maximum three attempts to login 5 Marks
3) Allowing Deposit and withdrawn money 5 Marks
4) Displaying correct balance following Deposit and withdraw 5 Marks
5) Informative message to the user 5 Marks
6) Efficient use of C programming knowledge 10 Marks
3
Problem 2: Electricity Bill Application
You will create an application that will help users calculate their electricity bill following the energy consumed. Write a program that allows a user to insert monthly energy consumption. Following this, your program should be able to calculate the electricity bill from a menu system. You should consider the information provided in Table 1 and equation 1. Your program should allow users:
? To choose the user's location from urban or rural options in the menu. ? To insert their name, house number, email address, phone number, meter number, and the energy (units) consumed per month. ? To calculate the monthly electric bill following the energy consumption. ? To display their electric bill, which should include all the relevant information of the users. ? To save the electric bill as a .txt file.
Your program MUST perform precisely as detailed. The functionality of the program must complete the following:
1) Provide a menu system to the user for choosing their location. 2) Allow users to calculate energy bills if they live in urban areas. 3) Allow users to calculate electric bills if they live in rural areas. 4) Allow user to display their electric bill with all the relevant information 5) Allow user to save their electric bill as a .txt file 6) Your application should display informative messages to the users (where appropriate)
Unit Consumed (KW)
Rural area (Unit Price)
Urban area (Unit Price)
Between 0 to 20
2.5 pound
3.0 pound
Between 21 to 100
2.75 pound
3.25 pound
Between 101 to above
3.15 pound
3.50 pound
Table 1: Per unit price of rural and urban areas based on different unit consumption.
[?????=???? ?????∗ ?????? ????????]…………………………………………………………(1)
Marking Scheme:
1. Pseudocode: 5 Marks
Pseudocode is frequently used by programmers to aid in developing algorithms. It is primarily a marriage between human-like language and actual programming language. Because of its likeness to programming syntax, it has always been more popular among programmers. Following this, provide complete pseudocode of the solution must be written at the top of the program source code and must be enclosed with source code comments delimiters.
5 Marks
4
2. Source Code: 35 Marks
Source code is the fundamental component of a computer program that a programmer creates. In computing, source code is any collection of code, with or without comments, written using a human-readable programming language, usually as plain text. The source code of a program is specially designed to facilitate the work of computer programmers, who specify the actions to be performed by a computer mostly by writing source code. Following this, provide complete source code of the solution must be written in C programming language using CodeBlocks. Your code must be ready to compile, so please test it before submission.
1) Menu System 4 Marks
2) Calculate electric bills for urban areas. 4 Marks
3) Calculate electric bills for rural areas. 4 Marks
4) Display electric bill with all the relevant information 4 Marks
5) Save electric bill as .txt file 5 Marks
6) Informative message to the user 4 Marks
7) Efficient use of C programming knowledge 10 Marks
Deliverables:
Your final deliverable will be two submissions. Each submission should be in a text document (e.g. .txt, .doc, .docx)
1. Report: A brief report containing the following 20 Marks
? Description of the problem 1 and 2
? Unit and system/application tests using snapshots of displays from the console output
? Any references used 2. Source Code and Pseudocode: Copy of the source code that will be assessed through a code review process. 80 Marks
Finally:
? The program may be able to be written in different IDEs but must be compliable with CodeBlocks.
? The code must be written in C and not any other language such as C++
? Please upload your pseudocode and source code in one single .txt document to the Moodle submission link by the deadline.
? Please upload your report in one word document to the Moodle submission link by the deadline.

Option 1

Low Cost Option
Download this past answer in few clicks

26.99 USD

PURCHASE SOLUTION

Already member?


Option 2

Custom new solution created by our subject matter experts

GET A QUOTE