Answer:
Option (c)
Explanation:
In java language this type of declaration is possible. Full declaration would be:
int[] ar=new int[n]; //where n is size of array to be passed.
But, this is not possible in c,c++. In java, int[] ar, int ar[] ,int *ar all are creating an array. Array is a data structure which stores elements of similar data type and in a contiguous memory. Array can be initialized at the time of declaration as well or it can be read from user with the help of for loop as well. In c,c++ array can be initialized by int arr[] or int *ar only .
Answer:
<h2><u>See Explanation</u></h2>
Explanation:
Computer is not an acronym, it is a word derived from a word "compute" which means to calculate. So, in simple words you can say that computer is an electronic device which is used for fast calculation.
Answer:
import java.util.Scanner;
public class ANot {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.println("Please Enter the number of fuel gallons in the car's tank: ");
int numGallons = input.nextInt();
System.out.print("What is the fuel efficiency of your car in miles/gallon ");
double fuelEffi = input.nextDouble();
System.out.print("How much is the price per gallon: ");
double price = input.nextDouble();
double milesCanGo = fuelEffi*numGallons;
double numOfGallons100Miles = 100/fuelEffi;
System.out.println("The cost per 100 miles is "+numOfGallons100Miles*price);
System.out.println("Your car can go as far as "+milesCanGo+" miles with the current fuel " +
"in your tank");
}
}
Explanation:
Using Java programming language;
- Import the Scanner class to receive user input
- Prompt user to input numofGallons, fuelEfficiency and pricePerGallon
- Calculate the miles the car can go with the formula milesCanGo = numofGallons X fuelEfficiency
- Calculate the number of gallons for 100 miles distance (100/fuelEfficiency)
- The cost of driving 100 miles is (100/fuelEfficiency)*pricePerGallon
- Output cost for 100 miles and how far the car can go.
Answer: True
Explanation: Requirement analysis is the activity that gathers the information about the needs of the user,tools needed, feasibility of the software system etc parameters.After this process the proper guidance is provided by the team software process.
Team software process generates the framework for the processing and working of the software and provide it to the engineers and manager to carry out the work of designing the software.Thus , the given statement is true.
You could learn C++ and use the Open GL library. Open GL is a library designed to make 2D and 3D applications. And use another library called <span>Simple and Fast Multimedia Library</span> to create the window itself.
There are multiple tutorials that teach C++ and OpenGL. There are other graphics libraries, but Open GL is the most popular.