Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Need help with questions please and Thank you! 4) (2 points) Write a single line

ID: 3698808 • Letter: N

Question

Need help with questions please and Thank you!

4) (2 points) Write a single line UNIX command to run an executable Java program Hello at background and output the number of lines in the result. 5) (2 points) Define a symbolic constant(macro) DATA to represent value 3.32 in C . 6) (2 points) Write a single line UNIX command to output the returned value of last command. 7) (2 points) In the format string %-8.31f, explain the meaning of 8, 3 and 1f respectively. And what will be printed for expression 123.3455 with this format string? 8) (3 points) Rewrite the following loop so that its body is empty: for (i = 10; i > m; i--) m-i+m; 9) (3 points) Rewrite the following if else statement so that only a single line statement is needed: if(n% 51 In=-3) return n; else return n+l; 10) (3 points) What are the difference between [ SxSy ] and [ Sx -eq Sy ]?

Explanation / Answer

If you post more than 1 question, as per chegg guidelines I have to solve only 1 question.

Ques 5.We define a macro which saves a constant value to a variable

#define DATA 3.32

Ques 7. The format -8.3lf means that the width of the output is 8 and the precision is upto 3 decimal places.

lf means that the variiable is of type double.

The output shown is

123.346__

underscore represents a space in the width of 8.

The value is rounded of to 3 decimal places.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote