This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Faça um algoritmo, em pseudocódigo, que leia o valor do imóvel e valor do carro de uma habitante, calcule e mostre: | |
º IPTU: 1% do valor do imóvel | |
º IPVA: 3% do valor do carro | |
º O valor do total dos impostos | |
Exemplo de uso: | |
Qual é o valor do imóvel? 250000 | |
Qual é o valor do carro? 128000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Method Overloading | |
*/ | |
#include <iostream> | |
using namespace std; | |
class Soma | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
class Pessoa | |
{ | |
public: | |
int calcularVendas () | |
{ | |
int valorUnitario = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#polymorphism-0002.py | |
class Base: | |
def show ( self ): | |
print ( 'Classe Base' ) | |
class Derivada ( Base ): | |
def show ( self ): | |
print ( 'Classe Derivada' ) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <math.h> | |
double func ( double x ); | |
double der ( double x ); | |
int main ( void ) | |
{ | |
double x = 3.0; | |
printf ( "Sua derivada no ponto %f é %.10f\n", x, der ( x )); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 20161025 | |
// Gabriel Cesar - [email protected] | |
// ufopa | |
#include <iostream> | |
#include <string> | |
using namespace std; | |
class GradeBook |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
// | |
int main ( void ) | |
{ | |
int x; | |
int y; | |
int a; | |
int c = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import math | |
x = int ( input ( 'Número de múltiplos: ' )) | |
y = int ( input ( 'Valor a ser multiplicado: ' )) | |
a = x * y | |
c = 0 | |
while ( c < a ): # numero de multiplos |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* q-04.c | |
*/ | |
#include <stdio.h> | |
int main ( void ) | |
{ | |
int dia, mes, ano; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* t | |
*/ | |
#include <stdio.h> | |
int main() | |
{ |
NewerOlder