Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

USING DEV C++ PLEASE HELP ME WITH THIS PROGRAM PLEASE INCLUDE THE SCREENSHOT OF YOUR PROGRAM AND MAIN OUTPUT THANKYOU! 1. Create a class named

image text in transcribed

image text in transcribed

USING DEV C++ PLEASE HELP ME WITH THIS PROGRAM PLEASE INCLUDE THE SCREENSHOT OF YOUR PROGRAM AND MAIN OUTPUT THANKYOU!

1. Create a class named Student. A Student has fields for an ID number, number of credit hours earned, and number of points earned. (For example, many schools compute grade point averages based on a scale of 4, so a three-credit-hour class in which a student earns an A is worth 12 points.) a. Create 5 objects under Student class. b. Include procedure to assign values to ID number, number of credit hours of each student. Also an input for the standard scale. c. Display Students ID and number of credit hours with the computed points earned. d. Compute for an average points earned of the student 2. Create a class CIRCUIT with the following public attributes: total resistance, total voltage and total current. Assign proper variable type and name for each attribute. a. Create a method setVoltage Source() of circuit class to set a constant value of voltage to 24 volts. b. Create a method getTotalCurrent() to compute and display total current. c. Create a function getTotalResistance() to display total Resistance. d. Create a constructor of circuit class for circuit that contains 3 resistors connected in either series or parallel connection. The constructor is used to compute for the total resistance of the circuit. e. Complete the main() function of the program: Create an object class circuit named 'circuitA' connected in series as shown below. R1 = 10 Vs R2 = 15 f. Create an object class circuit named 'circuitB' connected in parallel as shown below. Vs R1 = 10 R2 = 20 IR3 = 10 g. Compute and display the total resistance and total current of each circuit. h. Write the output of the program. 3. Develop a C++ program of the given UML Class diagram and program description below. Program Description: An application that would compute and display the total area which is the summation of all the areas of the three given shapes (Pentagon, Square, Triangle). The sides of the pentagon, square and triangle are all equal. Formulas for area: PENTAGON SQUARE TRIANGLE A = 1 V5(5+2V5 side? A = side 4 = + side PENTAGON +Area: double +compute Areal) SHAPE + sides: double SQUARE +Area: double tsetSide() +compute Area) TRIANGLE +Area: double +computeArea()

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Visual Basic 6 Databases

Authors: Charles Williams

1st Edition

1861002025, 978-1861002020

More Books

Students also viewed these Databases questions