Car Insurance Quotes PA Hire php programmers Best social media platforms for business Social media platforms Business finance group motorcycle lawyer los angeles CAR DONATE Service business software Social media strategies Met Auto car insurance quotes mn CHEAP CAR INSURANCE FOR LADIES diagnosed with mesothelioma Online casino los angeles auto accident attorneys HOLLAND MICHIGAN COLLEGE Make money online Australia Asbestos Lawyers buyer of structured settlement annuity meso lawyer Social media examiner asbestos lung cancer Casino Seo companies PSYCHIC FOR FREE DONATE YOUR CAR FOR KIDS car accident lawyer san bernardino supportpeachtreecom Donate car for tax credit chicago hair laser removal Futuristic Architecture Cheap Car Insurance in Virginia DONATING USED CARS TO CHARITY structured settlement brokers michigan motorcycle accident lawyer Live casino auto accident attorney Torrance Webex Costs Mobile casino Casino reviews injury lawyer houston tx Dedicated Hosting Dedicated Server Hosting colorado auto accident attorney mesothelioma claim Online motor insurance quotes structured settlemen mesothelioma information Annuity Settlements AUTO ACCIDENT ATTORNEY best criminal lawyer in arizona car accident lawyers structured annuity settlement Tech school How to Donate A Car in California online motor insurance quotes DUI lawyer Cheap domain registration hosting DALLAS MESOTHELIOMA ATTORNEYS Register free domains WEBEX COSTS boulder personal injury lawyers Hire php developers Social media tools philadelphia mesothelioma lawyer truck accident attorney texas automobile accident attorney EMAIL BULK SERVICE selling annuity Online Stock Trading Donate your car Sacramento motorcycle accident attorney sacramento Learning adobe illustrator MOTOR REPLACEMENTS New social media platforms Dwi lawyer Car insurance quotes MN Low credit line credit cards DONATE CARS IN MA hair removal washington dc city college in miami Donate Cars in MA Seo company DONATE CARS ILLINOIS Business management software Criminal lawyer ashely madis Criminal defense lawyer life insurance quotes sell your structured settlement payments Hard drive data recovery services Php programmers for hire Hire php developer tennessee mesothelioma lawyer workplace accident attorney Bankruptcy lawyer Computer science classes online Php programmers best accident attorneys Donate Your Car Sacramento Forensics Online Course Social media platforms for business DONATE YOUR CAR FOR MONEY Car Insurance in South Dakota Mortgage Adviser CAR INSURANCE QUOTES UTAH WordPress theme designers Auto Mobile Shipping Quote mesothelioma symptoms Personal Injury Law Firm CAR INSURANCE QUOTES MN structured settlement cash out virtual data rooms ASBESTOS LAWYERS Custom Christmas cards mortgage adviser Custom WordPress theme designer Car insurance in South Dakota yahoo web hosting Best Seo company Online Colleges Psd to html Seo services Donating a car in Maryland offshore accident lawyer WebEx costs Car Insurance Quotes Utah World trade center footage Mortgage NUNAVUT CULTURE World Trade Center Footage Better Conference Calls Best social media platforms Online Christmas cards california law lemon personal injury lawyer sarasota fl PAPERPORT PROMOTIONAL CODE Injury Lawyers Photo Christmas cards mesothelioma compensation WordPress themes for designers WordPress hosting Psd to WordPress Nunavut Culture phd in counseling education Car insurance quotes pa Auto Accident Attorney Donate your Car for Money Social media management federal criminal defense attorney home phone internet bundle Insurance Html email Christmas cards Proud Italian cook mesothelioma ct Italian cooking school Adobe illustrator classes student loan consolidation program Psychic for Free Criminal Defense Attorneys Florida Data Recovery Raid mesothelioma charities STRUCTURED ANNUITY SETTLEMENT saskatchewan auto insurance Cheap Car Insurance for Ladies Car Insurance Companies Virtual Data Rooms Social media campaigns paperport promotional code Mesothelioma Law Firm Donate Car to Charity California sell annuity payment Neuson Donate Car for Tax Credit motorcycle accident lawyer san francisco Business Voip Solutions Motor Replacements mesothelioma attorneys california Sell Annuity Payment REGISTER FREE DOMAINS Claim event management security LIFE INSURANCE CO LINCOLN Donate Your Car for Kids CRIMINAL DEFENSE ATTORNEYS FLORIDA Structures Annuity Settlement car accident lawyers los angeles Car Insurance Quotes Colorado HARDDRIVE DATA RECOVERY SERVICES mesothelioma settlements amounts Donate Cars Illinois online criminal justice degree personal injury attorney springfield mo compare life assurance Dayton Freight Lines Hard drive Data Recovery Services Donate a Car in Maryland Cheap Domain Registration Hosting Automobile Accident Attorney HOW TO DONATE A CAR IN CALIFORNIA Donating a Car in Maryland Low Credit Line Credit Cards Forensics online course CHEAP DOMAIN REGISTRATION HOSTING Cheap auto insurance in VA Best Criminal Lawyers in Arizona harddrive data recovery services Life Insurance Co Lincoln anti spam appliance Holland Michigan College Online Motor Insurance Quotes Paperport Promotional Code Online Classes Massage School Dallas Texas Paperport promotional code Donate Old Cars to Charity buy gift card cheaper insurance companies domains yahoo Nunavut culture Dallas Mesothelioma Attorneys Car Insurance Quotes MN Health Records Personal Health Record Cheap Auto Insurance in VA buying an annuity calculator Home Phone Internet Bundle Donating Used Cars to Charity PHD on Counseling Education personal injury law firm Royalty Free Images Stock email bulk service structured settlement annuity companies Email Bulk Service accident car florida lawyer cell cycle regulation ppt accident attorney orange county Donate Car To Charity CALIFORNIA Personal Injury Lawyers Register Free Domains california motorcycle accident lawyer dallas mesothelioma lawyer Car Donate purchase structured settlements washington mesothelioma attorney Online College Course cash out structured settlement structered settlement Car Accident Lawyers personal injury attorney ocala fl Criminal lawyer Miami
sábado, 17 de mayo de 2014
eBook - Java como programar Deitel 7 Edicion pdf – dinero – Rooms – Abogado
miércoles, 10 de julio de 2013
[Ejercicio resuelto c++ POO, Arreglos de objetos] Estudiantes aprobados y reprobados. – Abogado – Teleconferencias
Enunciado:"Realizar un programa en el que se tenga como entrada: nombre, edad y 3 notas del estudiante con un menú en el que se pueda:1 - Ingresar los datos de los estudiantes.2 - Buscar datos del estudiante mediante su nombre.3 - Informe de datos de los estudiantes ordenado por su nota de menor a mayor y mostrando si ha aprobado o reprobado.4- Cantidad de estudiantes aprobados, reprobados y promedio de notas de la seccion.Además guardar el informe y la cantidad de estudiantes aprobados y reprobados junto al promedio de notas en un archivo txt."
Clases:Estudiante.h#ifndef ESTUDIANTE_H_#define ESTUDIANTE_H_#include iostream#include string.husing namespace std;class Estudiante {private: string nombre; int edad; float nota1; float nota2; float nota3;public: Estudiante(); void setnombre(string nom); string getnombre(); void setedad(int eda); int getedad(); float getNota1(); void setNota1(float not1); float getNota2(); void setNota2(float not2); float getNota3(); void setNota3(float not3); float Calnotaf(); string CalApRp();};#endif /* ESTUDIANTE_H_ */
#include "Estudiante.h"Estudiante::Estudiante() { // TODO Auto-generated constructor stub nombre = ""; edad = 0; nota1 = 0; nota2 = 0; nota3 = 0;}void Estudiante::setnombre(string nom){ nombre = nom;}string Estudiante::getnombre(){ return nombre;}void Estudiante::setedad(int eda){ edad = eda;}int Estudiante::getedad(){ return edad;}float Estudiante::getNota1() { return nota1;}void Estudiante::setNota1(float not1) { nota1 = not1;}float Estudiante::getNota2() { return nota2;}void Estudiante::setNota2(float not2) { nota2 = not2;}float Estudiante::getNota3() { return nota3;}void Estudiante::setNota3(float not3) { nota3 = not3;}float Estudiante::Calnotaf() { float notaf; notaf = ((nota1 + nota2 + nota3) * 20) /100; return notaf;}string Estudiante::CalApRp() { string ApRp; if(Calnotaf() = 10 && Calnotaf()= 20) ApRp = "Aprobado"; else if(Calnotaf() = 0 && Calnotaf() 10) ApRp = "Reprobado"; else ApRp = "Error al verificar nota"; return ApRp;}
#ifndef SECCION_H_#define SECCION_H_#include "Estudiante.h"const int MAX=3;class Seccion {private: int ptr; Estudiante AEstudiante[MAX];public: Seccion(); int getptr(); void setAEstudiante(Estudiante elEstudiante); Estudiante getAEstudiante(int i); void OrdenarEstudiante(); int Buscar(string nombreB); int Calcantap(); int Calcantrep(); float Calpromnot();};#endif /* SECCION_H_ */
/* * Seccion.cpp * * Created on: 23/02/2013 * Author: Francisco Velásquez */#include "Seccion.h"Seccion::Seccion() { // TODO Auto-generated constructor stub ptr = 0;}int Seccion::getptr(){ return ptr;}void Seccion::setAEstudiante(Estudiante elEstudiante){ AEstudiante[ptr] = elEstudiante; ptr++;}Estudiante Seccion::getAEstudiante(int i){ return AEstudiante[i];}void Seccion::OrdenarEstudiante(){ Estudiante Aux; int i, j; for(i=0; iptr-1; i++){ for (j=i+1; jptr; j++){ if(AEstudiante[i].Calnotaf() AEstudiante[j].Calnotaf()) { Aux = AEstudiante[i]; AEstudiante[i] = AEstudiante[j]; AEstudiante[j] = Aux; } } }}int Seccion::Buscar(string nombreB) { int i=0, enc = -1; while(iptr && enc == -1){ if(AEstudiante[i].getnombre() == nombreB) enc = i; else i++; } return enc;}int Seccion::Calcantap() { int cantap; int contap=0; for(int i=0; i ptr; i++){ if(AEstudiante[i].CalApRp() == "Aprobado") contap++; } cantap = contap; return cantap;}int Seccion::Calcantrep() { int cantrep; int contrep = 0; for(int i=0; i ptr; i++){ if(AEstudiante[i].CalApRp() == "Reprobado") contrep++; } cantrep = contrep; return cantrep;}float Seccion::Calpromnot() { float promnot; float acum=0; for(int i = 0; iptr;i++){ acum = acum + AEstudiante[i].Calnotaf(); } promnot = acum/ptr; return promnot;}
#include "Estudiante.h"#include "Seccion.h"#include stdlib.h#include stdio.h#include fstreamvoid IESeccion(Seccion & laSeccion);void IS(Seccion laSeccion);void IBuscar(Seccion laSeccion);void Menu(Seccion laSeccion);void Msjsalida(Seccion laSeccion);void EstApRepProm(Seccion laSeccion);int main(){ Seccion laSeccion; Menu(laSeccion); Msjsalida(laSeccion); return 0;}void EstApRepProm(Seccion laSeccion){ cout "La cantidad de estudiantes aprobados es de: " laSeccion.Calcantap() endl; cout "La cantidad de estudiantes reprobados es de: " laSeccion.Calcantrep() endl; cout "El promedio de notas es de " laSeccion.Calpromnot() " ptos" endl; ofstream archivo; // objeto de la clase ofstream archivo.open("ARP.txt"); archivo "La cantidad de estudiantes aprobados es de: " laSeccion.Calcantap() endl; archivo "La cantidad de estudiantes reprobados es de: " laSeccion.Calcantrep() endl; archivo "El promedio de notas es de " laSeccion.Calpromnot() " ptos" endl; archivo.close(); system("pausenull");}void Msjsalida(Seccion laSeccion){ cout endl; cout endl; cout endl; cout endl; cout endl; cout endl; cout endl; cout endl; cout endl; cout endl; cout " GRACIAS POR USAR FRANCVES SYSTEM" endl; cout " @francves" endl;}void Menu(Seccion laSeccion){ system("cls"); int variable; cout endl; cout "BIENVENIDO AL MENU DE USUARIO, PORFAVOR INGRESE UNA DE LAS SIGUIENTES OPCIONES" endl; cout "______________________________________________________________________________" endl; cout "1 Ingresar datos (si ya ha ingresado datos anteriormente elija otra opcion)" endl; cout "2 Buscar datos de estudiante a travez de su nombre" endl; cout "3 Informe de estudiantes ordenados por su nota de menor a mayor" endl; cout "4 Cantidad de estudiantes aprobados, reprobados y promedio de notas de la seccion" endl; cout "0 SALIR" endl; cin variable; switch(variable){ case 1: system("cls"); IESeccion(laSeccion); Menu(laSeccion); break; case 2: system("cls"); IBuscar(laSeccion); Menu(laSeccion); break; case 3: system("cls"); IS(laSeccion); Menu(laSeccion); break; case 4: system("cls"); EstApRepProm(laSeccion); Menu(laSeccion); break; case 0: system("cls"); Msjsalida(laSeccion); break; default: cout endl; cout "Porfavor solo ingrese opcion 1 - 2 - 3 - 4 - 0" endl; break; } system("pausenull");}void IEEstudiante(Estudiante & elEstudiante){ string nom; int eda; float not1, not2, not3; cout "Ingrese el Nombre del estudiante" endl; cin nom; elEstudiante.setnombre(nom); cout "Ingrese la edad del estudiante" endl; cin eda; elEstudiante.setedad(eda); cout "Ingrese las 3 notas del estudiante una por una" endl; cin not1; elEstudiante.setNota1(not1); cin not2; elEstudiante.setNota2(not2); cin not3; elEstudiante.setNota3(not3);}void IESeccion(Seccion & laSeccion){ Estudiante elEstudiante; for(int i=0; i MAX; i++){ IEEstudiante(elEstudiante); laSeccion.setAEstudiante(elEstudiante); laSeccion.OrdenarEstudiante(); } cout endl; cout "Se han ingresado todos los datos correctamente " endl; cout "Presione cualquier tecla para ser redirigido al menu nuevamente" endl; system("pausenull");}void IS(Seccion laSeccion){ int i; cout " INFORME ESTUDIANTES DE LA SECCION " endl; cout "__________________________________________________________________________" endl; cout "Nombre Edad Nota Aprobado/Reprobado" endl; for(i=0;iMAX;i++){ cout laSeccion.getAEstudiante(i).getnombre() " " laSeccion.getAEstudiante(i).getedad() " " laSeccion.getAEstudiante(i).Calnotaf() " " laSeccion.getAEstudiante(i).CalApRp() endl; } cout endl; cout "Presione cualquiere tecla para regresar al menu" endl; ofstream archivo; archivo.open("reporte.txt"); archivo " INFORME ESTUDIANTES DE LA SECCION " endl; archivo "__________________________________________________________________________" endl; archivo "Nombre Edad Nota Aprobado/Reprobado" endl; for(i=0;iMAX;i++){ archivo laSeccion.getAEstudiante(i).getnombre() " " laSeccion.getAEstudiante(i).getedad() " " laSeccion.getAEstudiante(i).Calnotaf() " " laSeccion.getAEstudiante(i).CalApRp() endl; } archivo endl; archivo "Presione cualquiere tecla para regresar al menu" endl; system("pausenull");}void IBuscar(Seccion laSeccion){ Seccion OSeccion; Estudiante OEstudiante; string nombreB; int posi; cout "Ingrese el nombre a buscar: " endl; cin nombreB; posi = laSeccion.Buscar(nombreB); if(posi != -1){ cout "El nombre existe en la posicion: " posi endl; cout "La edad es: " laSeccion.getAEstudiante(posi).getedad() endl; cout "La nota es: " laSeccion.getAEstudiante(posi).Calnotaf() endl; cout "El estudiante ha " laSeccion.getAEstudiante(posi).CalApRp() " la materia" endl; } else{ cout "No existen datos del estudiante " nombreB endl;} cout endl; cout "Presione cualquiere tecla para regresar al menu" endl; system("pausenull");}
Asbestos Lawyers sell structured settlement calculator mesothelioma suit Business Voip Solutions Service business software MESOTHELIOMA LAW FIRM Donate Old Cars to Charity Online casino Best Seo company Nunavut Culture Dallas Mesothelioma Attorneys Live casino DUI lawyer Hire php programmers world trade center footage Social media management Psychic for Free Better Conference Calls Social media tools webex costs NUNAVUT CULTURE hughes net business Auto Mobile Shipping Quote Car Accident Lawyers Casino Donate Your Car for Kids philadelphia mesothelioma lawyer Criminal lawyer Email Bulk Service New social media platforms Christmas cards Html email auto insurance yuba city ca los angeles motorcycle accident lawyer car accident lawyers los angeles Casino reviews Best social media platforms Php programmers for hire Donate Car for Tax Credit Mobile casino Mortgage Adviser Computer science classes online Injury Lawyers Car Insurance Quotes Utah Motor Insurance Quotes mesothelioma Donate your car Sacramento DONATE YOUR CAR SACRAMENTO Cheap Car Insurance in Virginia Make money online Australia Cheap auto insurance in VA Criminal Defense Attorneys Florida accident attorney san bernardino Insurance MOTOR REPLACEMENTS alcohol rehab center in florida Hire php developers Massage school Dallas Texas domain yahoo Dwi lawyer yahoo web hosting AUTO ACCIDENT ATTORNEY dallas mesothelioma lawyer workers compensation lawyer los angeles purchase structured settlements WebEx costs how to donate a car in california Donate your car for kids refinance with poor credit Criminal defense lawyer Best criminal lawyer in Arizona register free domains workplace accident attorney onlineclasses HOW TO DONATE A CAR IN CALIFORNIA Photo Christmas cards MET AUTO Seo services WordPress themes for designers CRIMINAL DEFENSE ATTORNEYS FLORIDA Automobile Accident Attorney Hire php developer DONATE YOUR CAR FOR KIDS Donate Cars Illinois student loan consolidation program Bankruptcy lawyer PHD on Counseling Education refinance with bad credit Custom WordPress theme designer Personal Injury Law Firm Criminal lawyer Miami Cheap Car Insurance for Ladies Php programmers Seo companies DONATING USED CARS TO CHARITY World trade center footage Virtual Data Rooms Life insurance co Lincoln Best social media platforms for business Business finance group HARDDRIVE DATA RECOVERY SERVICES NEUSON Social media examiner EMAIL BULK SERVICE Dayton Freight Lines online criminal justice degree ASBESTOS LAWYERS CAR DONATE buyers of structured settlements Social media platforms for business personal injury attorney springfield mo illinois law lemon Car Insurance Quotes PA Cheap car insurance in Virginia LIFE INSURANCE CO LINCOLN Futuristic Architecture Car insurance quotes MN personal accident attorney DONATE CARS IN MA mesothelioma settlements STRUCTURED ANNUITY SETTLEMENT Business management software Adobe illustrator classes mesothelioma attorney directory Seo company Custom Christmas cards Online Christmas cards earthlink business internet Cheap Domain Registration Hosting california mesothelioma attorney AUTOMOBILE ACCIDENT ATTORNEY donate your car for kids meso lawyer Paperport Promotional Code WordPress hosting car insurance in south dakota Psd to WordPress Proud Italian cook Forensics Online Course Tech school World Trade Center Footage harddrive data recovery services Social media platforms phd in counseling education mesothelioma attorney california personal injury attorney torrance Psd to html Italian cooking school WordPress theme designers Social media strategies Donate old cars to charity Learning adobe illustrator Car Insurance Quotes Colorado SELL ANNUITY PAYMENT structured annuity settlement Car Insurance Quotes MN Mesothelioma Law Firm donate your car for money anti spam exchange server Social media campaigns MASSAGE SCHOOL DALLAS TEXAS business voice mail service Online Stock Trading Donate Car to Charity California PAPERPORT PROMOTIONAL CODE primary pulmonary hypertension motorcycle accident attorney chicago Donate Cars in MA mesothelioma help Donate Your Car Sacramento How to Donate A Car in California Car Insurance Quotes Sell Annuity Payment mesothelioma symptoms Structures Annuity Settlement WORLD TRADE CENTER FOOTAGE event management security Paperport promotional code Annuity Settlements att call conference Motor Replacements mesothelioma law firm cheap domain registration hosting personal injury firm Online colledges Forensics online course Donate a Car in Maryland federal criminal defense attorney Hard drive Data Recovery Services domains yahoo best structured settlement companies DONATING A CAR IN MARYLAND Donating a Car in Maryland structured settlement purchasers Cheap Auto Insurance in VA ONLINE COLLEDGES compare life assurance CAR INSURANCE QUOTES MN selling a structured settlement donate old cars to charity Best Criminal Lawyers in Arizona Donate car to charity California Life Insurance Co Lincoln Holland Michigan College Online Motor Insurance Quotes selling my structured settlement CAR INSURANCE QUOTES UTAH Mortgage Online Colleges mortgage adviser structured settlements annuities auto insurance cost by state Car insurance quotes Colorado cell cycle regulation ppt Online Classes asbestos mesothelioma lawsuit Car Insurance Companies Massage School Dallas Texas ROYALTY FREE IMAGES STOCK DONATE CAR FOR TAX CREDIT DONATE YOUR CAR FOR MONEY Low Credit Line Credit Cards structured settlement company Donate your Car for Money Met Auto Home Phone Internet Bundle Donating Used Cars to Charity georgia truck accident lawyer Neuson Royalty Free Images Stock Car Insurance in South Dakota Webex Costs holland michigan college Register Free Domains lawyers accidents Claim Car Donate google adsense personal injury solicitor LOW CREDIT LINE CREDIT CARDS Online College Course Auto Accident Attorney Data Recovery Raid Business VOIP Solutions auto accident attorney hair removal washington dc Personal Injury Lawyers Asbestos Lung Cancer CHEAP CAR INSURANCE FOR LADIES Online Criminal Justice Degree
lunes, 1 de julio de 2013
[Ejercicio resuelto c++ POO] Dinero en billetera. – Service – Abogado – Auto
Enunciado:"Sabiendo cuantos billetes de 5000, 10000, 20000 y 50000 tiene una persona en su billetera, calcular la cantidad total de dinero con que cuenta."
Clases:
Billetera.h
#ifndef BILLETERA_H_#define BILLETERA_H_#include iostreamusing namespace std;class Billetera {private: int billete1; int billete2; int billete3; int billete4; int cantbi1; int cantbi2; int cantbi3; int cantbi4;public: Billetera(); void setcantbi1(int bi1); int getcantbi1(); void setcantbi2(int bi2); int getcantbi2(); void setcantbi3(int bi3); int getcantbi3(); void setcantbi4(int bi4); int getcantbi4(); float CaldinTot();};#endif /* BILLETERA_H_ */
Billetera.cpp
/* * Persona.cpp * * Created on: 14/12/2012 * Author: Soneview */#include "Billetera.h"Billetera::Billetera() { // TODO Auto-generated constructor stub billete1 = 5000; billete2 = 10000; billete3 = 20000; billete4 = 50000; cantbi1 = 0; cantbi2 = 0; cantbi3 = 0; cantbi4 = 0;}void Billetera::setcantbi1(int bi1) { cantbi1 = bi1;}int Billetera::getcantbi1() { return cantbi1;}void Billetera::setcantbi2(int bi2) { cantbi2 = bi2;}int Billetera::getcantbi2() { return cantbi2;}void Billetera::setcantbi3(int bi3) { cantbi3 = bi3;}int Billetera::getcantbi3() { return cantbi3;}void Billetera::setcantbi4(int bi4) { cantbi4 = bi4;}int Billetera::getcantbi4() { return cantbi4;}float Billetera::CaldinTot() { float dinTot; dinTot = (cantbi1 * billete1) + (cantbi2 * billete2) + (cantbi3 * billete3) + (cantbi4 * billete4); return dinTot;}
Función principal:
#include "Billetera.h"void IEBilletera(Billetera &laBilletera);void IS(Billetera laBilletera);int main(){ Billetera laBilletera; IEBilletera(laBilletera); IS(laBilletera); return 0;}void IEBilletera(Billetera &laBilletera){ int bi1; int bi2; int bi3; int bi4; cout "Ingrese la cantidad de billetes de 5000bsF: "; cin (bi1); laBilletera.setcantbi1(bi1); cout "Ingrese la cantidad de billetes de 10000bsF: "; cin (bi2); laBilletera.setcantbi2(bi2); cout "Ingrese la cantidad de billetes de 20000bsF: "; cin (bi3); laBilletera.setcantbi3(bi3); cout "Ingrese la cantidad de billetes de 50000bsF: "; cin (bi4); laBilletera.setcantbi4(bi4);}void IS(Billetera laBilletera){ cout "El dinero total en la billetera de la persona es: " laBilletera.CaldinTot();}
Live casino mesothelioma lawyer houston Hard drive data recovery services business email web hosting Mobile casino personal injury lawyer baltimore mesothelioma attorneys Italian cooking school Criminal Defense Attorneys Florida Virtual Data Rooms Dwi lawyer Better conferencing calls donating used cars to charity domain name yahoo Php programmers donate your car for kids Computer science classes online SELL ANNUITY PAYMENT Online College Course car accident lawyer michigan How to Donate A Car in California miami personal injury lawyer holland michigan college Dallas Mesothelioma Attorneys motorcycle accident lawyer california event management security Adobe illustrator classes Car Insurance Quotes PA Nunavut culture Car Accident Lawyers Online casino mesothelioma annuity payment How to donate a car in California buying structured settlements Casino Psychic for free CRIMINAL DEFENSE ATTORNEYS FLORIDA Casino reviews personal injury law firm Motor Replacements mesothelioma help data recovery raid royalty free images stock Make money online Australia Christmas cards Mesothelioma Law Firm uk homeowner loans tucson car accident attorney car insurance quotes colorado Structures Annuity Settlement yahoo web hosting Hire php developers Donating Used Cars to Charity cloud identity and access management Automobile Accident Attorney Donate old cars to charity houston motorcycle accident lawyer Html email Business finance group Hire php programmers Criminal lawyer Best social media platforms for business mesothelioma law firm DUI lawyer DAYTON FREIGHT LINES Hard drive Data Recovery Services DONATE YOUR CAR SACRAMENTO Life Insurance Co Lincoln Donate car to charity California Service business software Home Phone Internet Bundle Social media tools mesothelioma lawyers san diego virtual data rooms MESOTHELIOMA LAW FIRM mesothelioma settlements amounts CAR INSURANCE QUOTES UTAH Custom WordPress theme designer Donate Your Car for Kids Best social media platforms anti spam appliance fast cash for house mesothelioma compensation integrated ehr cheap domain registration hosting CAR INSURANCE QUOTES MN Bankruptcy lawyer Criminal defense lawyer Php programmers for hire Donate your car Sacramento low credit line credit cards new york mesothelioma law firm Hire php developer arizona auto accident attorney Cheap Domain Registration Hosting Insurance Companies criminal defense federal lawyer mesothelioma survival rates asbestos exposure lawyers mesothelioma attorney Holland Michigan College Donate cars in ma Seo companies car insurance quotes pa boca raton personal injury attorney CAR INSURANCE IN SOUTH DAKOTA student loan consolidation program auto insurance cost by state New social media platforms CAR DONATE Social media platforms for business primary pulmonary hypertension Psd to WordPress best criminal lawyer in arizona pharmacist jobs in chicago WordPress hosting Dallas mesothelioma attorneys Email Bulk Service PHD on Counseling Education PSYCHIC FOR FREE world trade center footage donate your car for money Seo services Best Seo company Business management software Life insurance co Lincoln Car Insurance Quotes Colorado paperport promotional code Seo company Online Christmas cards Custom Christmas cards bus accident attorneys Photo Christmas cards HOLLAND MICHIGAN COLLEGE WordPress themes for designers Psychic for Free Social media examiner mesothelioma attorneys california Social media management See more at http//wwwginfostopnet/ Tech school business voice mail service Social media platforms Proud Italian cook buyer of structured settlement annuity Motor Insurance Quotes Claim Register Free Domains DONATING A CAR IN MARYLAND LOW CREDIT LINE CREDIT CARDS Psd to html WordPress theme designers structured settlement cash out online criminal justice degree Annuity Settlements emergency response plan ppt injury lawyers Social media strategies Learning adobe illustrator CAR ACCIDENT LAWYERS bus accident attorney los angeles Donating a car in Maryland Donate Car for Tax Credit donate old cars to charity houston mesothelioma attorney WORLD TRADE CENTER FOOTAGE CAR INSURANCE QUOTES PA Social media campaigns Donate Car to Charity California HOW TO DONATE A CAR IN CALIFORNIA Donate Cars in MA Met Auto Data Recovery Raid forensics online course Donate Your Car Sacramento Sell Annuity Payment PhD in counseling education Asbestos Lawyers Mortgage Adviser Car Insurance Companies Paperport Promotional Code hughes net business Auto Mobile Insurance Quote how to donate a car in california Massage School Dallas Texas auto accident attorney Nunavut Culture Dayton Freight Lines motorcycle lawyer los angeles Donate a Car in Maryland average mesothelioma settlement Auto Mobile Shipping Quote Donating a Car in Maryland Donate Cars Illinois cell cycle regulation ppt Best Criminal Lawyers in Arizona Car Insurance Quotes Utah broward county dui lawyer Online Motor Insurance Quotes Online Colleges DONATE CAR FOR TAX CREDIT Online Stock Trading Online Classes Business Voip Solutions att call conference asterisk call center software World Trade Center Footage mesothelioma lawyer dallas structured settlements companies Cheap Auto Insurance in VA cheap car insurance in virginia ANNUITY SETTLEMENT WEBEX COSTS Donate Old Cars to Charity mesotheloma Low Credit Line Credit Cards car insurance quotes earthlink business internet sell structured settlement calculator Gas/Electricity colorado auto accident attorney Car Insurance Quotes MN Donate your Car for Money Paperport promotional code Asbestos Lung Cancer Forensics Online Course Cheap Car Insurance for Ladies structured settlement quote mesotheliama small business administration sba Neuson mesothelioma personal injury lawyers Injury Lawyers ASBESTOS LAWYERS Royalty Free Images Stock Car Insurance in South Dakota Webex Costs Cheap Car Insurance in Virginia Better Conference Calls Car insurance quotes Utah google adsense Futuristic Architecture Car Donate PHD IN COUNSELING EDUCATION life insurance quotes Auto Accident Attorney DONATE A CAR IN MARYLAND Criminal lawyer Miami saskatchewan auto insurance
[Ejercicio resuelto c++ POO] Comisión empleado. – Donate – Seguro – Hosting
Enunciado:"Si un empleado gana un sueldo básico y además se le asigna una comisión del 25% sobre las ventas que realizó, conociendo su sueldo y lo vendido, determinar cuánto cobrará el empleado."
Clases:
Empleado.h#ifndef EMPLEADO_H_#define EMPLEADO_H_#include iostreamusing namespace std;class Empleado {private: float sueldoB; float cantVentas;public: Empleado(); void setsueldoB(float sb); float getsueldoB(); void setcantVentas(float cv); float getcantVentas(); float CalsTotal();};#endif /* EMPLEADO_H_ */
Empleado.cpp
#include "Empleado.h"Empleado::Empleado() { // TODO Auto-generated constructor stub sueldoB = 0; cantVentas = 0;}void Empleado::setsueldoB(float sb) { sueldoB = sb;}float Empleado::getsueldoB() { return sueldoB;}void Empleado::setcantVentas(float cv) { cantVentas = cv;}float Empleado::getcantVentas() { return cantVentas;}float Empleado::CalsTotal() { float sTotal; sTotal = sueldoB + (cantVentas * 0.25); return sTotal;}
Función principal:
#include "Empleado.h"void IEEmpleado(Empleado &elEmpleado);void IS(Empleado elEmpleado);int main(){ Empleado elEmpleado; IEEmpleado (elEmpleado); IS(elEmpleado); return 0;}void IEEmpleado(Empleado &elEmpleado){ float sb; float cv; cout "Ingrese el sueldo base: " endl; cin (sb); elEmpleado.setsueldoB(sb); cout "Ingrese la cantidad de ventas: " endl; cin (cv); elEmpleado.setcantVentas(cv);}void IS(Empleado elEmpleado){ cout "El sueldo total del empleado es: " elEmpleado.CalsTotal() "BsF";}
benchmark lending Online casino offshore accident lawyer DONATE CAR FOR TAX CREDIT Business finance group Car insurance quotes pa Hire php developers Service business software Seo company Social media tools pharmacist jobs in chicago Hire php developer boulder personal injury lawyers mesothelioma settlements Christmas cards cash out structured settlement criminal defense federal lawyer Online Motor Insurance Quotes personal injury solicitor mesothelioma help CAR INSURANCE QUOTES COLORADO Best social media platforms Health Records Personal Health Record Custom WordPress theme designer truck accident attorney texas Donate car for tax credit WordPress theme designers Computer science classes online Massage School Dallas Texas Make money online Australia life insurance quotes Psd to WordPress Data Recovery Raid fast cash for house quotes car personal accident attorney structure settlements Casino california mesothelioma attorney mesothelioma information Mobile casino structured settlements annuities massage school dallas texas ANNUITY SETTLEMENT asbestos mesothelioma lawsuit Mortgage Adviser Donating used cars to charity CHEAP AUTO INSURANCE IN VA google adsense Casino reviews Best Seo company best consolidation loan student WordPress themes for designers accident car florida lawyer New social media platforms anti spam appliance mesothelioma charities life insurance co lincoln Php programmers for hire business voip solutions Hard drive Data Recovery Services DONATE YOUR CAR FOR KIDS donate old cars to charity workplace accident attorney Dwi lawyer Live casino ONLINE MOTOR INSURANCE QUOTES DUI lawyer refinance with poor credit structured settlement company WordPress hosting Car Insurance Quotes Colorado dallas mesothelioma attorneys annuity payment personal injury lawyer accident attorney san bernardino Hire php programmers Italian cooking school Hard drive data recovery services Holland Michigan College primary pulmonary hypertension Criminal defense lawyer dui lawyer scottsdale Virtual Data Rooms Best social media platforms for business Best criminal lawyer in Arizona Donate Your Car Sacramento onlineclasses Criminal lawyer refinance with bad credit purchase structured settlements Bankruptcy lawyer forensics online course Cheap car insurance for ladies mesothelioma drug maritime lawyer houston mesothelioma compensation CAR DONATE Psychic for free yahoo web hosting accident attorney orange county Nunavut Culture DONATE CARS IN MA motorcycle accident lawyer california Php programmers MASSAGE SCHOOL DALLAS TEXAS Seo companies accident lawyers in los angeles Motor Insurance Quotes DONATE OLD CARS TO CHARITY DAYTON FREIGHT LINES illinois law lemon Social media platforms for business Dallas Mesothelioma Attorneys Seo services Business management software event management security Low credit line credit cards HOW TO DONATE A CAR IN CALIFORNIA webex costs Online Christmas cards Custom Christmas cards car insurance quotes pa mesothelioma claim Asbestos Lung Cancer cheap auto insurance in va Photo Christmas cards Donate Old Cars to Charity Donate Car to Charity California Neuson How to Donate A Car in California home phone internet bundle Social media examiner Social media management bowne virtual data room Tech school Social media campaigns Html email Futuristic Architecture Donate your car for money Insurance Companies Social media platforms personal injury attorney torrance Online classes Proud Italian cook Psd to html mesothelioma litigation ONLINECLASSES CAR INSURANCE IN SOUTH DAKOTA Online motor insurance quotes mesotheliama Adobe illustrator classes Personal Injury Law Firm Social media strategies Donate your car Sacramento Learning adobe illustrator Donate Car for Tax Credit Donate Cars in MA mesotheioma BEST CRIMINAL LAWYER IN ARIZONA Mesothelioma Law Firm mesothelioma lawsuit Best Criminal Lawyers in Arizona broward county dui lawyer Dayton Freight Lines DONATE YOUR CAR FOR MONEY structered settlement mesothelioma attorney florida CHEAP CAR INSURANCE FOR LADIES REGISTER FREE DOMAINS sell annuity payment Sell Annuity Payment mesothelioma attorney assistance auto accident attorney Torrance Donate Your Car for Kids Asbestos Lawyers FORENSICS ONLINE COURSE Structures Annuity Settlement Online Colleges Annuity Settlements adverse remortgage personal injury lawyer sarasota fl mesothelioma attorney directory mesotheloma Donate a Car in Maryland Donating a Car in Maryland CAR INSURANCE QUOTES PA Motor Replacements uk homeowner loans Cheap Domain Registration Hosting Met auto Donate Cars Illinois structured settlement investments Criminal Defense Attorneys Florida Car Insurance Quotes Utah paperport promotional code Life Insurance Co Lincoln selling annuity payments for cash Webex Costs DONATING USED CARS TO CHARITY register free domains Online Stock Trading Paperport Promotional Code Paperport promotional code Online Classes houston tx auto insurance World Trade Center Footage Psychic for Free criminal defense attorneys florida motorcycle accident attorney sacramento Cheap Auto Insurance in VA Low Credit Line Credit Cards Donating a car in Maryland most profitable internet business all about mesothelioma Car Insurance Quotes MN DALLAS MESOTHELIOMA ATTORNEYS Donate your Car for Money Met Auto buying an annuity calculator Business VOIP Solutions Forensics Online Course Home Phone Internet Bundle Donating Used Cars to Charity PHD on Counseling Education Register Free Domains Car Insurance Quotes PA Royalty Free Images Stock car accident lawyers Car Insurance in South Dakota Email Bulk Service Cheap Car Insurance for Ladies Cheap Car Insurance in Virginia asbestos lawyers Better Conference Calls domains yahoo donate car for tax credit LIFE INSURANCE CO LINCOLN motor replacements hosted predictive dialers online motor insurance quotes Car Donate orlando criminal attorney Online College Course Automobile Accident Attorney Auto Accident Attorney DONATE CARS ILLINOIS Car Accident Lawyers windows phone for business Criminal lawyer Miami
