Dev - C++ - alguien podria decirme que estoy haciendo mal? necesito me imprima la nota final A,B,C,D,F

 
Vista:
sin imagen de perfil
Val: 8
Ha aumentado su posición en 3 puestos en Dev - C++ (en relación al último mes)
Gráfica de Dev - C++

alguien podria decirme que estoy haciendo mal? necesito me imprima la nota final A,B,C,D,F

Publicado por Luis Angel (5 intervenciones) el 18/08/2019 08:40:28
#include <iostream>
#include<stdlib.h>
#include<math.h>

using namespace std;

int main(int argc, char* argv[])
{

int N1,N2,N3,N4,N5,N6,P1,P2,P3,P4,P5,P6,PO1, PO2, PO3,PO4, PO5, PO6, PO7;//declaracion de variable

cout<<"ingrese Nota1: "<<endl;
cin>>N1;
P1 = 15;
PO1 = N1*P1/100;


cout<<"ingrese Nota2: "<<endl;
cin>>N2;
P2 = 15;
PO2 =N2*P2/100;


cout<<"ingrese Asistencia: "<<endl;
cin>>N3;
P3 = 10;
PO3 = N3*P3/100;


cout<<"ingrese Tarea/Investigaciones: "<<endl;
cin>>N4;
P4 = 10;
PO4 = N4*P4/100;

cout<<"ingrese programa: "<<endl;
cin>>N5;
P5 = 20;
PO5 = N5*P5/100;


cout<<"ingrese Proyecto final: "<<endl;
cin>>N6;
P6 = 30;
PO6 = N6*P6/100;

PO7= PO1+PO2+PO3+PO4+PO5+PO6;

int main
(int PO7,int A,int B,int C,int D,int F)


if (PO7 => 100 || PO7 <= 91)
cout << "Nota Final: A" <<A<<endl;
else return B;

while(PO7 < 100 || PO7 >= 91);


if(PO7 < 90 || PO7 >= 81)
cout << "Nota Final: B" <<B<< endl;
else return C;


while(PO7 < 90 || PO7 >= 81);

{
if(PO7 < 80 || PO7 >= 71)
cout << "Nota Final: C" <<C<<endl;
else return D;

}
while(PO7 < 80 || PO7 >= 71);

{
if(PO7 < 70 || PO7 >= 61)
cout << "Nota Final: D" << D<< endl;
else return F;

}
while(PO7 < 70 || PO7 >= 61);

{
if(PO7 < 60 || PO7 >= 0)
cout << "Nota Final: F" << endl;
}
while(PO7 < 60 || PO7 >= 0);


cout<<"Muchas gracias y felices Vacaciones"<<endl;

return 0;


}
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder
sin imagen de perfil
Val: 1.440
Bronce
Ha mantenido su posición en Dev - C++ (en relación al último mes)
Gráfica de Dev - C++

alguien podria decirme que estoy haciendo mal? necesito me imprima la nota final A,B,C,D,F

Publicado por dario (718 intervenciones) el 18/08/2019 09:08:28
Hola, que estas tratando de hacer, podrías poner el enunciado del problema.
Saludos.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar
sin imagen de perfil
Val: 8
Ha aumentado su posición en 3 puestos en Dev - C++ (en relación al último mes)
Gráfica de Dev - C++

alguien podria decirme que estoy haciendo mal? necesito me imprima la nota final A,B,C,D,F

Publicado por Luis Angel (5 intervenciones) el 18/08/2019 09:32:25
HACER UN PROGRAMA QUE CALCULE LAS CALIFICACIONES
DE UN ESTUDIANTE EN BASE A SU PROMEDIO

PIDA NOTA1 Y NOTA2

PIDA ASISTENCIA

PIDA TAREAS/INVESTIGACIONES


TANTO LA NOTA1 Y NOTA2 ES UN 15% DE LA NOTA

LA ASISTENCIA ES UN 10% DE LA NOTA

LAS TAREAS/INVESTIGACIONES 10% DE LA NOTA

PROGRAMAS ES UN 20% DE LA NOTA

