Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

This C++ program should be typed in CLR Console Application in visual studio. Th

ID: 3684967 • Letter: T

Question

This C++ program should be typed in CLR Console Application in visual studio.

This program should allow the user to choose either configuration 1 , 2 or 3.

Configuration 1 include Resistors 1- 6 and

configuration 2 include resistor 1-8

configuration 3 include resistor 1- 10.This program should runs in a loop and continuously present the user with the option to start over or exit

User may input the resistor values and voltage. once user input these values , Need to find the current , voltage ,power and resistance at R1 and R2, R3 and R4 , R5 and R6. Once found these values, need to add them up and display as confuguration 1 ( total current , total voltage total resistance and total power).

as concept aspplies to configuration 2

Configuration 1 Configuration 2 Configuration R1 R2 R3 --

Explanation / Answer

Typically, a console app is compiled into a stand-alone executable file but doesn't have a graphical user interface. A user runs the console app at a command prompt and uses the command prompt to issue instructions to the running app. Also at the command prompt, the app provides output information. The immediacy of a console app makes it a great way to learn programming techniques without concern for implementing a user interface.

When you use the Console Application template to create a project, it automatically adds these references and files:

    References to these .NET Framework namespaces:

        System—Contains fundamental classes and base classes that define commonly used values and reference data types, events and event handlers, interfaces, attributes, and processing exceptions.

        mscorlib—The assembly DLL that supports .NET Framework development.

    Source files:

        Console (.cpp file)—The main source file and entry point into the app that you just created. It identifies the project .dll file and the project namespace. Provide your own code in this file.

        AssemblyInfo.cpp—Contains attributes, files, resources, types, versioning information, signing information, and so on that you can use to modify the project's assembly metadata. For more information, see Assembly Contents.

        Stdafx.cpp—Used to build a precompiled header file that's named Win32.pch and a precompiled types file that's named StdAfx.obj.

    Header files:

        Stdafx.h—Used to build a precompiled header file that's named Win32.pch and a precompiled types file that's named StdAfx.obj.

        resource.h—A generated include file for app.rc.

    Resource files:

        app.rc—The resource script file of a program.

        app.ico—The icon file of a program.

    ReadMe.txt—Describes the files in the project.

To create a common language runtime (CLR) console app project

    On the menu bar, choose File, New, Project.

    In the New Project dialog box, under Installed Templates, select the Visual C++ node, select the CLR node, and then select the Console Application template.

    In the Name box, enter a unique name for your application.

    You can specify other project and solution settings, but they are not required.

    Choose the OK button.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote