Ejemplo de algoritmo: programacion
#include<complex>
int cant, cod, i, c[100], ele = 0, e = 1, op;
double v[100], totales[100], t = 0, obra = 0, totalx = 0, total = 0;
using namespace std;
void main(){
while(op!=2){
system("cls");
system("color f2");
cout << "\t\t::::::::::::::::::::::::::::::::::::::::::::::::" << endl;
cout << "\t\t:::: PROGRAMACION NUMERICA- PROYECTO FINAL ::::" << endl;
cout << "\t\t::::::::::::::::::::::::::::::::::::::::::::::::" << endl;
cout << "\t\t:: HACER S.A ::" << endl;
cout << "\t\t:: ::" << endl;
cout << "\t\t:: Esta empresa elabora materiales para ::" << endl;
cout << "\t\t::ferreterias al por mayor y detal. ::" << endl;
cout << "\t\t:: Este programa esta hecho para su mayor ::" << endl;
cout << "\t\t:: comodidad. ::" << endl;
cout << "\t\t::::::::::::::::::::::::::::::::::::::::::::::::" << endl;
cout << "\t\t:: 1. HACER S.A (Ejecutar Programa) ::" <<endl;
cout << "\t\t::::::::::::::::::::::::::::::::::::::::::::::::" << endl;
cout << "\t\t:: 2. SALIR ::" << endl;
cout << "\t\t:::::::::::::::::::::::::::::::::::::::::::::::: \n" << endl;
cout << ".............................................................................\n" << endl;
cout<<" Digite unaopcion entre 1 y 2 : "; cin>>op;
system("cls");
switch (op){
case 1:
system("color f2");
cout << "\n\n\t\t PROYECTO FINAL \n\n"<< endl;
cout << "\n\t\t HACER S.A " << endl;
cout << "\t\t** **" << endl;
cout << "\t\t** Aqui esta lalista de los productos **" << endl;
cout << "\t\t** disponibles con su respectivo precio **" << endl;
cout << "\t\t** de materia prima: **" << endl;
cout << "\t\t** **" << endl;
cout << "\t\t************************************************" << endl;
cout <<"\t\t** 1. Cerrojo ($500) **" << endl;
cout << "\t\t************************************************" << endl;
cout << "\t\t** 2. Clavos de Acero ($100) **" << endl;
cout << "\t\t************************************************" << endl;
cout << "\t\t** 3. Alicate ($1100) **" <<endl;
cout << "\t\t************************************************" << endl;
cout << "\t\t** 4. Destornillador ($900) **" << endl;
cout << "\t\t************************************************" << endl;
cout << "\t\t** 5. Espatula ($700) **" << endl;
cout <<"\t\t************************************************" << endl;
cout << "\t\t** 6. Lima ($850) **" << endl;
cout << "\t\t************************************************" << endl;
cout << "\t\t** 7. Martillo ($1200) **" << endl;
cout << "\t\t************************************************" << endl;
cout << "\t\t**8. Serrucho ($1300) **" << endl;
cout << "\t\t************************************************" << endl;
cout << "\t\t** 9. Tornillo ($150) **" << endl;
cout << "\t\t************************************************" << endl;
cout << "\t\t** 10. Tuerca ($50) **" << endl;...
Regístrate para leer el documento completo.