Concept explainers
Here is the prompt. Could you type it in C code? Thank you!:
From the command window, the user should be able to run the program in
* several tier one modes:
* /h - Help mode (implicit and explicit)
* /circle - Problem{01} : Filled circular
* /annulus - Problem{02}: Annulus
* /rectangle_filled - Problem{03}: filled rectangular
* /rectangle_hollow - Problem{04}: hollow rectangle
* For each of the main modes provided above, they must support interactive and
* parametric mode.
* /i - Interactive mode (using scanf)
* /p - Parameter mode (parsed from argv[n])
* If incorrect or insufficient arguments are provided
* - an informative error message using printf must be displayed (format: "Error: ...")
* - help must be displayed.
*
* Functions
* int circle_3D_v4_modified(double radius_max, double radius_min,
* double length, int n,
* double edge_face[], double area_face[], double area_outer[], double area_inner[], double volume[]);
* int annulus_3D_v4_modified(double radius_outer_max, double radius_outer_min,
* double radius_inner_max, double radius_inner_min,
* double length, int n,
* double edge_face[], double area_face[], double area_outer[], double area_inner[], double volume[]);
* int rectangle_filled_3D_v4_modified(double base_max, double base_min,
* double height_max, double height_min,
* double length, int n,
* double edge_face[], double area_face[], double area_outer[], double area_inner[], double volume[]);
* int rectangle_hollow_3D_v4_modified(double base_outer_max, double base_outer_min,
* double height_outer_max, double height_outer_min,
* double base_inner_max, double base_inner_min,
* double height_inner_max, double height_inner_min,
* double length, int n,
* double edge_face[], double area_face[], double area_outer[], double area_inner[], double volume[]);
* void help( void );
*
* Output sample:
* P5_Sample.txt.
* Input sample:
* P5_Sample.txt.
*
* In addition to printing the results to the console, the results MUST also be
* printed to a file using fprintf (not via batch piping). Filenames must be
* hard coded as following:
*
* circle_3D_v4 produces:
* circle_3D_v4.csv (n rows, 7 columns: radius,length,edge_face,area_face,area_outer,area_inner,volume)
* annulus_3D_v4 produces:
* annulus_3D_v4.csv (n rows, 8 columns: radius_outer,radius_inner,length,edge_face,area_face,area_outer,area_inner,volume)
* rectangle_filled_3D_v4 produces:
* rectangle_filled_3D_v4.csv (n rows, 9 columns: base,height,length,edge_face,area_face,area_outer,area_inner,volume)
* rectangle_hollow_3D_v4 produces:
* rectangle_hollow_3D_v4.csv (n rows, 10 columns: base_outer,base_inner,height_outer,height_inner,length,edge_face,area_face,area_outer,area_inner,volume)
*
Trending nowThis is a popular solution!
Step by stepSolved in 3 steps with 2 images
- For the following program: Please create a program in C++ that allows you to view and edit the sales amounts for each month of the current year. Console Monthly Sales program COMMAND MENU view - View sales for specified month edit - Edit sales for specified month totals - View sales summary for year exit - Exit program Command: view Three-letter Month: jan Sales amount for Jan is 14,317.00. Command: edit Three-letter Month: jan Sales Amount: 15293 Sales amount for Jan is 15,293.00. Command: totals Yearly total: 77,786.71 Monthly average: 6,482.23 Command: view Three-letter Month: july Invalid three-letter month. Command: exit Bye! Specifications The program should use a list to store the sales data for each month with the three-letter abbreviation for the month (Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, and Dec) as the key for each item. When the program starts, it should read the sales data inserted from the user. If the user edits the…arrow_forwardPlease complete this program in C++ Please enusre that there is plenty of comments. PLENTY even if unessessary. Please include screenshots of actual code, screenshots of output, and code in the browser so I can copy and paste. Thank you.arrow_forwardTo remove the value of a variable but keeping the variable in PowerShell, we can use this cmdlet: Group of answer choices Delete-Value Clear-Variable Clear-Value Remove-Variablearrow_forward
- It is a C++ programming topic. Show the screenshot of the program.arrow_forward7. username_ends_with_digits This function decides whether a given username ends with some digits. It returns either True, if the username does end with digits, or False, if it does not. Check out the .isdigit method on strings! Sample runs should look like: >>> username_ends_with_digits("FunctionEnjoyer") False >>> username_ends_with_digits("this_username_95060") Truearrow_forwardC++arrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education