Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!