Ask Question

Imagine you are writing a personal fitness program that stores the user's age, gender, height (in feet or meters), and weight (to the nearest pound or kilogram). Declare variables with the appropriate names and types to hold this information. Write a complete variable declaration statement with the type, the variable name, and a semicolon.

+2
Answers (1)
  1. 31 May, 04:49
    0
    Following are the declaration with the datatypes

    int age; / / variable age of int types

    boolean gender; / / variable gender of boolean type

    double height; / / variable height of double types

    int weight; / / variable weight of int types

    Explanation:

    Here we writing a personal program that store the age, gender, height, weight.

    age of type integer because age are in integer value.

    gender is type of boolean because boolean is return true or false.

    height is type of double because height may be in floating value.

    weight is type of integer because weight are in integer value.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Imagine you are writing a personal fitness program that stores the user's age, gender, height (in feet or meters), and weight (to the ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers