# Computing IY1/Title of Coursework: A Simple Electric Circuit Programme

Computing     IY1/Title of Coursework:    A Simple Electric Circuit Programme
Weighting within the module    60% of total module mark
Word limit/presentation criteria    Project deliverables include texts, diagrams and codes
Learning Outcomes to be assessed
(from module spec.)
K1. Understand procedural and object-oriented programming approaches and be able to apply them in real-world problem-solving
K2. Apply and implement required operations of related procedural and object oriented languages such as C and C++
K3. Outline and define how to plan software using modelling techniques, test software using debug techniques and document software using comments
A1. Create a well-written and well documented computer programme from a detailed design specification
A2. Employ a recognised software development method to design and implement software which meets a specified requirement
A3. Communicate the results of their study accurately and reliably and with structured and coherent arguments
Coursework Details
Purchase and Sales Management System
You are asked to develop a simple program to calculate the voltage and current of a resistor using C++ programming language. In order to complete this coursework, you will need to use almost all knowledge we learned in this module, including flow chat diagram, pre-processor, I/O statements, operators, control statements (decision-making & loop), class, function, sequential files, in-code comments etc.
Resistor is the most basic component in an electric circuit. When a current is flowing through a resistor, the “resistance” it encounters is represented by the resistance value of the resistor.  And as current flows through a resistor, voltage will build up across the resistor. In electric circuit, current is represented by symbol I and it has a unit of ampere or A in brief.  Voltage is represented by symbol Vand it has a unit of volt or V in brief.  Resistance is represented by symbol R and it has a unit of ohm.
The relation between current, voltage and resistance is:
V = I * R
i.e. voltage is equal to the production of current and resistor.
Your first task is to model the resistor using class.The class must have at least threeprivate member variables representing the voltage, current and resistance values. The class should also have public member functions to access and change these variables. The class should also have functions to calculate, according to above equation, voltage and current of a resistor.
The second task is toallow the user to perform the following operations:
1)    Set resistance value
When a user selects this option (i.e. input 1), it will ask the user to input a new resistance value andthe program should use proper function to change the resistance value.
2)    Change voltage value
When a user selects this option (i.e. input 2), it will ask the user to input a new voltage across the resistor and the program should use proper function to calculate and output new current flowing through.
3)    Change current value
When a user selects this option (i.e. input 3), it will ask the user to input a new currentthrough the resistor and the program should use proper function to calculate and output new voltage across the resistor.
4)    Exit
When a user selects this option (i.e. input 4), it indicates that s/he would like to exit the system.
NOTE:
•    The system should continue to display the four options (i.e. main menu) after completing an operation, until the user selects ‘Exit’ option.
•    Creativity is encouraged and it would give you extra mark! For example, the resistor class could inherit from a base “electric component” class, which represents a generic electric component.  This base class has only the most basic electric properties as its member variable, such as voltage and currentand related functions.
•    Sample output of the program is attached at the end of this document.
Submission
You need to submit both printed copy (to Rosy in Admin Office) and electronic copy of your project (via the assignment submission area in Unilearn).
For electronic copy, you should submit your work in .doc or.pdf format. Please name this using the convention YourInitial_YourSurname_Cpp_Coursework.doc (or .pdf) (so that if your name is Steve Jobs you would name it as S_Jobs_Cpp_Coursework). If your work cannot be submitted as a single document then you should submit a single zip file containing all your documents, as Unilearn will only allow a single submission for each student. Please make sure that you check your work carefully following submission.
Your solution must be original. Please make sure that you are familiar with the regulations regarding plagiarism and late submissions procedure.
MarkingCriteria
Thereare3criteriaforthisassignment.Weight of each session is indicated on the right-hand side.
•    Planning:Thisincludesanydiagramsordocumentsthatyouhaveproducestoplanandunderstandyoursystem.Youmayhaveemployedflow chart diagrams for each activity/function of your system,producedastoryboardofthesequenceofactivitiesorsomethinglessformal.In order to produce a solution to this problem you are strongly encouraged to apply techniques of analysis in order to break the problem down into manageable and solvable elements.    [30%]
•    Functionality:Thiscriterionfocusesontheextenttowhichyourprojectachieveswhatitisrequiredtodo,andthewaybywhichitgoesaboutdoingit. Class must be used to model the resistor andall the four basic functions which aredescribedinthebriefmust be included as functions.  You are likely to receive extra marks if you illustrate your creativity and extendthe systemcapabilitiesdefinedbytheproject brief.                            [40%]
•    Documentation: This criterion considers the degree to which your assignment gives the impression of a coherent, thoughtful, thorough and sustainable project. Consistency throughout the project in terms of your visual approach, your use of terms and the linkage between the statement of goals in your planning and their final realisation. This alsoincludesin-codecommenting and useofaconsistentandreadablecodingstyle.                                [30%]
Sample Program Output
1 – Set Resistance
2 – Change Voltage
3 – Change Current
4 – Exit
1
Please input new resistance value: 5
Resistance is now 5(Ohm).
1 – Set Resistance
2 – Change Voltage
3 – Change Current
4 – Exit
2
Please input new voltage value: 20
************************************
Resistance is now 5(Ohm).
Voltage is now 20(V).
Current is now 4(A).
************************************
1 – Set Resistance
2 – Change Voltage
3 – Change Current
4 – Exit
3
Please input new current value: 17
************************************
Resistance is now 5(Ohm).
Voltage is now 85(V).
Current is now 17(A).
************************************
1 – Set Resistance
2 – Change Voltage
3 – Change Current
4 – Exit
4
Press any key to continue.

