Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
java-e001
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Juan Cristaldo
java-e001
Commits
f37b6958
Commit
f37b6958
authored
Sep 08, 2020
by
Juan Cristaldo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ejercicio 6 Realizado
parent
cff5be5a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
JavaApplication/src/javaapplication/Ejercicio06.java
+27
-0
No files found.
JavaApplication/src/javaapplication/Ejercicio06.java
0 → 100644
View file @
f37b6958
/*
* 6. Lee un número por teclado que pida el precio de un producto (puede tener
* decimales) y calcule el precio final con IVA. El IVA sera una constante que sera del 10%.
*/
package
javaapplication
;
import
java.util.Scanner
;
/**
*
* @author Juan Cristaldo
*/
public
class
Ejercicio06
{
static
final
double
IVA
=
0.1
;
//IVA constante
public
static
void
main
(
String
[]
args
)
{
Scanner
entrada
=
new
Scanner
(
System
.
in
);
System
.
out
.
println
(
"***Operaciones***"
);
System
.
out
.
println
(
"Ingrese el precio de un producto"
);
double
precio
=
entrada
.
nextDouble
();
double
precioFinal
=
precio
+
(
IVA
*
precio
);
System
.
out
.
println
(
"El precio final con IVA es: "
+
precioFinal
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment