Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can I get some help or ideas with solving number 3 on the list please. This is what I have so far... This program should:

image text in transcribed

Can I get some help or ideas with solving number 3 on the list please. This is what I have so far...

image text in transcribed

This program should: 1. Read an input file name from a user (note: the input file contains several integer numbers) 2. Display the minimum number among the input values 3. Display a list of distinct elements in the input and the number of occurrences of each distinct value 4. Be submitted as hw1-1.cpp For the assignment, you can assume that the number of input values in a file can't be more than 30. This is a sample execution of your program. For the assignment, your program has to display the result exactly as the sample run. User input is in bold. Enter input file name: t1.txt Min Number: -3 Number Count 14 15 int main() { cout > file_name; ifstream f_input(file_name); if (f_input.fail() cout > size; int nums[size]; int min = nums[size]; // Read values from the file. for (int i=0; i > nums[i]; cout

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning ASP.NET 2.0 And Databases

Authors: John Kauffman, Bradley Millington

1st Edition

0471781347, 978-0471781349

More Books

Students also viewed these Databases questions