Question

* Assign the following variables with appropriate datatype and value: *VARIABLE NAME     VALUE *nameOfIngredient           " "...

* Assign the following variables with appropriate datatype and value:

*VARIABLE NAME     VALUE

*nameOfIngredient           " "

*numberOfCups         0

*numberCaloriesPerCup   0

*totalCalories                   0.0

Assign the variables with the appropriate data type and value as shown in the table below:

Variable Name Type of Value Stored

nameOfIngredient    Text

numberOfCups                      Decimal numbers (e.g., ½ a cup)

numberOfCaloriesPerCup Whole

numberstotalCalories          Decimal numbers

0 0
Add a comment Improve this question Transcribed image text
Answer #1

* Assign the following variables with appropriate datatype and value:

*VARIABLE NAME Datatype VALUE

*nameOfIngredient String (String) /String [ ] Rice (any other ingredient name) / Rice,Salt,Oil

*numberOfCups Double(double)     5.50

*numberCaloriesPerCup integer(int) 250

*totalCalories                   Double (double) 2500.00

Note :

for nameOfIngredient(s) ,for multiple ingredients can String array ie String [ ].

Add a comment
Know the answer?
Add Answer to:
* Assign the following variables with appropriate datatype and value: *VARIABLE NAME     VALUE *nameOfIngredient           " "...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • omplete the following table by identifying the appropriate corresponding variables used in the equation. Variable Value...

    omplete the following table by identifying the appropriate corresponding variables used in the equation. Variable Value $70.00 $1,000 7.1250% Unknown Variable Name Bond's semiannual coupon payment Semiannual required return Based on this equation and the data, it is reasonable greater than $1,000. to expect that Sophia's potential bond investment is currenty exhibiting an intrinsic value Now, consider the situation in which Sophia wants to earn a return of 17%, but the bond being considered for purchase offers a coupon rate...

  • JAVA QUESTION 16 Write and submit the java source for the following class specification: The name...

    JAVA QUESTION 16 Write and submit the java source for the following class specification: The name of the class is Question_16 Class Question_16 has 3 instance variables: name of type String, age of type int and height of type double. Class Question_16 has the following methods: print - outputs the data values stored in the instance variables with the appropriate label setName - method to set the name setAge - method to set the age setHeight - method to set...

  • Problems: 1. Write a program to define the following variables, assign them values, and print their...

    Problems: 1. Write a program to define the following variables, assign them values, and print their values on screen: Integer x = 20, Float y = 40.45 Double z = 91.51e+5 Char w = A • • For the integer variable x, you need to print it in decimal notations, octal notations and hexadecimal notation. For the double variable y, you need to print it in double notations and scientific notation. 2. Write a program with the following three parts:...

  • Step 1 Develop the following class: Class Name: Bag Access Modifier: public Instance variables Name: name...

    Step 1 Develop the following class: Class Name: Bag Access Modifier: public Instance variables Name: name Access modifier: private Data Type: String Name: currentWeight Access modifier: private Data Type: double Name: maximumWeight Access modifier: private Data Type: double Constructors Name: Bag Access modifier: public Parameters: none (default constructor) Task: sets the value of the instance variable name to the empty string sets the value of the instance variable currentWeight to 0.0 sets the value of the instance variable maximumWeight to...

  • If a variable contains _____, it means that the variable does not exist. a null value...

    If a variable contains _____, it means that the variable does not exist. a null value void empty string 0 Question 2 Which of the following is required as the second argument of the TryParse() method? the name of the variable to parse the data type the out keyword the Boolean value Question 3 You must use the action attribute with a Web form. False No answer text provided. True No answer text provided. Question 4 Whether or not data...

  • Step 1 Develop the following class: Class Name: CollegeDegree Access Modifier: public Instance variables Name: major...

    Step 1 Develop the following class: Class Name: CollegeDegree Access Modifier: public Instance variables Name: major Access modifier: private Data type: String Name: numberOfCourses Access modifier: private Data type: int Name: courseNameArray Access modifier: private Data type: String [ ] Name: courseCreditArray Access modifier: private Data type: int [ ] Static variables Name: maximumNumberOfCourses Access modifier: private Data type: int Initial Value: 40 Constructor Name: CollegeDegree Access modifier: public Parameters: none (default constructor) Task: sets major to the empty string...

  • Create a java project. Create a class called cls2DarrayProcessor.java. with the following: Reads numbers from a...

    Create a java project. Create a class called cls2DarrayProcessor.java. with the following: Reads numbers from a pre-defined text file. A: Text file name should be data.txt B: Text file should be in the same workspace directory of your project's folder C: Text file name should be STORED in a String and called: String strFile ='./data.txt' Defines a 2-D array of integers with dimensions of 5 rows by 5 columns. Inserts the data from the text file to the 2-D array...

  • The following is a contingency table between the variable Risk Level and Fund Type from the...

    The following is a contingency table between the variable Risk Level and Fund Type from the dataset Retirement Fund. Fund Type Risk Level Growth Value Low 64 84 152 72 Average High 91 17 Calculate the row percentage between "Low" and "Value", shown with question mark in the table below. Risk Level Fund Type Growth Value ?? % Total Low 100% 100% Average High 100% Please write your answer as a whole number (e.g. enter 12% for 12.34%)

  • Using C++, Write a class named Employee that has the following member variables: name. A string...

    Using C++, Write a class named Employee that has the following member variables: name. A string that holds the employee's name. idNumber. An int variable that holds the employee's ID number. department. A string that holds the name of the department where the employee works. position. A string that holds the employee's job title. The class should have the following constructors: A constructor that accepts the following values as arguments and assigns them to the appropriate member variables: employee's name,...

  • Exercise 6-3 Using the appropriate interest table, answer each of the following questions. (Each case is...

    Exercise 6-3 Using the appropriate interest table, answer each of the following questions. (Each case is independent of the others.) Click here to view factor tables What is the future value of $8,160 at the end of 7 periods at 8% compounded interest? (Round factor values to 5 decimal places, e.g. 1.25124 and final answer to 0 decimal places, e.g. 458,581.) The future value $enter the future value in dollars rounded to 0 decimal places LINK TO TEXT LINK TO...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT