Question: Question 1: Complete the following: (5 points) a) Create and initialize a double variable with value 10.0. b) Declare a double array named numbers with

 Question 1: Complete the following: (5 points) a) Create and initialize

Question 1: Complete the following: (5 points) a) Create and initialize a double variable with value 10.0. b) Declare a double array named numbers with a size of 5 . c) Initialize the numbers array with values: 10.0,20.4,30.8,40.0,50.6. d) Write a loop to print numbers from 1 to 5 . e) Write an if-else statement to check if a given number (variable value) is positive or negative and print the result

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!