Best writers. Best papers. Let professionals take care of your academic papers

Order a similar paper and get 15% discount on your first order with us
Use the following coupon "FIRST15"
ORDER NOW

Thanks in advance. I’m having trouble inputting the following code

Thanks in advance. I’m having trouble inputting the following code

into my compiler and need help with this assignment. The material is confusing for me. I had my professor try to explain it but it feels like I’m getting no where and this is due tonight as well. How do I add the shrink input to this specific code and etc? Can someone take a look at my code and show me how to make it run?

Here are the following instructions:
1. Demonstrate you successfully followed the steps in this lab by preparing screen captures of you running the lab as specified in the Instructions above.

2. (x/2) Provide a new function, shrink (float x), that would divide the input value by 2 using the shown code as a template. Support your experimentation with screen captures of executing the new code. Use a new test table with at least 3 distinct test cases listing input and expected output for the new code you created for the shrink function.

3. Why is the number of x’s different in the printf statements in the functions?

4. What happens if the user makes a selection other than one of the ones shown in the help prompt (a, b, c, or q in the code shown)? Justify your answer with documented experiments.

5. What would have to be changed in the code if the while statement were changed to: while (menu == 5);

6. Modify the original code and add an additional function of your choice. The function should be unique and something you created for this assignment. Support your experimentation with screen captures of executing the new code. Use a test table with at least 3 distinct test cases listing input and expected output for your unique function.

Thanks again

LETY! [D“
` include <studio _ A`
vold PrintHelp ( 1 $
PRINCE (‘ 9 0 ‘ ;`
PRINCE (" a : a (al – * * *^ "’ ;`
PALACE*
1 9} : 61x] – * * * * *^ ^ " ! !`
PrintE (‘ e : [ ( x) – *" 2 + 2* * + The "’ ;`
PRINCE (‘ 9 : quitin ") ;
wold alfloat * ]
Float V – * * *^
PRINCE (" $ 13 . 201 – 7. 2 8 2 – 7. 2 {` ‘ , *^ ^ ^ ^ ^ ^ ^`
` I’d end Function a
void BIELeat* 1*
Float * * * * * * *;|
PELALE I’]
\$ 1 8 . 2 5 1 –
I I’d end Function !`
1 – 7 . 2 2 " 3 – 7 . 2 {` " , *^ ^ ^ ^ ^ ^ ^
void clfloat *^]
Float V – *:* * * 2* x + 7 :`
PRINCE I’
" CIE – ZE1 – 7 . 2 5 " 2 + 2* 7 . 2 { + T – 7 . ZELA " .
I’ll end function {`
Ent menu ( 1 1
Char selection ;
Float*“
PrintHELP !’ :`
SCENE (‘ 83" , &selection! !`
LE ( selection = = ‘ 9 ‘) return 1 {
BEENE TOBE " , EX) ;
IF ( selection = = " $’l & lx) ;
LE ( selection = = ‘ }’) bla) ;
IF (selection = = " I’ll cIxl ;
LEEUIN D;\
I I’d end Function menu
Int mainly !`
while I’meau !l – Q1 {\
PRINCE I’ . .. I’ve … $2 " ) ;
+
r
 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"