Question

Fixing code I get the expected an indected block


below is the code and this is the error message i receieve.


image.png

image.png

0 0
Add a comment Improve this question Transcribed image text
Request Professional Answer

Request Answer!

We need at least 9 more requests to produce the answer.

1 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the answer will be notified once they are available.
Know the answer?
Add Answer to:
Fixing code I get the expected an indected block
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Similar Homework Help Questions
  • I need help fixing this code in C. It keeps giving me an error saying error:...

    I need help fixing this code in C. It keeps giving me an error saying error: ‘O_RDWD’ undeclared (first use in this function) if ((fd = open(fifo, O_RDWD)) < 0) note: each undeclared identifier is reported only once for each function it appears in. Please fix so it compiles properly. //************************************************************************************************************************************************** #include <fcntl.h> #include <stdio.h> #include <errno.h> #include<stdlib.h> #include <string.h> #include<unistd.h> #include <sys/stat.h> #include <sys/types.h> #define MSGSIZE 63 char *fifo = "fifo"; int main(int argc, char **argv){    int fd;...

  • I have this section of code for a Morse Code Converter with C# (Visual Studio) that...

    I have this section of code for a Morse Code Converter with C# (Visual Studio) that I can't figure out. I have a two-dimensional array containing the character and correlated Morse Code. I need loops to step through the Input message, search through the array to fins the corresponding character and Morse Code, then append the Morse Code to the Morse code string. (Below is the code I need help with. Thanks!) // Set up a loop to 'step through'...

  • I really need some help fixing a code error in Visual Basic I was wondering if...

    I really need some help fixing a code error in Visual Basic I was wondering if anyone could help fix the error that I'm about to provide in bold thanks so much! I'll also tell what the error is. Public Class MainForm Private Sub exitButton_Click(sender As Object, e As EventArgs) Handles exitButton.Click Me.Close() End Sub Dim img As Image = Image.FromFile("C:\Users\Pranesh\Pictures\11599264.jpg") house1PictureBox.Image = img house2PictureBox.Image = img house3PictureBox.Image = img house4PictureBox.Image = img house1PictureBox.Visible = False house2PictureBox.Visible = False house3PictureBox.Visible...

  • I have the below code that I need help with fixing this Ruby code. I am...

    I have the below code that I need help with fixing this Ruby code. I am trying to iterate through these three arrays and print the array out with a label. The animals array should have the Animals header, the people should have the People header and the friends array should have the Friends header. I would also like to adjust the printout size based on the size of the elements in the array. I would like for it to...

  • I need help fixing my python3 code. I am trying to get my Monty hall game...

    I need help fixing my python3 code. I am trying to get my Monty hall game working correctly. Below is my code. When I run the code it repeats the first question and doesn't work until the 3rd attempt or sometimes more than that. How do I fix this? I also need to be able to make it run 5 times in a row.(like ask the user at least 5 times, so it is re-playable. I added a image of...

  • I need to write a function in C# that would validated user entry for Payment Code...

    I need to write a function in C# that would validated user entry for Payment Code in the form. The form is used to collect information about payments. User can enter ad many rows/entries as he/she wishes by clicking "Add another Payment" button on the buttom. There is a Payment Code field that needs to be validates. It's a drop down list, with many values but the user is eligible to select only two of them: Meal and Travel. Every...

  • okay so here is my c++ code and the errors im really stuck on fixing what...

    okay so here is my c++ code and the errors im really stuck on fixing what i did wrong it seems to be the same repeated error our job is to write a menu driven program that can convert to display Morse Code ere is the menu the program should display Menu Alphabet Initials N-Numbers - Punctuations S = User Sentence Q- Quit Enter command the user chooses A your program should use a loop and your morse code printing...

  • write a c++ code be sure the user only enter A or a for packageA, B...

    write a c++ code be sure the user only enter A or a for packageA, B or b for packageB, C or c for packageC. If the user inputs some other value display an error message saying " invalid out". When you ask the user to input the number of minute and the user enters a negative value you should display the same error message "invalid input" in both cases, after you display the error message the program should stop...

  • When running this SQL code in Access I get an error saying "Syntax Error in FROM...

    When running this SQL code in Access I get an error saying "Syntax Error in FROM Clause" SELECT SUM(HoursWorked) AS TotalHoursWorked FROM Property_Service INNER JOIN Property_Service.EmployeeID = Employee.EmployeeID WHERE ExperienceLevel <> 'Junior'; I was wondering if someone could help me fox it.

  • How many times does the message, “Hello” get printed out by the code segment below? int...

    How many times does the message, “Hello” get printed out by the code segment below? int count = 0; while (count < 41) {     printf(“Hello\n”);     count = count+3; } D Question 2 1 pts How many times does the message, "Hello" get printed out by the code segment below? int count = 0; while (count < 41) printf("Helloln"); count count+3;

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT