C 2 questions computer science homework help

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.

 
Do you need a similar assignment done for you from scratch? We have qualified writers to help you. We assure you an A+ quality paper that is free from plagiarism. Order now for an Amazing Discount!
Use Discount Code "Newclient" for a 15% Discount!

NB: We do not resell papers. Upon ordering, we do an original paper exclusively for you.