Assignment #1 1. Compound Word Jojo has just learned about compound words, which occurs when two or more words are joined to make one longer word. For example the English word footpath, composed of two words "foot" and "path". She wants you to make one such word, given two words that make up the compound word. 2. Birthday Cinema * Jojo, Lili, and Bibi wants to treat their N friends. They want to treat their N friends to watch a movie. Each movie ticket cost 1 point. Luckily there is a promo, if you buy 2 tickets you get 1 for free. How many points do they need to spend to buy tickets for all of them. 3. Counting Number Lili has just learned how to count from 1 to n, while Jojo just recently learned how to use a calculator. When Lili counts from 1 to n, Jojo always adds the numbers that Lili mentions. Jojo asked for your help to check if he used the calculator correctly, he needs you to calculate the number he is supposed to get. 4. Boom...
Structure Is a data type to store a group of data with various of data type. Structure Declaration 1. struct name_structure { dataType1 name_field1; dataType2 name_field2; … } name_variable_structure ; 2. struct name_structure name_variable_structure; Accessing Structure Element of a structure can be accessed using dot operator struct mhs { char nim[9]; char name[26]; float gpa; }; int main (){ struct mhs lia; gets(lia.name); } Structure Initialization Syntax: struct struct_name variable = {value_1, …, value_m}; struct employee info = {1,"B. Smith"}; Array of Structure Structure data type can only contain one record. But real world problem needs group of records. So it's a structure inside a structure. Example: struct Dob { int date, month, year; }; struct Account { int accountNo...