Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

create a . sed file for linux WITHOUT USING AWK that has no more than one space between tokens. has no trailing whitespace after a

create a .sed file for linux WITHOUT USING AWK that
has no more than one space between tokens.
has no trailing whitespace after a line.
Binary operators should always surrounded by a single space on either side (including assignment
and Boolean).Only the following operators must be accounted for: +,-,*,/,=,==,<=,>=,<,>.
Conditions should not have whitespace immediately inside of the parentheses.
The program should not modify spaces which are leading, expanded tabs.
Comments should be left alone. You may assume comments (single-and multi-line)will not appear
on lines with source code.
Hint: The above need not be performed in a single pass.
DO NOT USE AWK |DO NOT USE AWK
Here is an example file where ___ represent the spaces
/**
author : _____some_student
**/
# include_< stdio .h >
int_main ()_{
____int_numberIn ;
____printf (" Enter_a_number : _") ;
____scanf ("% d ",_ & numberIn ) ; __
____if_(_numberIn_>_10_)_{
____//____add__two
________return_numberIn_+__2 ;
____}_else___if____( numberIn <5){
____//____subtract_two___
________return__numberIn_-_2 ;
____return__numberIn *2;
}

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

Deductive And Object Oriented Databases Second International Conference Dood 91 Munich Germany December 18 1991 Proceedings Lncs 566

Authors: Claude Delobel ,Michael Kifer ,Yoshifumi Masunaga

1st Edition

3540550151, 978-3540550150

More Books

Students also viewed these Databases questions

Question

5. Identify three characteristics of the dialectical approach.

Answered: 1 week ago

Question

6. Explain the strengths of a dialectical approach.

Answered: 1 week ago

Question

4. Explain the strengths and weaknesses of each approach.

Answered: 1 week ago