Find Jobs
Hire Freelancers

C Project for College Homework

$30-5000 USD

Terminado
Publicado hace alrededor de 22 años

$30-5000 USD

Pagado a la entrega
I NEED 2 QUESTIONS TO BE ANSWERED FOR A HOMEWORK ASSIGNMENT FOR MY C++ CLASS: DEADLINE: ========= SUBMITTED BY MARCH 28 NOON UNITED STATES EST QUESTION 1: =========== Write a program to figure the percentile rank of a grade in a list of grades. We will simulate a small sample of SAT scores, which range from 200 to 800. PercentileRank is the number that represents a score's rank relative to the number of scores below it. If the PercentileRank is 74.0, 74% of the students received a grade below the score, and 26% received the same score or better. The formula is represented by PercentileRank = (b / n - 1) * 100, where b is the number of scores less than the current score and n is the total number of scores. Remember how C divides integers, so be careful. First, use the rand( ) function to fill an array of 50 scores with numbers between 200 and 800, inclusively. Then, sort the array in descending order. Cycling through the sorted array from the greatest score downwards, figure each score's PercentileRank, and place it into a parallel array of 50 float scores. The PercentileRank should be stored as a percent quantity, and displayed with 1 decimal place. Display the scores and PercentileRanks as 10 rows of 5 pairs of numbers across the screen. This assignment is meant to be a pointer exercise. Therefore, you must declare two arrays in main( ), and pass these arrays into functions which interpret the array name as pointers. Write at least three functions. One, to fill the score array with the random numbers; a second, to sort the array in descending order, and a third, to fill the float array with the PercentileRank calculation. These functions should not use array notation, but exclusively pointer notation. QUESTION 2 is attached! ============================== ## Deliverables Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. Complete copyrights to all work purchased. QUESTION 2: ============ Pointer Sorting Exercise The Open School admits children to its kindergarten in the order in which they apply. However, most of the staff's use of the list of applicants is made easier if the list is alphabetized. Write a program that reads in a list of names in the order that applications were received and creates an array of pointers through which the list can be accessed in alphabetical order. In that way two orderings can be maintained with just one original list. The applicants should be entered into a two dimensional array, char applicants[5] [45] in the order that they applied. Read in at least five names in the format, last name first comma, then first name. Then set up an array of pointers, char *alpha[5], where you initialize the array to point to the original list of names. Each location in the array alpha[] will get the address of the corresponding string in the applicant list. So alpha[0] will hold the address of the name in applicants[0]. Then call a sort function that sorts the strings using strcmp( ) and looking at the actual strings whose starting addresses are in the array of pointers, but swaps only the addresses to achieve the sort. In that way, the original list should not be changed in any way. The only changes are in the array of pointers, where the alpha[0] will have the address of the string that comes first alphabetically. Please write at least two functions: one, the sort function, in which you should only pass in the pointer array, and second, a function that prints out the two lists side by side. For the second function, pass in both the 2D array and the pointer array, and print them out so that it is clear that your sort did not change the original list. So if the original list has Bates, Norman and Abbott, Jane in the first two positions, your print out will be: Original List Alphabetical List Bates, Norman Abbott, Jane Abbott, Jane Bates, Norman I NEED BOTH THE PROBLEM SOLVED, I NEED TO SUBMIT THEM BY MARCH 28 Noon UNITED STATES EST. ## Platform IT SHOULD BE COMPILED IN MICROSOFT VISUAL C++ 6.0 ## Deadline information MUST BE COMPLETED BY NOON MARCH 28.
ID del proyecto: 2843863

Información sobre el proyecto

9 propuestas
Proyecto remoto
Activo hace 22 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
Adjudicado a:
Avatar del usuario
See private message.
$7 USD en 14 días
5,0 (41 comentarios)
5,4
5,4
9 freelancers están ofertando un promedio de $115 USD por este trabajo
Avatar del usuario
See private message.
$850 USD en 14 días
4,5 (22 comentarios)
5,8
5,8
Avatar del usuario
See private message.
$25,50 USD en 14 días
4,8 (43 comentarios)
5,4
5,4
Avatar del usuario
See private message.
$12,75 USD en 14 días
4,9 (69 comentarios)
4,2
4,2
Avatar del usuario
See private message.
$18,70 USD en 14 días
4,7 (31 comentarios)
3,2
3,2
Avatar del usuario
See private message.
$34 USD en 14 días
4,4 (6 comentarios)
1,6
1,6
Avatar del usuario
See private message.
$42,50 USD en 14 días
5,0 (4 comentarios)
1,3
1,3
Avatar del usuario
See private message.
$25,50 USD en 14 días
5,0 (2 comentarios)
0,0
0,0
Avatar del usuario
See private message.
$15,30 USD en 14 días
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de PAKISTAN
Pakistan
0,7
2
Miembro desde mar 27, 2002

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.