1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
yaroslaw [1]
2 years ago
13

"All data types are keywords but all keywords are not data types", justify this statement.​

Engineering
1 answer:
STALIN [3.7K]2 years ago
5 0
<h3>Hey Mate Here Is Your Answer</h3>

Keywords Are Reserved Words Which Are Not Use As Normal Cases But Used For Special Purpose In Our Program whereas, Data Type Tells The Compiler And Interpreter How The Program Is Going To Be Executed And Can Be Used At Every Cases.

<h3>Hope This Helps You ❤️</h3>
You might be interested in
A water-filled manometer is used to measure the pressure in an air-filled tank. One leg of the manometer is open to atmosphere.
ddd [48]

Answer:

P = 150.335\,kPa (Option B)

Explanation:

The absolute pressure of the air-filled tank is:

P = 101.3\,kPa + \left(1000\,\frac{kg}{m^{3}} \right)\cdot \left(9.807\,\frac{kg}{m^{3}} \right)\cdot (5\,m)\cdot \left(\frac{1\,kPa}{1000\,Pa} \right)

P = 150.335\,kPa

4 0
3 years ago
Indicates the design of the building and<br> adjoining areas
Lelu [443]

Answer:

Architectural Plan

Explanation:

4 0
3 years ago
There are two identical oil tanks. The level of oil in Tank A is 12 ft and is drained at the rate of 0.5 ft/min. Tank B contains
Luba_88 [7]

Answer:

  16 minutes

Explanation:

This is an example of a class of problems in which two quantities start with different initial values and change at different rates. In such problems, the rates of change are generally ones that cause the values to converge.

The question usually asks when the values will be the same. The generic answer is, "when the difference in rates makes up the difference in initial values."

Here the tanks differ in initial fill height by 12 -8 = 4 ft. The rates of change differ by 0.5 -0.25 = 0.25 ft/min. The more filled tank is draining faster (important), so the fill heights will converge after ...

  (4 ft)/(0.25 ft/min) = 16 min

The level in the two tanks will be the same after 16 minutes.

__

<em>Additional comment</em>

The oil levels at that time will be 4 ft.

You can write two equations for height:

  y = 12 -0.5x . . . . . . . height in feet after x minutes (tank A)

  y = 8 -0.25x . . . . . .  height in feet after x minutes (tank B)

These will be equal when ...

  y = y

  12 -0.5x = 8 -0.25x

  4 = 0.25x . . . . . . . . . . add 0.5x -8

  16 = x . . . . . . . . . . . . multiply by 4 . . . . time to equal height

The graph shows when the tanks will have equal heights and when they will be drained.

4 0
2 years ago
Which of the following is NOT a breach of Netiquette?
alexandr402 [8]

Answer:

I need some more point and i do not understand your question

Explanation:

7 0
3 years ago
This assignment is designed to test your understanding of graphical user interface components and Event Driven programming in Ja
lys-0071 [83]

Answer:

Java program is given below

Explanation:

JavaPadGUI.java

package javapad.gui;

import java.awt.BorderLayout;

import java.awt.Container;

import java.awt.Dimension;

import java.awt.event.ActionEvent;

import java.awt.event.ActionListener;

import java.awt.event.WindowAdapter;

import java.awt.event.WindowEvent;

import java.io.File;

import java.io.FileNotFoundException;

import java.io.PrintWriter;

import java.util.Scanner;

import javax.swing.JButton;

import javax.swing.JFrame;

import javax.swing.JLabel;

import javax.swing.JOptionPane;

import javax.swing.JPanel;

import javax.swing.JScrollPane;

import javax.swing.JTextArea;

public class JavaPadGUI extends JFrame implements ActionListener{

  //constants

  private static final String TITLE = "Macrosoft JavaPad XP";

  private static final String SLOGAN = "Macrosoft: Resistance is futile";

 

  //button names

  private static final String NEW = "New";

  private static final String LOAD = "Load";

  private static final String SAVE = "Save";

  private static final String QUIT = "Quit";

 

  private static final String FILENAME = "hardcode.txt";

  //messages

 

  private static final String QUIT_MSG = "Quitting, Save?";

  private static final String LOAD_ERR = "Could not access file " + FILENAME;

 

 

  //fields

