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

Assignmentgoals developing problem-solving skills declaring

Assignment Goals: Developing problem-solving skills, declaring variables, multi-way branches, data validation. Problem: Complete Programming Challenge 4.19 in your text book. Do not accept values larger than 10 meters or ...

Object-oriented programming assignmentintroduction -nbspa

Object-Oriented Programming Assignment Introduction -  "A logical matrix or (0, 1) matrix is a matrix with entries from the Boolean domain B = {0, 1}. Such a matrix can be used to represent a binary relation between a pa ...

1 create a c visual studio console application with the

1. Create a C++ visual studio console application with the name Project2. (As usual, to make the grader happy, it is critical that your project as well as your zip file contain your name and the exercise or project numbe ...

C projectphase 11- you need to take input from user study

C project Phase 1 1- You need to take input from user study year (proper value check from 1 to 4) 2- Take input semester (proper value check 1 to 8) 3- Calculate GPA (use Loop, calculate GPA for semester 1,2,3...) Exampl ...

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

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

Projectdecision statementsdirections read carefully and

Project: Decision Statements Directions (Read CAREFULLY and follow COMPLETELY): - Create the following programs in C++ that perform the purpose described and show the sample output (with user input where applicable). - I ...

Writing a c code its a beginner level code design a class

Writing a C++ code, its a beginner level code. Design a class house that defines a house on a street. A house has a house number and an (x,y) location, where x and y are numbers between -10 and 10. the key member is plot ...

Write a c application that does the followingitem 1 prompts

Write a C++ application that does the following: ITEM 1: Prompts the user to choose one of the following series: 1 + 1/2 + 1/3 + ... + 1/n ((((x * 2) * 2) * ...) * 2) series of n multiplications x + (x * 1) + (x * 2) + ( ...

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

  • 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