Ask Question
3 August, 14:23

What data types would you use for the following fields: Price, phone number, street address, Zip code, and notes about product usage?

+2
Answers (1)
  1. 3 August, 17:41
    0
    Answer: Datatypes are used for the classification of the data which can be in the form of character, float, integer etc. The mentioned elements will have the following data type:-

    Price: - price of any article will be a numerous value and also can be in decimal form. So, it will have the float data type.

    Phone Number - it is a numerical value and cannot have decimal value. Thus it be a integer value, the data type will be "int".

    Street address - The value will be in alphabetic order thus the datatype will be "string"Zip code - It is a numerical value with no presences of decimal. So, the datatype will be " int".

    Noted about usage of product: - The list of product can have name of product, product price, product type as well. Thus for product type data type will be "string", product price will be in "float" and product name will be in "string "form
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “What data types would you use for the following fields: Price, phone number, street address, Zip code, and notes about product usage? ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers