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

Assignmentthis is the programthis program will use 2

Assignment This is the program: This program will use 2 different data structures to perform the same tasks; a vector and a dynamically sized array Write a complete C++ program that will: Declare a vector of integers wit ...

Programming cc assignmentsyoull need to download this to

Programming C/C++ assignments You'll need to download this To write the program. The programs will be written using the Microsoft Visual C++ Express Edition IDE (Integrated Development Environment), which can be download ...

1 write a c program that includes a function called lobster

(1) Write a C program that includes a function called lobster() that accepts three arguments: a character and two integers. The character argument is the character to be printed by lobster(). The second argument is the n ...

Cs 2410workshop make-up assignmentwrite a c program that

CS 2410 Workshop Make-Up Assignment Write a C++ program that will output to a file called output.txt EVERY 10 digit phone number from 713-000-0000 through 713-000-0998. These numbers MUST only contain an odd number of ev ...

Assignment part acreate a checkbook program using c

Assignment (part a) Create a Checkbook program using C : • Create a Check structure. Include:   o Check number (should be an integer).   o Date (use type char[ ]).   o To   o Amount   o Description • Add functions to:   ...

Assignmentobjectivespractice reading characters from a

Assignment Objectives Practice reading characters from a file Practice using command line input Practice using command-line redirection of files Practice implementing a double transposition ciphering algorithm Summary In ...

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 bm ...

Programming in c assignmentwrite a c program that computes

Programming in C Assignment Write a C program that computes and outputs the current age of the United States in days (you can use 1776 as theUS founding year). You don't have to worry about fractional years or leap years ...

Assignmentconsider the following declarationsclass

Assignment Consider the following declarations: class bagType { public: void set(string, double, double, double, double); void print() const; string getStyle() const; double getPrice() const; void get(double, double, dou ...

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

  • 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

WalMart Identification of theory and critical discussion

Drawing on the prescribed text and/or relevant academic literature, produce a paper which discusses the nature of group

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