Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The pseudo code begins from 3b to 3d and it must be in C# - Sys Prgm & OS Fund Name(s): Alpha(s): b. [5/_/0] Based

The pseudo code begins from 3b to 3d and it must be in C# image text in transcribed
image text in transcribed
image text in transcribed
- Sys Prgm & OS Fund Name(s): Alpha(s): b. [5/_/0] Based on your block diagram, write pseudo code for the main() function in your mycat program. Write the pseudo code in myCat-pseudo.c. Include a comment that clearly indicates your pseudo code labeled Paragraph 3.b. Note: Your pseudo code will not be compiled, you do not need to write your pseudo code such that it compiles. Your pseudo code shall not match your final solution code. Go through the problem solving process for programming. Hint: Comments are your friend. c. [57_70] Write pseudo code that uses Descriptor I/O to read the contents of a single file and outputs the contents of the file to standard output (see myCat Part 1). Write the pseudo code in myCat-pseudo.c. Include a comment that clearly indicates your pseudo code labeled Paragraph 3.c. d. (57__70) Write pseudo code that iterates through all of the files named on the command line and makes use of the routine from Paragraph 3.c. to output the contents of the files in order to standard output (see myCat Part 2). Write the pseudo code in myCat-pseudo.c. Include a comment that clearly indicates your pseudo code labeled Paragraph 3.d. the pseudo code in myCat-pseudo.c. Include a comment that clearly indicates your pseudo code labeled Paragraph 3.d. 4. Implement ( 30 ). . . a. [0/-5/-10 ] Sound and Secure Cyber Design You shall minimize the use of global variables other than errno, and for error reporting. You are encouraged to use #define, and other preprocessing directives. o Your program will not be compiled using the -D compiler directive. Source code is insufficiently documented: complex code blocks not explained, lack of robust program and function descriptions (readability). Source code is poorly or inconsistently formatted, but can be compiled (readability). Source code uses poorly named variables, or functions (readability). Source code does not use associated common libraries (reusability). Source code does not use library defined constants (portability). Source code does not use deprecated language features (design for the future). Implementation does not violate Principle of Least Privilege. b. [5/_/0] myEcho Read in arguments from the command line, Use Descriptor 10 to output the command line arguments to standard output, output a single space character between and only between command line arguments, Output a trailing new line after the last command line argument. . . . . . SY204-SPA OS Na Aly If you are able to file for maling pength of them were afer processing all of the clear [37.10 Put - Stade From CommyCat) For my pecified in their familyen the real input from the input sendado ctrl dised If your file for reading to ping the rest of the command line , dreamer the of the largest | It ( 13 ) [/-10) Code Compilation and Running Some code complete all ...) und Sie warning Compiled penis without SEGFAULT, infine . SY204 NA OS Feed Na Alpha() (1/0) Ener Handling (sycho, sycat) . For mer the curs from system callout simple med exit the program (exceps discussed specifically below)reaming more Allere different remmer for each of the tem calls that you That is tiple calls to the mystem call do not need to requerer her, but calls to different system calls shall retorn unique entramben You may Library routines for reporting Oputeror messages to standarder [/01 Uge Option (wycat) Read in the help option using getopt, that does not take any nument Upon detection of the option display simple apo information that describes how to use your program usage meel Example: program name, listing di command lines You may asume that all options will appear before we You may use Library routines for this feature After you output the wape menge, exit the program with a cermat Satu www. 157/01 Part 1 - Single Filename From Command Line yat) Read in a single filename from the command line Using Descriptor 1 read the qumce of bytes from the beginning of the weet the end of the sequence, associated with the file and on the line the contents of the file to standard put Implement at least the reading and writing sepuas function your program calle de not write all yourende directly in min. If you are unable to read data from the file output mengandunque CETOR aber [10] Part 2 - Multiple Filename From Command Line (wycat) Readinltiple filenames from the command line Using Descriptor 1 road the sequence of bytes from the beginning of the one te the end of the need with each file and on the line the contents of each file teard output Oudihements of the polied files in the order specified on the commune For example Cat filel file would first put the coolesoffitel Kollowed by the 112 o Mieden utput Implementat least the reading and writing stops a function program all ISO wycho Solicy come we standard Solutions comme single peberly between cline argument Se conception for the new 10] En Handling my chowycat) Solutions enormes tendendo Solutii corectly returns unique values for different calle 4 [2/__/01 UiOpticati Solution correctly Solution comedy mersal 15/0] Single Fame From Lise mycat) Select the content of the file to standard put - Sys Prgm & OS Fund Name(s): Alpha(s): b. [5/_/0] Based on your block diagram, write pseudo code for the main() function in your mycat program. Write the pseudo code in myCat-pseudo.c. Include a comment that clearly indicates your pseudo code labeled Paragraph 3.b. Note: Your pseudo code will not be compiled, you do not need to write your pseudo code such that it compiles. Your pseudo code shall not match your final solution code. Go through the problem solving process for programming. Hint: Comments are your friend. c. [57_70] Write pseudo code that uses Descriptor I/O to read the contents of a single file and outputs the contents of the file to standard output (see myCat Part 1). Write the pseudo code in myCat-pseudo.c. Include a comment that clearly indicates your pseudo code labeled Paragraph 3.c. d. (57__70) Write pseudo code that iterates through all of the files named on the command line and makes use of the routine from Paragraph 3.c. to output the contents of the files in order to standard output (see myCat Part 2). Write the pseudo code in myCat-pseudo.c. Include a comment that clearly indicates your pseudo code labeled Paragraph 3.d. the pseudo code in myCat-pseudo.c. Include a comment that clearly indicates your pseudo code labeled Paragraph 3.d. 4. Implement ( 30 ). . . a. [0/-5/-10 ] Sound and Secure Cyber Design You shall minimize the use of global variables other than errno, and for error reporting. You are encouraged to use #define, and other preprocessing directives. o Your program will not be compiled using the -D compiler directive. Source code is insufficiently documented: complex code blocks not explained, lack of robust program and function descriptions (readability). Source code is poorly or inconsistently formatted, but can be compiled (readability). Source code uses poorly named variables, or functions (readability). Source code does not use associated common libraries (reusability). Source code does not use library defined constants (portability). Source code does not use deprecated language features (design for the future). Implementation does not violate Principle of Least Privilege. b. [5/_/0] myEcho Read in arguments from the command line, Use Descriptor 10 to output the command line arguments to standard output, output a single space character between and only between command line arguments, Output a trailing new line after the last command line argument. . . . . . SY204-SPA OS Na Aly If you are able to file for maling pength of them were afer processing all of the clear [37.10 Put - Stade From CommyCat) For my pecified in their familyen the real input from the input sendado ctrl dised If your file for reading to ping the rest of the command line , dreamer the of the largest | It ( 13 ) [/-10) Code Compilation and Running Some code complete all ...) und Sie warning Compiled penis without SEGFAULT, infine . SY204 NA OS Feed Na Alpha() (1/0) Ener Handling (sycho, sycat) . For mer the curs from system callout simple med exit the program (exceps discussed specifically below)reaming more Allere different remmer for each of the tem calls that you That is tiple calls to the mystem call do not need to requerer her, but calls to different system calls shall retorn unique entramben You may Library routines for reporting Oputeror messages to standarder [/01 Uge Option (wycat) Read in the help option using getopt, that does not take any nument Upon detection of the option display simple apo information that describes how to use your program usage meel Example: program name, listing di command lines You may asume that all options will appear before we You may use Library routines for this feature After you output the wape menge, exit the program with a cermat Satu www. 157/01 Part 1 - Single Filename From Command Line yat) Read in a single filename from the command line Using Descriptor 1 read the qumce of bytes from the beginning of the weet the end of the sequence, associated with the file and on the line the contents of the file to standard put Implement at least the reading and writing sepuas function your program calle de not write all yourende directly in min. If you are unable to read data from the file output mengandunque CETOR aber [10] Part 2 - Multiple Filename From Command Line (wycat) Readinltiple filenames from the command line Using Descriptor 1 road the sequence of bytes from the beginning of the one te the end of the need with each file and on the line the contents of each file teard output Oudihements of the polied files in the order specified on the commune For example Cat filel file would first put the coolesoffitel Kollowed by the 112 o Mieden utput Implementat least the reading and writing stops a function program all ISO wycho Solicy come we standard Solutions comme single peberly between cline argument Se conception for the new 10] En Handling my chowycat) Solutions enormes tendendo Solutii corectly returns unique values for different calle 4 [2/__/01 UiOpticati Solution correctly Solution comedy mersal 15/0] Single Fame From Lise mycat) Select the content of the file to standard put

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Mastering Real Time Analytics In Big Data A Comprehensive Guide For Everyone

Authors: Lennox Mark

1st Edition

B0CPTC9LY9, 979-8869045706

More Books

Students also viewed these Databases questions

Question

Explain the nature of human resource management.

Answered: 1 week ago

Question

Write a note on Quality circles.

Answered: 1 week ago

Question

Describe how to measure the quality of work life.

Answered: 1 week ago

Question

love of humour, often as a device to lighten the occasion;

Answered: 1 week ago

Question

orderliness, patience and seeing a task through;

Answered: 1 week ago

Question

well defined status and roles (class distinctions);

Answered: 1 week ago