Computer Science, asked by lucky2314A, 7 months ago

1.Write a program to accept two integers from the keyboard thrw scanner class to calculate and print the difference.

2.Write a program to accept your fav. Hero name and print the same.

3.Write a program to principle amount , time and rate to calculate print the simple interest.

4. Write a program to accept quantity and rate to calculate and print the bill amount​

Answers

Answered by vyshnav16
1

Explanation:

This chapter explains the basic syntaxes of the Java programming language. I shall assume that you have written some simple Java programs. Otherwise, read "Introduction To Java Programming for First-time Programmers".

To be proficient in a programming language, you need to master two things:

The syntax of the programming language: Not too difficult to learn a small set of keywords and syntaxes. For examples, JDK 1.8 has 48 keywords; C11 has 44, and C++11 has 73.

The Application Program Interface (API) libraries associated with the language: You don’t want to write everything from scratch yourself. Instead, you can re-use the available code in the library. Learning library could be difficult as it is really huge, evolving and could take on its own life as another programming language.

The first few sections are a bit boring, as I have to explain the basic concepts with some details.

You may also try the "Exercises on Java Basics".

Answered by mayureshbelamakar190
0
1)
class pro
{
public static void main (int a,int b)
{
int sub;
sub = a-b;
System.out.println(“the difference is” + sub);
}
}






2) sorry I don’t know the answer





3)class pro
{
public static void main (int amt,int time,int rate)
{
Int SI;
SI = amt*rate*time/100;
System.out.println(“The Simple Intrest is” + SI;
}
}




4)
class pro;
{
public static void main(int r,int q)
{
int a;
a= r*q;
System.out.println(“The Final amount is” + a);
}
}
Hope it helps you
Please Mark me as the brainliest
Happy Learning :D

Similar questions