Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C exercise Homework help needed!! I have no idea how to start this and I appreciate it if someone will help me out, Will give
C exercise Homework help needed!! I have no idea how to start this and I appreciate it if someone will help me out, Will give upvote!
Sample Gummel plot data February 16, 2018 @ 10:00am Base-Emitter Voltage Base and Collector Currents VBE IBase IColl DATA 1.1000e+00 154.45E-06 2.5530E-03 1.1250e+00 217.25E-06 2.8836E-03 1.1500e+00 316.20E-06 3.3495E-03 1.1750e+00 405.70E-06 3.6640E-03 1.2000e+00 532.95E-06 4.3366E-03
Gummel plot for X51C SiGe HBT, T=23C 2003-Jul-4 Applied Base-Emitter Voltage (V) Base & Collector Currents (A) VBE IC IB DATA 0.0000e+00 100.00E-15 -100.00E-15 2.5000e-02 100.00E-15 -150.00E-15 5.0000e-02 150.00E-15 -100.00E-15 7.5000e-02 100.00E-15 -100.00E-15 1.0000e-01 100.00E-15 -100.00E-15 1.2500e-01 100.00E-15 -100.00E-15 1.5000e-01 150.00E-15 -100.00E-15 1.7500e-01 150.00E-15 -100.00E-15 2.0000e-01 150.00E-15 -100.00E-15 2.2500e-01 200.00E-15 -100.00E-15 2.5000e-01 150.00E-15 -100.00E-15 2.7500e-01 200.00E-15 -150.00E-15 3.0000e-01 249.99E-15 -49.998E-15 3.2500e-01 300.00E-15 -100.00E-15 3.5000e-01 550.00E-15 -100.00E-15 3.7500e-01 1.0500E-12 -100.00E-15 4.0000e-01 2.5000E-12 -100.00E-15 4.2500e-01 6.2499E-12 -49.998E-15 4.5000e-01 16.150E-12 50.000E-15 4.7500e-01 42.251E-12 300.00E-15 5.0000e-01 111.35E-12 950.02E-15 5.2500e-01 293.40E-12 2.5000E-12 5.5000e-01 773.16E-12 6.7499E-12 5.7500e-01 2.0369E-09 17.850E-12 6.0000e-01 5.3628E-09 47.050E-12 6.2500e-01 14.100E-09 124.35E-12 6.5000e-01 37.049E-09 328.70E-12 6.7500e-01 97.290E-09 871.01E-12 7.0000e-01 255.59E-09 2.3165E-09 7.2500e-01 669.53E-09 6.1548E-09 7.5000e-01 1.7450E-06 16.250E-09 7.7500e-01 4.5286E-06 43.001E-09 8.0000e-01 11.605E-06 112.75E-09 8.2500e-01 28.915E-06 289.70E-09 8.5000e-01 67.905E-06 710.77E-09 8.7500e-01 145.85E-06 1.6150E-06 9.0000e-01 275.15E-06 3.3005E-06 9.2500e-01 462.25E-06 6.0550E-06 9.5000e-01 702.80E-06 10.229E-06 9.7500e-01 955.70E-06 15.985E-06 1.0000e+00 1.2725E-03 24.235E-06 1.0250e+00 1.5335E-03 37.409E-06 1.0500e+00 1.8115E-03 69.499E-06 1.0750e+00 2.2420E-03 98.251E-06 1.1000e+00 2.5530E-03 154.45E-06 1.1250e+00 2.8836E-03 217.25E-06 1.1500e+00 3.3495E-03 316.20E-06 1.1750e+00 3.6640E-03 405.70E-06 1.2000e+00 4.3366E-03 532.95E-06Requirements 1. Write code to process any command line arguments the user may pass to the program. The program should do the following, depending on the number of arguments: . No arguments at all In this situation, the program should display an error message and then quit. One argument only . Assume the single argument is the name of the SPA file to read. Display a 2-D Gummel plot on the screen, but do not write a CITIfile. . Two arguments Assume the first argument is the name of the SPA file to read. Assume the second Write a CITIFILE that contains the data from the SPA file, but do not display a graph. n argument is the name of the CITIfile file to write is More than two arguments Treat this like the two argument case, i.e., ignore any arguments after the first two. For details about the internal layout of a SPA file and a CITIfile, refer to Appendices 1 and 2. 2. Write the code for reading from the SPA file in a separate function. .The function header should use only array notation (i.e., brackets II) for declaring array parameters. The body of the function should access arrays using standard array indexing. . . If the SPA file cannot be opened for reading, then the program s should display an error message and terminate Your code has to determine the actual number of data points that are read in. Hint: Use a loop to read one line at a time and keep track with a counter variable. If you use fscanf or fgets, it will return a special value such as EOF or NULL once it reaches the end of the file, so you know when to exit the loop. You may assume that there will be, at most, 256 rows of data values in the SPA file. . . 3. Write the code for writing to the CITIfile in a separate function. .The function header should use only pointer notation (i.e., asterisk *) for declaring array parameters. The body of the function should access arrays using pointer arithmetic. If the CITIfile cannot be opened for writing, then the program should display an error message and terminate . . Requirements 1. Write code to process any command line arguments the user may pass to the program. The program should do the following, depending on the number of arguments: . No arguments at all In this situation, the program should display an error message and then quit. One argument only . Assume the single argument is the name of the SPA file to read. Display a 2-D Gummel plot on the screen, but do not write a CITIfile. . Two arguments Assume the first argument is the name of the SPA file to read. Assume the second Write a CITIFILE that contains the data from the SPA file, but do not display a graph. n argument is the name of the CITIfile file to write is More than two arguments Treat this like the two argument case, i.e., ignore any arguments after the first two. For details about the internal layout of a SPA file and a CITIfile, refer to Appendices 1 and 2. 2. Write the code for reading from the SPA file in a separate function. .The function header should use only array notation (i.e., brackets II) for declaring array parameters. The body of the function should access arrays using standard array indexing. . . If the SPA file cannot be opened for reading, then the program s should display an error message and terminate Your code has to determine the actual number of data points that are read in. Hint: Use a loop to read one line at a time and keep track with a counter variable. If you use fscanf or fgets, it will return a special value such as EOF or NULL once it reaches the end of the file, so you know when to exit the loop. You may assume that there will be, at most, 256 rows of data values in the SPA file. . . 3. Write the code for writing to the CITIfile in a separate function. .The function header should use only pointer notation (i.e., asterisk *) for declaring array parameters. The body of the function should access arrays using pointer arithmetic. If the CITIfile cannot be opened for writing, then the program should display an error message and terminate
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started