I was trying to figure this problem out. I know that if the address for each variable were not in this problem, i =14 j = 7 p=14 q=7...How does adding in the address for this program affect the...
Type: Posts; User: alex1067
I was trying to figure this problem out. I know that if the address for each variable were not in this problem, i =14 j = 7 p=14 q=7...How does adding in the address for this program affect the...
I have to write a program that deals with arrays. I think I am doing this totally wrong. Do I need a for loop to do the increment?
11
12 Write a C program (named pe4.c) will prompt
...
Ok the - 2 does not need to be there for the width. it just needs to be less than the width. That gives me the left leg. Thank you!
Last weekend I posted about this program to make a "table shape" out of asterisks. I am almost there except for the missing left leg of the table ,and the bottom row of asterisks does't need to be...
Can anyone please show me where to put the printf(" ") in my code?
Ok thank you. Now I just have to work on where to put the printf(" "); at.
Thanks
6 #include <stdio.h>
7
8 int main(void)
9
Can I put whatever I want where the green text is? I need the width to be between 4 and 40.
So i == 4 < width < 40 ?
Ok but wouldn't this leave more of a "filled box shape"? I need the inside to be empty so it looks like a table
The code you sent me should output this I believe
Enter width:10
Enter...
I understand the for loop. My problem is trying to work with * rather than a number...Can I set an int such as width = * /
The instructor said I would need a loop. Can you give me an example of what I need to do?At the rate I am going I will be here all night. What I am doing is wrong I think.
6 #include...
I need help writing a program. The program calls for a user to be asked a width and height to make a table of asterisks. The height can ONLY be 3 or 5, and the width can be between 4-40. The table...
What am I doing wrong?
5%2 = 3 3 * 3 = 9 9/4 = 2.5 2.5 * 4 = 9 9+9+5 = 23
Can some one please explain what the output will be? Where do you place the parentheses to do normal order of operations
5 + 2 % 5 * 3 / 4 * 4 + 9
I got an answer of 23?
You mean comparing 3 and 7?
How would I go about doing that?
It is incorrect because I have to put in characters by pulling down on a tap on website and it has 22 spaces and that code is too short, when I pull down any tab, I have theses choices, it is a...
Apparently, this code I am trying is still incorrect.
if (ch == 3 || ch ==7)
++count;
Laserlight, how did you know to use pre increment instead of post increment
Can Someone please help me write this?
Write an if statement which will increment a variable 'count' if and only if the input character 'ch' has a value of 3 or 7. NOTE: test for '3' first, then...
Electromagnetics has been my favorite course :)
How similar is C programming to MATlab?
Ice Dane, I am a junior Electrical engineering student and this is the only programming course I have to take. We are on "loops" in the book and that is what is supposed to be used for the...
Honestly, I understand the program I wrote more clearly. I am 8 weeks into "Intro to computing" course. Thank you for your help. My next task is to try and get it to print the day of week and not the...
I understand my mistake with logical operators. Thank you. Now I get a value of 0,1,2,3,4,5,6when I run the program. It is printing the enums and not the days of the week.
7 #include...
I understand how enum works but what are z and k doing
9 int main(void)
10
11 {
12
I am looking in my book, I do not see a way to printf an enum.
I have been working on this for 3 hours now. =(
I tried this enum and am still getting an error when I used the word day in my code. Can you give me an example of using divisions to find the day...
Ok sorry I thought I was in the C programming section. I must have had it bookmarked wrong. Thank you