  private JTextArea txtContent;

  private JButton butNew, butLoad, butSave, butQuit;

 

  public JavaPadGUI()

  {

      super(TITLE);

      createUI();

      setSize(new Dimension(400, 300));

      setDefaultCloseOperation(EXIT_ON_CLOSE);

         

  }

 

  private void createUI()

  {

      Container c = getContentPane();

      c.setLayout(new BorderLayout(30,30));

     

      //create the buttons panel

      JPanel butPanel = new JPanel();

      butPanel.add(butNew = new JButton(NEW));

      butPanel.add(butLoad = new JButton(LOAD));

      butPanel.add(butSave = new JButton(SAVE));

      butPanel.add(butQuit = new JButton(QUIT));

     

      //set command names for the buttons, these will be when button is clicked

      butNew.setActionCommand(NEW);

      butLoad.setActionCommand(LOAD);

      butSave.setActionCommand(SAVE);

      butQuit.setActionCommand(QUIT);

     

      JPanel sloganPanel = new JPanel();

      sloganPanel.add(new JLabel(SLOGAN));

     

      //create textarea with scrollbar

      txtContent = new JTextArea(15, 25);

      txtContent.setLineWrap(true);

         

      JScrollPane scroll = new JScrollPane(txtContent);

     

      //now add all components

      c.add(butPanel, BorderLayout.NORTH);

      c.add(scroll, BorderLayout.CENTER);

      c.add(sloganPanel, BorderLayout.SOUTH);

     

     

      //set the actionlistner to buttons to handle button click event

      butNew.addActionListener(this);

      butLoad.addActionListener(this);

      butSave.addActionListener(this);

      butQuit.addActionListener(this);

     

  }

  public void actionPerformed(ActionEvent e)

  {

      String cmd = e.getActionCommand();

      if(cmd.equals(NEW))

          txtContent.setText("");

      else if (cmd.equals(LOAD))

          load();

      else if(cmd.equals(SAVE))

          save();

      else if (cmd.equals(QUIT))

          quit();

  }

  private void quit()

  {

      int option = JOptionPane.showConfirmDialog(this, QUIT_MSG);

      if(option == JOptionPane.YES_OPTION)

      {

          save();

      }

     

      System.exit(0);

  }

 

  private void save()

  {

      try {

          PrintWriter w = new PrintWriter(new File(FILENAME));

          w.write(txtContent.getText());

          w.close();

      } catch (FileNotFoundException e) {

          JOptionPane.showMessageDialog(this,"I/O Error", LOAD_ERR, JOptionPane.ERROR_MESSAGE);

      }

             

  }

  private void load()

  {

      try {

          Scanner s = new Scanner(new File(FILENAME));

          String str = "";

          while(s.hasNextLine())

              str += s.nextLine();

          txtContent.setText(str);

          s.close();

      } catch (FileNotFoundException e) {

          JOptionPane.showMessageDialog(this, LOAD_ERR, "I/O Error",JOptionPane.ERROR_MESSAGE);

      }

     

  }

}

RunJavaPad.java

package javapad;

import javapad.gui.JavaPadGUI;

public class RunJavaPad {

  public static void main(String[] args) {

      JavaPadGUI gui = new JavaPadGUI();

      gui.setVisible(true);

  }

}

7 0
3 years ago
Other questions:
  • Refers to the capability to keep moving forward on a specified grade.
    5·1 answer
  • An insulated piston–cylinder device initially contains 1 m3 of air at 120 kPa and 17°C. Air is now heated for 15 min by a 200-W
    7·1 answer
  • [10] Create a program called SelectionSort.java that implements the Selection Sort algorithm (The Art of Computer Programming -
    10·1 answer
  • A field sample of an unconfined aquifer is packed in a test cylinder. The length and diameter of the cylinder are 50 cm and 6 cm
    9·1 answer
  • Write a program that asks the user to input a vector of integers of arbitrary length. Then, using a for-end loop the program exa
    13·1 answer
  • In sleep, what does REM stand for?
    10·1 answer
  • Help me i need this bad :)
    14·1 answer
  • HELP ASSAPPP
    15·1 answer
  • What is the difference between a modular home and a manufactured home?
    5·1 answer
  • Is a diesel truck less expensive to drive than a gas truck?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!