Description
● Labwork ends at 18.50.
● Name of your file should be in the format: labwork4_name_surname.c
○ Name: is your own name
○ Surname: is your own surname
○ Example: labwork4_name_surname.c
○ If you do not know how to create a c file, please look at “how to run your code”
file
● Your file should be on the desktop
● At 18.50, we collect your works from your desktop. Do not turn off your computer until you are told to do so…
● You will not have an internet connection until we collect your works. When the access is permitted, submit your work on coadsys.
● The work we collect and you submitted on coadsys should be exactly the same.
● Read your labwork documents carefully and listen to the explanation of your assistant.
● There can be restrictions on your labwork, obey them if you want to get a full grade.
● If you did not understand the labwork or there is an unclear point, do not make assumptions and ask your assistant immediately.
● There will be some example input and output for each labwork. Do not write a program that only runs for the given example input. Be sure you understand the question well.
FORBIDDEN
● Talking with your friends
● Looking at your friend’s monitor
● Using any mobile phone or smart devices
● Books, notebooks, papers or notes
● Usb or any kind of device that is used to share information ● Internet
LABWORK 4
In this program you are going to find the letters in a given string and copy them to another string recursively.
● Function 1:
○ Name of the function: is_letter
○ Return type of the function: int
○ 1. Parameter: char
○ Checks if the character is a letter.
● Function 2:
○ Name of the function: letters
○ Return type of the function: void
○ 1. Parameter: Pointer to the destination string
○ 2. Parameter: Pointer to the source string
○ This function will copy the letters from the source string to another string. Use recursion, do not use loop structures.
● Main function:
○ Write a main function to test your code, you do not need to take values from the user. You can manually create your array.
Example Output:
Input string : “mx90456453abxxx cxd,,,, fxxxxx xxgxxx”




Reviews
There are no reviews yet.