PROYECTO FINAL ES UN 30% DE LA NOTA

SI EL ESTUDIANTE TIENE MAS DE 90 ES A
SI TIENE DE 81 A 90 ES B
SI TIENE DE 71 A 80 ES C
SI TIENE DE 60 A 70 ES D
SI TIENE MENOR DE 60 ENTONCES F
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar
sin imagen de perfil
Val: 1.440
Bronce
Ha mantenido su posición en Dev - C++ (en relación al último mes)
Gráfica de Dev - C++

alguien podria decirme que estoy haciendo mal? necesito me imprima la nota final A,B,C,D,F

Publicado por dario (718 intervenciones) el 18/08/2019 15:20:13
Aun no entiendo esto:

TANTO LA NOTA1 Y NOTA2 ES UN 15% DE LA NOTA, de que nota???

LA ASISTENCIA ES UN 10% DE LA NOTA, de que nota????

LAS TAREAS/INVESTIGACIONES 10% DE LA NOTA, de que nota????

PROGRAMAS ES UN 20% DE LA NOTA, de que nota.???

PROYECTO FINAL ES UN 30% DE LA NOTA, de que nota?????

Podrías poner un ejemplo.

Saludos.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar
sin imagen de perfil
Val: 8
Ha aumentado su posición en 3 puestos en Dev - C++ (en relación al último mes)
Gráfica de Dev - C++

alguien podria decirme que estoy haciendo mal? necesito me imprima la nota final A,B,C,D,F

Publicado por Luis Angel (5 intervenciones) el 19/08/2019 09:05:59
la nota 1 = 90 y el 15% = 13.5
la nota 2 = 90 y el 15% = 13.5
asistencia = 80 y el 10% = 8
tareas/investigaciones = 100 y el 10% = 10
programas = 90 y el 20% = 18
proyecto final = 90 y el 30% = 27
la nota final es 90
entonces es un B
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar
sin imagen de perfil
Val: 417
Ha mantenido su posición en Dev - C++ (en relación al último mes)
Gráfica de Dev - C++

alguien podria decirme que estoy haciendo mal? necesito me imprima la nota final A,B,C,D,F

Publicado por Thanatos (199 intervenciones) el 19/08/2019 10:36:38
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#include <iostream>
 
using std::cout;
using std::cin;
 
int main()
{
    int nota1, nota2;
    int asistencia;
    int tareasInv;
    int programa;
    int proFinal;
    int notaFinal;
 
    cout << "Ingrese la nota 1: ";
    cin >> nota1;
 
    cout << "Ingrese la nota 2: ";
    cin >> nota2;
 
    cout << "Ingrese la asistencia: ";
    cin >> asistencia;
 
    cout << "Ingrese tareas/investigaciones: ";
    cin >> tareasInv;
 
    cout << "Ingrese programa: ";
    cin >> programa;
 
    cout << "Ingrese proyecto final: ";
    cin >> proFinal;
 
    notaFinal =   nota1 * 15 / 100
                + nota2 * 15 / 100
                + asistencia * 10 / 100
                + tareasInv * 10 / 100
                + programa * 20 / 100
                + proFinal * 30 / 100;
 
    if (notaFinal < 60)
    {
        cout << "Nota final: F\n";
    }
    else if (notaFinal >= 60 && notaFinal <= 70)
    {
        cout << "Nota Final: D\n";
    }
    else if (notaFinal >= 71 && notaFinal <= 80)
    {
        cout << "Nota Final: C\n";
    }
    else if (notaFinal >= 81 && notaFinal <= 90)
    {
        cout << "Nota Final: B\n";
    }
    else
    {
        cout << "Nota Final: A\n";
    }
 
    return 0;
}
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar
sin imagen de perfil
Val: 8
Ha aumentado su posición en 3 puestos en Dev - C++ (en relación al último mes)
Gráfica de Dev - C++

alguien podria decirme que estoy haciendo mal? necesito me imprima la nota final A,B,C,D,F

Publicado por Luis Angel (5 intervenciones) el 19/08/2019 21:11:19
MUCHISIMAS GRACIAS
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar