client-calcule 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'client-calcule'
4
+ puts Client.meniu()
@@ -4,6 +4,7 @@ class Client
4
4
  def self.meniu()
5
5
  k = false
6
6
  while not k
7
+ system "clear"
7
8
  puts <<MENIU
8
9
  Alege optiunile:
9
10
 
@@ -1,35 +1,47 @@
1
1
  module Calcul
2
2
 
3
3
  def Calcul.proratare()
4
-
4
+
5
+ system "clear"
6
+ puts "Calcul PRORATARE:\n"
5
7
  print "Dati data in care si-a facut clientul abonamentul:"
6
8
  a = STDIN.gets.to_i
7
9
  print "Dati valoarea abonamentului:"
8
10
  b = STDIN.gets.to_i
9
11
  c = (b/30.0)*(30-a)
10
- puts "Clientul mai are de platit #{c} lei"
12
+ puts "Clientul mai are de platit #{c} lei\n"
13
+ puts "Apasati orice tasta pt a continua."
14
+ STDIN.gets
11
15
 
12
16
  end
13
17
 
14
18
  def Calcul.tva()
15
19
 
20
+ system "clear"
21
+ puts "Calcul TVA:\n"
16
22
  print "Introduceti suma pt care vreti sa calculati TVA-ul"
17
23
  a = STDIN.gets.to_i
18
24
  tv = a*1.24
19
25
  b = tv - a
20
26
  puts "#{a}+TVA = #{tv}"
21
- puts "TVA-ul din #{a} este #{b}"
27
+ puts "TVA-ul din #{a} este #{b}\n"
28
+ puts "Apasati orice tasta pt a continua."
29
+ STDIN.gets
22
30
 
23
31
  end
24
32
 
25
33
  def Calcul.abo()
26
34
 
35
+ system "clear"
36
+ puts "Calcul valoare abonament:\n"
27
37
  print "Introduceti valoarea abonamentului:"
28
38
  a = STDIN.gets.to_i
29
39
  print "Introduceti durata contractului in luni:"
30
40
  b = STDIN.gets.to_i
31
41
  c = b*a
32
- puts "Valoarea totala a abonamentului este : #{c}"
42
+ puts "Valoarea totala a abonamentului este : #{c}\n"
43
+ puts "Apasati orice tasta pt a continua:"
44
+ STDIN.gets
33
45
 
34
46
  end
35
47
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: client-calcule
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,12 +13,14 @@ date: 2014-02-08 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Program pentru calcularea diverselor sume pt contabilitate.
15
15
  email: ionut.pavlencu@gmail.com
16
- executables: []
16
+ executables:
17
+ - client-calcule
17
18
  extensions: []
18
19
  extra_rdoc_files: []
19
20
  files:
20
21
  - lib/client-calcule.rb
21
22
  - lib/client-calcule/calcul.rb
23
+ - bin/client-calcule
22
24
  homepage: http://rubygems.org/gems/client
23
25
  licenses:
24
26
  - MIT