This document contains code to calculate the value of a person's weight in gold. It prompts the user to enter their weight in pounds, converts it to troy ounces using a conversion factor, multiplies it by the price of gold per ounce to get a value, and prints out a message stating their weight in gold is worth that monetary value.
This document contains code to calculate the value of a person's weight in gold. It prompts the user to enter their weight in pounds, converts it to troy ounces using a conversion factor, multiplies it by the price of gold per ounce to get a value, and prints out a message stating their weight in gold is worth that monetary value.
Copyright:
Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online from Scribd
This document contains code to calculate the value of a person's weight in gold. It prompts the user to enter their weight in pounds, converts it to troy ounces using a conversion factor, multiplies it by the price of gold per ounce to get a value, and prints out a message stating their weight in gold is worth that monetary value.
Copyright:
Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online from Scribd