Click here to Skip to main content
15,889,867 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Construir un programa en Java que permita crear una clase con la información de un estudiante, con los siguientes atributos: Nombre, cédula, promedio acumulado, créditos cursados. Muestre la representación UML de esta clase.

El programa debe solicitar el número de estudiantes que desea registrar y guardarlos en un arreglo. Una vez almacenados los datos, debe desplegar un menú con las siguientes opciones:

1. Crear objetos de la clase.

2. Calcular nuevo promedio: solicitar el número de cédula del estudiante, el número de créditos vistos este semestre y el promedio obtenido en este semestre. El nuevo promedio se calcula con la siguiente fórmula:

Nuevoprom = (promedio acumulado * créditosvistos + promedio_semestre*créditos_semestre) / (créditosvistos+créditos_semestre)

3. Listado de estudiantes con promedio superior a 4.0

4. Buscar el estudiante con el mejor promedio y desplegar sus datos.


Translation:

Could you help me with this exercise in java? - Beyker D
Build a program in Java that allows you to create a class with the information of a student, with the following attributes: Name, ID, accumulated average, credits taken. Display the UML representation of this class.

The program must request the number of students it wishes to register and save them in an arrangement. Once the data is stored, you must display a menu with the following options:

1. Create class objects.

2. Calculate new average: request the student's ID number, the number of credits seen this semester and the average obtained in this semester. The new average is calculated with the following formula:

Newprom = (cumulative average * creditsvistos + promedio_semestre*créditos_semestre) / (creditsvistos +créditos_semestre)

3. List of students with an average above 4.0

4. Find the student with the best average and display their data.

What I have tried:

Hacer un arreglo para ordenar los objetos pero pues no logro luego relacionar eso con el resto de calculo que toca hacer


Translation:

Make an arrangement to order the objects but then I can not relate that to the rest of the calculation that has to be done
Posted
Updated 16-Apr-22 20:33pm
v2

1 solution

While we are more than willing to help those that are stuck, that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't be at all fair for us to do it all for you.

So we need you to do the work, and we will help you when you get stuck. That doesn't mean we will give you a step by step solution you can hand in!
Start by explaining where you are at the moment, and what the next step in the process is. Then tell us what you have tried to get that next step working, and what happened when you did.

If you are having problems getting started at all, then this may help: How to Write Code to Solve a Problem, A Beginner's Guide[^]

Google Translate:
Si bien estamos más que dispuestos a ayudar a aquellos que están atascados, ¡eso no significa que estemos aquí para hacerlo todo por usted! No podemos hacer todo el trabajo, o te pagan por esto o es parte de tus calificaciones y no sería justo que lo hiciéramos todo por ti.

Así que necesitamos que hagas el trabajo y te ayudaremos cuando te quedes atascado. ¡Eso no significa que le daremos una solución paso a paso que puede entregar!
Comience explicando dónde se encuentra en este momento y cuál es el próximo paso en el proceso. Luego, díganos qué ha intentado para que el siguiente paso funcione y qué sucedió cuando lo hizo.

Si tiene problemas para comenzar, entonces esto puede ayudar: Cómo escribir código para resolver un problema, una guía para principiantes[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900