Academic coaching, editing, and research guidance for university students.

C++ 2 questions, computer science homework help

1 min read
  

1.Let primes be an array of the 25 prime numbers from 1 to 100. int primes[] = { 2,  3,  5,  7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97};Write a program that prompts the user to enter a number from 1 to 100 and outputs how many numbers in the array are larger than it.2.Let names and grades be two parallel arrays holding the names and associated grades of students. const string names[] = {“Mark”, “Bill”, “Celeste”, “John”, “Jane”};  const int grades[] = {95, 85, 91, 75, 99};Write a program to find out the highest grade and the person who got it; and the lowest grade and the name of the person who got it.

Academic integrity note

Use this educational resource to build your understanding. Follow your institution’s rules and cite sources appropriately.

Want feedback on your own work?

Request Academic Support

Leave a Reply

Your email address will not be published. Required fields are marked *