Ask Question
4 September, 12:17

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.

+1
Answers (1)
  1. 4 September, 13:01
    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 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