Skip to content

Instantly share code, notes, and snippets.

View Lesliecalvillo's full-sized avatar

Lesliecalvillo

View GitHub Profile
@Lesliecalvillo
Lesliecalvillo / leslie.cpp
Created June 2, 2021 00:57
POO Act7 Figura rectangulo c++ leslie.h
#ifndef rectangulo_h
#define rectangulo_h
class Figura{
public:// Atributos
double A;
double b;
double h;
double P;
@Lesliecalvillo
Lesliecalvillo / leslie.cpp
Created June 2, 2021 00:59
POO Act7 Figura rectangulo c++ leslie.cpp
#include <iostream>
using namespace std;
#include "leslie.h"
// Metodos
void Figura::Calcula_Area()
{
A=b*h;
cout<<"leslie.cpp --> Area Rectangulo = "<<A<<endl;
@Lesliecalvillo
Lesliecalvillo / main.cpp
Created June 9, 2021 01:59
POO Act9 Clase Persona
#include <iostream>
using namespace std;
#include "leslie.h"
int main()
{ // crear objeto
Salario Sueldo;
// Llamar Metodo
@Lesliecalvillo
Lesliecalvillo / leslie.h
Created June 9, 2021 02:02
POO Act9 Clase Persona
#ifndef Salario_h
#define Salario_h_h
class Salario{
public://Atributos
double K;
double H;
double S;
@Lesliecalvillo
Lesliecalvillo / leslie.cpp
Created June 9, 2021 02:03
POO Act9 Clase Persona
#include <iostream>
using namespace std;
#include "leslie.h"
void Salario::Calcular_S()
{
cout<<"Horas Trabajadas ?"<<endl;
cin>>S;
cout<<"Pago Por Hora ?"<<endl;
@Lesliecalvillo
Lesliecalvillo / main.dart
Created June 10, 2021 23:58
POO Act10 soy programador
import 'package:flutter/material.dart';
void main() {
runApp(
MaterialApp(
debugShowCheckedModeBanner: false,
home: Scaffold(
backgroundColor: Colors.red,
appBar: AppBar(
title: Text('Leslie es programadora uwu'),
@Lesliecalvillo
Lesliecalvillo / main.cpp
Created June 15, 2021 04:09
POO Act12 clase figura hipotenusa
#include <iostream>
#include<math.h>
using namespace std;
#include "leslie.h"
int main()
{
hipotenuza objh;
objh.cargar_datos();
@Lesliecalvillo
Lesliecalvillo / leslie.h
Created June 15, 2021 04:11
POO Act12 clase figura hipotenusa
#ifndef leslie_h
#define leslie_h_h
class figura{
public:
double A, B, h;
void cargar_datos();
double cuadrado(double x);
};//fin de figura
@Lesliecalvillo
Lesliecalvillo / leslie.cpp
Created June 15, 2021 04:12
POO Act12 clase figura hipotenusa
#include <iostream>
#include<math.h>
using namespace std;
#include "leslie.h"
void figura::cargar_datos(){
cout<<"ingrese valor de a= "<<endl;cin>>A;
cout<<"ingrese valor de b= "<<endl;cin>>B;
}//fin de cargar datos
@Lesliecalvillo
Lesliecalvillo / main.cpp
Created June 16, 2021 03:19
POO Act13 clase Animal perro
#include <iostream>
using namespace std;
#include "leslie.h"
int main()
{
Perro Punky;
Punky.cargar_datos();
Punky.VerDatos();