Write a declaration statement to declare that the variable count will be used to
ID: 3640338 • Letter: W
Question
Write a declaration statement to declare that the variable count will be used to store an integer.Write a declaration statement to declare that the variable grade will be used to store a floating point number.
Write a declaration statement to declare that the variable yield will be used to store a double precision number.
Write a declaration statement to declare that the variable initial will be used to store a character.
Write declaration statement for the following :
num1, num2, num3 used to store integer numbers
grade1, grade2, grade3 used to store floating point numbers
ch, let1, let2, let3 used to store character type
Re-write the following declaration statements as three individual declarations:
int month, day = 30, year;
double hours, rate, otime = 15.62;
float price, amount, taxes;
char in_key, ch, choice = 'f' ;
Explanation / Answer
int count;
float grade ;
double yield;
char intial ;
int num1, num2, num3;
float grade1, grade2, grade3;
char ch, let1, let2, let3;
int month;
int day = 30;
int year;
double hours;
double rate;
double otime = 15.62;
float price;
float amount;
float taxes;
char in_key;
chat ch;
char choice = 'f' ;
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.