The document provides instructions for two coding problems:
1) Write a program to create a text file called "Niral" on the desktop and write the text "Welcome to niral" in the file.
2) Write a program to simulate an old man sharing gold coins with his manager, 5 sons, and 5 daughters according to specific sharing rules, and output the total initial coins and final coins received by each person. The rules require no remaining coins and no fractional coin shares.
The document provides instructions for two coding problems:
1) Write a program to create a text file called "Niral" on the desktop and write the text "Welcome to niral" in the file.
2) Write a program to simulate an old man sharing gold coins with his manager, 5 sons, and 5 daughters according to specific sharing rules, and output the total initial coins and final coins received by each person. The rules require no remaining coins and no fractional coin shares.
The document provides instructions for two coding problems:
1) Write a program to create a text file called "Niral" on the desktop and write the text "Welcome to niral" in the file.
2) Write a program to simulate an old man sharing gold coins with his manager, 5 sons, and 5 daughters according to specific sharing rules, and output the total initial coins and final coins received by each person. The rules require no remaining coins and no fractional coin shares.
The document provides instructions for two coding problems:
1) Write a program to create a text file called "Niral" on the desktop and write the text "Welcome to niral" in the file.
2) Write a program to simulate an old man sharing gold coins with his manager, 5 sons, and 5 daughters according to specific sharing rules, and output the total initial coins and final coins received by each person. The rules require no remaining coins and no fractional coin shares.
Duration: 1 hour Niral ID : __________________ Name : _____________________ Niral ID : __________________ Name : _____________________ College : __________________ Mobile No:_____________________ College : __________________ Mobile No:_____________________ 1) Write a c program to create a text file in desktop with the name Niral and insert the text into the file Welcome to niral
2) Write a program for the following problem(c/c++/Java) Old man has gold coins and he has 1 manager, 5 sons, and 5 daughters. He is going to share his gold coins to his sons, daughters and manager. I) First he gives one coin to manager then 1/5 to his first son II) Again he gives one coin to manager, then 1/5 to his second son, from balance coins and so on in this manner III) In end of sharing he has some amount of coins and he gives equal share to all daughters (No share to manager in this case) Conditions: At the end of sharing there should not be any coins remaining We cant share single coin to more than one members, i.e. share should not be in fraction Mention the total coins the old man initially had and total coin each son, daughter, and manager would get at the end.