Final Program: Unit Converter User Interface This part of the project is the last for the unit conversion program and will combine everything from the modules to create a program that can convert units of measurement to/from imperial and metric. For this task you’ll be required to create a text-based user interface that calls the user-defined function you created in module 2 to perform the required unit conversions. User Interfaces are important in computer programs; they consist of menus and prompts that can be interacted with by a user to input information into the program. User-defined functions allow for effective code reuse and is good programming practice when creating programs that require the same or similar code to be executed many times.



Answer :

According to legend, one year in ancient times, ten SUNS appeared in the sky, baking the earth straight smoke, the sea dry, and the people could not see to live. This incident alarmed a hero named Houyi, he climbed to the top of the Kunlun mountain, the foot of the divine power, pulled the divine bow, and shot down nine excess SUNS. Houyi established the legendary magic, was respected and loved by the people, many scholars came to learn. Deceitful and deceitful Peng Meng also mixed in. Soon, Houyi married a beautiful and kind wife named Chang 'e. In addition to hunting, Houyi spent all day with his wife, and people admired this loving couple. One day, Houyi went to Kunlun Mountain to visit a friend and asked the Queen Mother who passed by, so he asked the Queen Mother for a package of fairy medicine. It is said that if you take this medicine, you can instantly ascend to heaven and become a fairy. However, Houyi could not bear to leave his wife, so he had to give the immortal medicine to Chang 'e for the time being. Chang 'e hid the medicine into the dresser's treasure box, only to be Peng Meng saw it. Three days later, Houyi and his disciples went out hunting, and Peng Meng, who had evil intentions, pretended to be sick and stayed. Shortly after Houyi led the men to leave, Peng Meng broke into the backyard of the inner house with a sword in hand and forced Chang 'e to hand over the fairy medicine. Chang 'e knew that she was no match for Peng Meng, and when she was in danger, she made a quick decision, turned around, opened the treasure box, took out the fairy medicine and swallowed it. Chang 'e swallowed the medicine, her body immediately floated off the ground, rushed out of the window, and flew to the sky. Because Chang 'e was concerned about her husband, she flew to the nearest moon from the earth to become a fairy. In the evening, Houyi returned home, and the maids cried about what had happened during the day. Houyi was shocked and angry, and drew his sword to kill the villain, but Peng Meng had already fled. Angry, Yi thumped his chest and shouted. Grieving Houyi looked up at the night sky and called his beloved wife's name. At this time he was surprised to find that today's moon is particularly bright and bright, and there is a shaking figure like Chang 'e. Houyi quickly sent someone to Chang 'e's favorite back garden, put on the incense table, put on her favorite honey and fresh fruits, and offered a remote sacrifice in the moon palace to cherish his Chang 'e. After the people heard the news that Chang 'e flew to the moon to become a fairy, they arranged incense tables on the night of the full moon and prayed for good luck and peace to the good Chang 'e. The Emperor of Heaven was also moved by Chang 'e and Houyi's spirit of sacrificing himself for the happiness of the villagers, and later, he named Houyi the general of Heaven and reunited them on the Mid-Autumn Festival. From then on, Chang 'e and Houyi lived a happy life in heaven.

Other Questions