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.
C++ 2 questions, computer science homework help
How it works
- Paste your instructions in the instructions box. You can also attach an instructions file
- Select the writer category, deadline, education level and review the instructions
- Make a payment for the order to be assignment to a writer
- Download the paper after the writer uploads it
Will the writer plagiarize my essay?
You will get a plagiarism-free paper and you can get an originality report upon request.
Is this service safe?
All the personal information is confidential and we have 100% safe payment methods. We also guarantee good grades
Recent Comments