This is a short update on the Electronics Calculator to show a way how things will be implemented, in terms of provided formulas / helpers, splitted by typical passive components :

Edit:

2020-02-25:

- Added Menu for future selection of calculations

- Added calculation for current and power on resistive divider

- Updated the Subject text

2020-02-16 :

- Added description for submenus

Resistors:

---------------

> Ohm's Law

- Calculate the R, V or I, of the Ohms Law

- Represent formula in plot functions or ASCII

> Resistive Divider:

- Calculate Vout, Current, Power dissipation supplying R1, R2, Vin

- Choose R1 / R2 using list with know values ( eg: 220, 330 Ohms ), supplying Vin , Vout

- Supply schematic either with plot functions or ASCII mode

> Resistor Color Codes:

- 3/4 Ring mode + Tolerance

- Draw rings using rectangle, box plotting + color shading and / or provide ASCII textual

> Parallel Resistor:

- Input n resistor on loop until is done and calculate Req

> Series Resistor:

- Input n resistor on loop until is done and calculate Req

I'll post later on the Resistive divider code .. for now this is just a simple program done for the Resistive divider, as it is my second BASIC program writen on a cg50. Consider this as a short running... :

**Code:** ```
```

'ProgramMode:RUN

Menu "ResDivider","Vout?",1,"QUIT",4

Lbl 1

"VIN"?->A

If A=0

Then "BAD INPUT":Goto 4

Else Goto 2

IfEnd

Lbl 2

"INPUT V IS"

Locate 4,4,A

"R1"?->B

BDisps"R2"?->C

CDisps

If C<=0

Then "DIV ZERO":Goto 4

Else Goto 3

IfEnd

Lbl 3

A*(C/(C+B))->V

"VOUT(V)="

VDisps"CURRENT(A)="

V/(C+B)Disps"POWER(W)="

(V*V)/(C+B)DispsLbl 4

"END"

Stop

Each program will be related to a component and a Menu to reach its sections will be developed. About sections will describe how each one can be implemented.

The main idea is to automate electronics calculation during development and components requirement, avoiding repeating calculations.