Ask Question
1 October, 05:24

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. 1 October, 06:45
    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?
Get 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 there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers