• 100% Satisfaction Guarantee
LogicPro, Engineer
Category: Homework
Satisfied Customers: 13128
Experience:  Expert in Java C++ C C# VB Javascript Design SQL HTML
29751445
LogicPro is online now

# 1.Write the C statement required to declare the variable balance

1.Write the C statement required to declare the variable balance which is going to be used to store a money value.
2.Write only one C statement that declares the variable LastName and sets its initial value to J.
3.Provide the values of a and b at the various points (right after each instruction is executed) in this program segment.

a = 1;
b = 1;

++a; a = _____ b = _____
++b; a = _____ b = _____

a = a * b++; a = _____ b = _____
c = a-- + --b ; a = _____ b = _____ c=_______

4.Declare the constant e = 2.72 to be used within a C program.
5.Mark as correct (C) or incorrect (I) in the blank the following comment statements.

//declare variables ___
/initialize variables ___
/* multiply variables together */ ___
*/ This program finds the average of three numbers. */ ____
6.In order to get the following output in the screen:

I am 25 years old
My last name initial is M

complete the printf statements using the declared variables in the following program segment:

int age=25;
char init=’M’;

printf(
printf(

7.Write only one printf statement to get the same output as question # XXXXX

printf(

8. Complete the program segment below.

scanf(

9.Complete the program segment below:

int age;

scanf(“%d”, &age);

If ( )
printf(“You are not allowed to consume alcoholic drinks”);

else
printf(“Yes, you can have a beer”);
10.Complete the following program segment such that it prints out odd numbers from 1 to 199 and then prints “Done”.

int a;
for ( )
printf(“%d “, a);
printf(“Done”);
Hi,
Welcome here.

If you have any file(s), Zip all files; upload the zipped file to http://wikisend.com or http://ge.tt and post download link here. Formatting is messed up.

Customer: replied 3 years ago.

yes
Customer: replied 3 years ago.

ok about how long do you think it will take?

When do you need this answer?
Customer: replied 3 years ago.

would like it within the next 15-20 min if possible

please wait. I will try my best.

You can ask me again using "For LogicPro only" at the start of your questions like other customers to get instant answers.

It will ensure that question is for me.

so you can come back and ask me a question anytime.

Remember, if for any reason you are unsatisfied with my answer, we can continue the conversation until you’re satisfied and rate my answer as excellent. I can address follow up questions on original requirements at no extra charge and I’m always here to help.

Thank you for using this site!

Customer: replied 3 years ago.

im having a hard time viewing the doc.

You need to spend \$3 to view this post. Add Funds to your account and buy credits.