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++

Cs492 programming assignment-the program must be written in

CS492 Programming Assignment- The program must be written in C or C++, and run on a linux machine. ALL source code you submit must be well documented (documentation is an indicator of understanding!) Programs that cannot ...

Only one programwrite a c program to find fibonacci numbers

Only one program Write a C++ Program to Find Fibonacci Numbers using Dynamic Programming.

Write code to create the generator submit your source code

Write code to create the generator. Submit your source code as well as a description of how I could run the program, sample screenshots of the program in action, and the various changes that could be produced through you ...

Q 1 write a c program to declare two integer one float

Q. 1 Write a C++ program to declare two integer , one float variables and assign 10, 15, and 12.6 to them respectively. It then prints these values on the screen. Q. 2 Write a C++ program to prompt the user to input her/ ...

Discussion questonsplease respond to all of the following

Discussion Questons Please respond to all of the following prompts: • How are input and output accomplished in C++? • How do cin and cout relate to ostream and istream? Lab Activity 1. Write a C++ program per the require ...

Assignment simple 5-card poker gamein this assignment you

Assignment: Simple 5-Card Poker Game In this assignment, you will develop a simple poker game, complete with basic AI, using the object oriented programming principles discussed in class. Flow of Play Your poker game's p ...

Programwriteacprogramthatwillasktheuserforthenameofaninputfi

Program Write a C++ program that will: Ask the user for the name of an input file. Read in this name and open that text file for input. Ask the user which of two options they want to do: Read in student data Count lines ...

Problem 1overview for problem 1a of this assignment you

Problem #1 Overview: For problem 1(a) of this assignment, you will need a C++ compiler. In order to receive credit, your program must compile and run; and you must provide the actual source code file so that I can compil ...

1 write a program to find the sum amp average of the given

1) Write a program to find the sum & average of the given numbers using the while loop. 2) Write a program in C to find the sum and average of the given numbers stored in an array of n values.

This program involves using stl listsfor this program you

This program involves using STL lists. For this program you will implement three functions whose prototypes are given below: list ::iterator mxIter(list ::iterator first, list ::iterator last); void selectSort(list & aLi ...

  • 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

A cola-dispensing machine is set to dispense 9 ounces of

A cola-dispensing machine is set to dispense 9 ounces of cola per cup, with a standard deviation of 1.0 ounce. The manuf

What is marketingbullwhat is marketing think back to your

What is Marketing? • "What is marketing"? Think back to your impressions before you started this class versus how you

Question -your client david smith runs a small it

QUESTION - Your client, David Smith runs a small IT consulting business specialising in computer software and techno

Inspection of a random sample of 22 aircraft showed that 15

Inspection of a random sample of 22 aircraft showed that 15 needed repairs to fix a wiring problem that might compromise

Effective hrmquestionhow can an effective hrm system help

Effective HRM Question How can an effective HRM system help facilitate the achievement of an organization's strate