Skip to content

Commit

Permalink
Ref #3 | Adiciona Resolução de Henrique
Browse files Browse the repository at this point in the history
  • Loading branch information
HenriqueMariano25 committed Aug 28, 2019
1 parent abd477a commit 20be57c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Capitulo_6/4/henrique_mariano.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
puts("Escolha o tipo do serviço")
puts("(1)Projeto (2)Auditoria")
tipo_servico = gets.to_i

puts "Numero de dias"
dias = gets.to_i

puts "Numero de viagens realizadas"
viagens =gets.to_i

if tipo_servico == 1
puts "Valor total: #{dias*200 + viagens*1000}"
elsif tipo_servico == 2
puts "Valor total: #{dias*100 + viagens*1500}"
else
puts "Valor de serviço incorreto"
end

0 comments on commit 20be57c

Please sign in to comment.