# Our Service Charter

1. ### Excellent Quality / 100% Plagiarism-Free

We employ a number of measures to ensure top quality essays. The papers go through a system of quality control prior to delivery. We run plagiarism checks on each paper to ensure that they will be 100% plagiarism-free. So, only clean copies hit customers’ emails. We also never resell the papers completed by our writers. So, once it is checked using a plagiarism checker, the paper will be unique. Speaking of the academic writing standards, we will stick to the assignment brief given by the customer and assign the perfect writer. By saying “the perfect writer” we mean the one having an academic degree in the customer’s study field and positive feedback from other customers.
2. ### Free Revisions

We keep the quality bar of all papers high. But in case you need some extra brilliance to the paper, here’s what to do. First of all, you can choose a top writer. It means that we will assign an expert with a degree in your subject. And secondly, you can rely on our editing services. Our editors will revise your papers, checking whether or not they comply with high standards of academic writing. In addition, editing entails adjusting content if it’s off the topic, adding more sources, refining the language style, and making sure the referencing style is followed.
3. ### Confidentiality / 100% No Disclosure

We make sure that clients’ personal data remains confidential and is not exploited for any purposes beyond those related to our services. We only ask you to provide us with the information that is required to produce the paper according to your writing needs. Please note that the payment info is protected as well. Feel free to refer to the support team for more information about our payment methods. The fact that you used our service is kept secret due to the advanced security standards. So, you can be sure that no one will find out that you got a paper from our writing service.
4. ### Money Back Guarantee

If the writer doesn’t address all the questions on your assignment brief or the delivered paper appears to be off the topic, you can ask for a refund. Or, if it is applicable, you can opt in for free revision within 14-30 days, depending on your paper’s length. The revision or refund request should be sent within 14 days after delivery. The customer gets 100% money-back in case they haven't downloaded the paper. All approved refunds will be returned to the customer’s credit card or Bonus Balance in a form of store credit. Take a note that we will send an extra compensation if the customers goes with a store credit.

We have a support team working 24/7 ready to give your issue concerning the order their immediate attention. If you have any questions about the ordering process, communication with the writer, payment options, feel free to join live chat. Be sure to get a fast response. They can also give you the exact price quote, taking into account the timing, desired academic level of the paper, and the number of pages.

Excellent Quality
Zero Plagiarism
Expert Writers

or

Instant Quote