Create an array

Assignment Help C/C++ Programming
Reference no: EM133051377

Question: You just computed final scores for all of the students in your classroom and would like to tell each student their ranking when compared to the other students in your class. For example, if Remi's score is 14, Yan's score is 2 and Maria's score is 20 then Remi's ranking is 2 since he has the second highest score, Yan's ranking is 3 since he has the lowest score and Maria's ranking is 1 since she has the highest score amongst the three students.

You'll be given the following inputs: first the number of students, then all of the students' final scores, then finally, all of the students' names.
Be sure to look at the example below.

Your output should be one line per student, with each line displaying the student's name followed by "rank is" followed by the student's rank.

The order in which names are displayed in the output should be the same as the order given in the input. The ranking starts at 1 (meaning this student has the highest score), 2 for the second highest grade etc.

Note that no name has more than 50 characters and there are no more than 30 students.

ask the score for each student to create a array

ask for the names and print the ranks

Attachment:- Students ranking.rar

Reference no: EM133051377

Questions Cloud

Executive leadership : Are you as a leader able to maintain a personal friendship with some member(s) of your work group or a team without creating the perception of favoritism?
How does teamwork affect innovation in company : As an example of a design and consulting firm, the firm uses a design thinking approach to design products, services, and digital experiences.
How much is the company adjusted unamortized bond discount : Geisha Company issued for P938,514 its 9% P1,000,000 face value bonds to mature on July 1, 2029. How much is the company adjusted unamortized bond discount
Explain the international documentations : A. Research and explain the following International Documentations based on Global Value Chain:
Create an array : Ask the score for each student to create a array - Note that no name has more than 50 characters and there are no more than 30 students.
Data problem or cultural problem : Why do so many organizations spend money on enterprise systems yet they seldom use them to their maximum potential? Is it a data problem or a cultural problem?
Record all the necessary journal entries for the revaluation : On 30 June 2021, Peter Ltd obtains a fair value for equipment of $50 000. Record all the necessary journal entries for the revaluation
Are good managers always good leaders : 1. Are good managers always good leaders? Why or why not.
Crew resource management : Explain the phrases "authority with participation" and "assertiveness with respect" in terms of Crew Resource Management.

Reviews

len3051377

12/20/2021 9:30:04 PM

I am in the section of sort and searching with arrays please you must not use thing like this temp = (char*)calloc(30, sizeof(char)); only array sort and searching

Write a Review

C/C++ Programming Questions & Answers

  Program reads a number and prints all of its binary digit

Write a program that reads a number and prints all of its binary digits. Print the remainder number % 2, thenreplace the number with number / 2. Keep going until the number is 0.

  Design a class include a constructor and members

Design your own C++ class. Keep it simple but use the readings this week to include a constructor, members and methods. Be sure to test your class by constructing it and using its functionality

  Print element of array number using array subscript notation

Assume that single-precision floating-point numbers are stored in 4 bytes, and that the starting address of the array is at location 1002500 in memory.

  What is that print value of b

Consider the program below and what is that print value of b?

  Write a function called highestpay that takes an array

Write a function called highestPay that takes an array of Employees like the one above and prints out the name of the employee with the highest salary.

  Display menus for converting length and calculates results

Write a C program replace.c that asks the user to enter a three-digit integer and then replace each digit by the sum of that digit plus 6 modulus 10.

  What impact do selection structures have on teste a program

What impact do selection structures have on teste a program?

  Principle ofsuperposition to determine that system is linear

Apply the principle of superposition to determine whether the following systems are linear. Sketch what the plot of the function looks like.

  An arithmetic expression

The statements of that expression language consist of an arithmetic expression followed by a list of assignments. Assignments are separated from the expression and each other by commas. A semicolon terminates the expression. The arithmetic expr..

  Implement a solution via semaphores and threads

Implement a solution via semaphores and threads to the n reader 1 writer problem. Fairness always matters. You will accept the number of readers from the command line

  Create a program for a pizza shop

Implementing a program in multiple languages - implement or incorporate additional language features that may be lacking, i.e. data structures.

  Questionnbsp the template method pattern and the strategy

questionnbsp the template method pattern and the strategy pattern both abstract some computation in the form of

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd