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.


•    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.


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.


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

Please choose from following options:
1 – Set Resistance
2 – Change Voltage
3 – Change Current
4 – Exit
Please input new resistance value: 5
Resistance is now 5(Ohm).

Please choose from following options:
1 – Set Resistance
2 – Change Voltage
3 – Change Current
4 – Exit
Please input new voltage value: 20

Resistance is now 5(Ohm).
Voltage is now 20(V).
Current is now 4(A).

Please choose from following options:
1 – Set Resistance
2 – Change Voltage
3 – Change Current
4 – Exit
Please input new current value: 17

Resistance is now 5(Ohm).
Voltage is now 85(V).
Current is now 17(A).
Please choose from following options:
1 – Set Resistance
2 – Change Voltage
3 – Change Current
4 – Exit
Press any key to continue.

How to place an order?

Take a few steps to place an order on our site:

  • Fill out the form and state the deadline.
  • Calculate the price of your order and pay for it with your credit card.
  • When the order is placed, we select a suitable writer to complete it based on your requirements.
  • Stay in contact with the writer and discuss vital details of research.
  • Download a preview of the research paper. Satisfied with the outcome? Press “Approve.”

Feel secure when using our service

It's important for every customer to feel safe. Thus, at College Papers Help, we take care of your security.

Financial security You can safely pay for your order using secure payment systems.
Personal security Any personal information about our customers is private. No other person can get access to it.
Academic security To deliver no-plagiarism samples, we use a specially-designed software to check every finished paper.
Web security This website is protected from illegal breaks. We constantly update our privacy management.

Get assistance with placing your order. Clarify any questions about our services. Contact our support team. They are available 24\7.

Still thinking about where to hire experienced authors and how to boost your grades? Place your order on our website and get help with any paper you need. We’ll meet your expectations.

Order now Get a quote