URI Online Judge Solution 1008 Salary - Solution in C, C++, Java, Python and C# - Online Judge Solution

Latest

It is a free Online judges problems solution list. Here you can find UVA online Judge Solution, URI Online Judge Solution, Code Marshal Online Judge Solution, Spoz Online Judge Problems Solution

Friday, June 2, 2017

URI Online Judge Solution 1008 Salary - Solution in C, C++, Java, Python and C#

URI Online Judge Solution 1008 Salary - Solution in C, C++, Java, Python and C#


URI Online Judge Solution 1008 | Beginner
URI Problem Link - URI 1008 Problem Solution - https://www.urionlinejudge.com.br/judge/en/problems/view/1008

Problem Name: 1008 Salary
Problem Number : URI - 1008 Salary solution
Online Judge : URI Online Judge Solution
Category: Beginner
Solution Language : C,C plus plus, java, python, c#(c sharp)




URI Solution 1008 Salary Code in C:

# include <stdio.h>
int main(){
 
 int NUMBER,hours;
 float amount,SALARY;
 scanf("%d %d %f", &NUMBER, &hours, &amount);
 SALARY = hours * amount;
 printf("NUMBER = %d\n",NUMBER);
 printf("SALARY = U$ %0.2f\n", SALARY);//SALARY = U$ 4100.00 
 return 0;
}


URI Solution 1008 Salary Code / URI 1002 solution in CPP:

#include <cstdio>

int main()
{
 int a;
 int b;
 float c;

 scanf("%d", &a);
 scanf("%d", &b);
 scanf("%f", &c);

 printf("NUMBER = %d\n", a);
 printf("SALARY = U$ %.2f\n", b * c);

 return 0;
}

URI Solution 1008 Salary Code / URI 1008 Salary solution in Java: (Not tested)



import java.util.Scanner;
public class Main {
    public static void main(String[] args){

      int NUMBER,hours;
      float amount,SALARY;
      Scanner sc = new Scanner(System.in);
      
      NUMBER = sc.nextInt();
      hours = sc.nextInt();
      amount = sc.nextFloat();
      SALARY = hours * amount;

      System.out.printf("NUMBER = %d\n",NUMBER);
      System.out.printf("SALARY = U$ %0.2f\n", SALARY);//SALARY = U$ 4100.00 
 
  }
}


URI Solution 1008 Salary Code / URI 1008 Salary solution in  Python:

numfunc = int(input())
hrtrab = int(input())
valorhr = float(input())

salario = float(hrtrab * valorhr)

print("NUMBER = %d" %numfunc)
print("SALARY = U$ %0.2f" %salario)


URI Solution 1008 Salary Code / URI 1008 Salary solution in  C# (C Sharp):


Demonstration:

Just implement this in coding. Since having any problem just put a comment below. Thanks



Tags: URI Online Judge Solution, URI OJ Solution list, URI Problems Solution, URI solver, URI all problem solution list, URI salary code in C, URI 1008 salary code in C++, URI Area of a circle solution in C, URI solution, URI 1008 salary solution in C,URI 1008 salary solution in C++-CPP,URI 1008 salary solution in C# (C sharp),URI 1008 salary solution in Java,URI 1008 salary solution in Python,




No comments:

Post a Comment