Question
Can someone please provide the mode for this homework and solve it. Thanks! This is for Intro to programming C++ CSMC 140! Larger than n
Can someone please provide the mode for this homework and solve it. Thanks! This is for Intro to programming C++ CSMC 140!
Larger than n
In a program, write a function that accepts three arguments: an array, the size of the array, and a number n. Assume the array contains integers. The function should display all of the numbers in the array that are greater than the number n.
Submit: source file .cpp, screenshots of output and the input file used
Input from the keyboard: The filename and path of a list of integer numbers.
The number n to test the file numbers.
Output to the console: The numbers in the array that are greater than the input number n.
Assumptions: The list of numbers input from the file will not contain more than 50 integers.
Sample file: hw7File.txt
4
6
2
7
5
3
8
34
62
9
7
5
3
22
11
Sample console output:
HOMEWORK #7
Enter the filename with the list of numbers G:hw7File.txt
Enter the integer to show integers greater than 5
The numbers in the list that are greater than 5
6
7
8
34
62
9
7
22
11
Programmer: insert your name here
Press any key to continue . . .
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started