Computer Science, asked by adharshshello, 3 months ago

i need java program answer of this . (use if - else)

what i did:
import java.util.*;

class electronics
{
Scanner sc=new Scanner(System.in);
public void main()
{ int pa;
float dis,ap;
System.out.println("Enter the purchased amount");
pa=sc.nextInt();
if(pa>=20000)
{
dis=pa/20000*25;
ap=pa-dis;
System.out.println("Discount of "+dis);
System.out.println("the amount payable will be"+ap);
System.out.println("Gift of an Ipod");
}

else if((pa =15000))
{
dis=pa/20000*20; //discount calculation
ap=pa-dis; // amount payable calculation
System.out.println("discount of"+dis);
System.out.println("the amount payable will be"+ap);
System.out.println("gift of a wrist watch");
}
else if(pa =12000)
{
dis=pa/20000*16; //discount calculation
ap=pa-dis; // amount payable calculation
System.out.println("discount of "+dis);
System.out.println("the amount payable will be"+ap);
System.out.println("gift of a wall clock");
}
else if(pa =5000)
{
dis=pa/20000*11; //discount calculation
ap=pa-dis; // amount payable calculation
System.out.println("Discount of "+dis);
System.out.println("the amount payable will be"+ap);
System.out.println("gift of a digital table clock");
}
else
{
dis=pa/20000*5; //discount calculation
ap=pa-dis; // amount payable calculation
System.out.println("discount of "+dis);
System.out.println("the amount payable will be"+ap);
System.out.println("gift of a pen set");
}
}
}

HELP ME WITH IT...

Attachments:

Answers

Answered by yasar777
4

Answer:

Surface Area of Cuboid is =

2(lb + lh + bh)

By surface area of a cuboid we mean the total surface area.

The sum of the areas of 4 vertical faces of a cuboid is called its lateral surface area.

The lateral surface area or the area of the four walls of the cuboid .

Area of the four walls = 2 (l +b) h

==========================================================

Solution:

Given;

Length of wall (l)= 15 m, Breadth of wall (b)= 10 m Height of wall (h) = 7 m

Total area to be painted= area of 4 walls + area of ceiling

= 2(l+b)h + lb

= 2(15+10)7 + 15×10

= 2×25×7+ 150

=50× 7+150= 350+ 150=500

Total area to be painted=500m²

Given 100m² area can be painted from each can.

Number of cans Required=

Area of hall/ area of 1 can

= 500/100= 5

Hence, 5 cans are required to paint the room.

==========================================================

Hope this will help you...

arrenhasyd and 464 more users found this answer helpful

THANKS

292

4.7

(172 votes)

Log in to add comment

Answer

3.8/5

49

litikaswani

Ambitious

24 answers

1.4K people helped

cans

You have to use the open cuboid formula

=2h(l+b) +lb

=2*7(15+10)+ (15)(10)

=14*25+150

=490

No. of cans required = 490/100

= 4.90 cans

rosariomividaa3 and 103 more users found this answer helpful

THANKS

49

3.8

(54 votes)

Log in to add comment

Still have questions?

FIND MORE ANSWERS

ASK YOUR QUESTION

New questions in Math

Ani have a piece of paper in the shape of sector of circle of radius 14cm with sector angle 45°. He had folded it along the length of arc to form a co …

A book costs ₹1 plus half of its price. How much does it cost ?

If 21 y 5 is a multiple of 9 then y isIf 24 x is a multiple of 3 then x isIf 11 Z is a multiple of 9 then z isIf 49 yis a multiple of 10 then y is1 …

3. Write the following using a letter - the sum of a certain number and 64. Write the following using a letter- The difference obtained by subtracting …

what is 6 X 9 + 6 + 9 = ?

Write 22y +5x = 7 in standard form and find a, b, c

If the altitude of triangle is doubled, then the area of it is __________.

A number when devided by 119 leaves 19 as remainder . If the number is devided by 17 then the remainder will be

(x - y)2 = x2 - 2xy + y2plz give me step by step solution

On a graph paper, draw a triangle ABC, with vertices at ( 1, 1), ( 3, 1 ) and ( 3, 3 ), and its image after a reflection in x = 5 followed by a reflec …

Previous

Next


adharshshello: HOPE U GET A DOCTOR SOON
yasar777: yeah i need one
Similar questions