Ask Question, Ask an Expert

+1-415-315-9853

info@mywordsolution.com

Ask C/C++ Expert


Home >> C/C++

Requirements:

Design and implement a C++ program and structure diagram for the following specification.

Assessment:

In this assignment you need to demonstrate writing and calling functions, and the use of arrays, including arrays as function parameters and a two dimensional array. The assessment of your program will be based mainly on (but may not be limited to) the following aspects:

  • Source code compiles and links ("builds") without any errors or (significant) warnings.
  • Source code is correctly formatted and adequately commented.
  • Uses appropriate variable names and named constants, and uses   from the cmath library.
  • The main function is correctly structured, including a program title.
  • Function calls are made correctly.
  • Arrays are used correctly.
  • User input to the program is correctly validated.
  • Program calculations are correct.
  • Program title and user input are displayed.
  • Circuit type is correctly find outd and displayed.
  • The table of calculation results has a heading and is well formatted.

The assessment of the structure diagram will be based mainly on the following aspects:

  • Drawn with the Structure Diagram program and correct file type submitted.
  • Diagram is complete and matches the program submitted.
  • Diagram is NOT excessively detailed.

The diagram should show the program structure. It should show all function, if and loop statements. Sequences of assignment statements should be grouped in a single box, and described such as “find out voltages”. Technical formulas are not required in the diagram.

Program Specification:

Overview:

prepare a program to find out the component voltages for the following series resonant RLC circuit.

2052_RLC circuit.jpg

The input voltage will be a step voltage that is 0 volt before time t = 0 and Vin volt after time t = 0.

We will assume Vin is 10V.

Electrical Theory:

Reference: http://en.wikipedia.org/wiki/RLC_circuit

The behaviour of the circuit depends on the values of the circuit components: resistance R, inductance L and capacitance C. We will assume R is always present in the circuit (R > 0), but that either the L or C or both L and C could be absent. Different formulas apply in each case. Your program will find out and display the voltages across each of the components present in the circuit at 101 equally spaced times from time t = 0 until time t = tmax. The time step will be tmax/100.

Program Inputs

When the program is run, the input function will allow the user to enter:

  • Resistance R in kΩ, must be greater than zero.
  • Inductance L in mH, must be greater than or equal to zero.
  • Capacitance C in nF, must be greater than or equal to zero. (Note that the zero value iindicates the capacitor is absent. This does not mean the capacitance is zero.)
  • The maximum time for which the calculations are to be performed tmax in µs.

C/C++, Programming

  • Category:- C/C++
  • Reference No.:- M9180

Have any Question? 


Related Questions in C/C++

Assignmentwhen writing c programs include comments in your

Assignment When writing C++ programs include comments in your code, make the program readable by indenting, use meaningful variable and function names, and produce meaningful output. This assignment will be to write a te ...

Computer sciencewhere do you think c and coding games in c

Computer Science Where do you think C++ and coding games in C++ is headed in the next five years? How about in the next 10 years? Do you think there are any significant improvements that need to be made to the code to en ...

Cosci 21a programming assignmentpurpose experience with

COSCI 21a, Programming Assignment Purpose: Experience with some basic data structures, including circular queues, linked lists, hash tables, and specifically with pointers and the associated dynamic memory allocation. Pr ...

Programming in cbubba tubs bbq rub is a company that makes

Programming in C++ Bubba Tub's BBQ Rub is a company that makes different BBQ dry rubs and sauces. They make each product when it is ordered with the freshest ingredients and sell it by the unit. A unit is 2 ounces of pro ...

Design implement test and debug a c program to simulate the

Design, implement, test, and debug a C# program to simulate the rolling of two dice 100 times. Whenever the two dice display the same number, the program should show the roll sequence number (e.g. the 10th roll) and the ...

Transaction processing system tpsxyz electronics is one of

Transaction Processing System (TPS) XYZ Electronics is one of the most popular electronics companies In Sultanate of Oman the company offers affordable electronic gadgets such as mp3 players, portable movie players, mobi ...

Create your own unique while-end repetition structure you

Create your own unique While-End repetition structure. You decide the theme. You should provide both the pseudocode and the flowchart of your example. Be sure to provide an overview of what your repetition structure is d ...

C-programmingcreate a c program that sorts a sequence of

C-Programming Create a C program that sorts a sequence of positive numbers using the bubble sort algorithm in an increasing or decreasing order based on the user's choice. The pseudo code for the bubble sort algorithm is ...

Programming assignment 5write a c program that allows the

PROGRAMMING ASSIGNMENT #5 Write a C program that allows the user to make some banking transactions. The program should first prompt the user to enter the current balance of his/her bank account (in dollars and cents, not ...

Discussionkeyboard versus file input please respond to the

Discussion "Keyboard versus File Input" Please respond to the following: • Suppose you are designing a C++ application that needs to capture user input specifically via a keyboard or from a file. Determine the method tha ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Section onea in an atwood machine suppose two objects of

SECTION ONE (a) In an Atwood Machine, suppose two objects of unequal mass are hung vertically over a frictionless

Part 1you work in hr for a company that operates a factory

Part 1: You work in HR for a company that operates a factory manufacturing fiberglass. There are several hundred empl

Details on advanced accounting paperthis paper is intended

DETAILS ON ADVANCED ACCOUNTING PAPER This paper is intended for students to apply the theoretical knowledge around ac

Create a provider database and related reports and queries

Create a provider database and related reports and queries to capture contact information for potential PC component pro

Describe what you learned about the impact of economic

Describe what you learned about the impact of economic, social, and demographic trends affecting the US labor environmen