Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need this ASAP and a new code thats not already on cheg thank you The purpose of Homework 1 is brushing up C+skills and

I need this ASAP and a new code thats not already on cheg thank you image text in transcribed
The purpose of Homework 1 is brushing up C+skills and warming up for future programming assignments. Vectors are not allowed. Linkedlist in C++ library should not be used. The program has the following functionality: 1. Once it starts, it asks the user to type the input file name (a tt file. The print out information must be: Please input the filename: 2. The program uses the file name to open the file. The file has a number of lines. Each line has two numbers separated by a comma. Therefore, there are actually two columns of numbers. For example: 312312, 56877 2267, 3698 3, 3478 87907, 768 3. The program processes the input data to calculate the average value of all valid numbers in the first column and the largest value of all valid numbers in the second column. The print out should be The average value of all numbers in the first column: XXX,X00x The largest value of all numbers in the second column:XXXXOX The total number of rows in the file is: XXXXX The invalid numbers are: XXX, XXX, XOx Requirements: 1. will be O if it does not compile or crash when it startsl The homework must be done in C++ 2. [596] The Following identification information must be included at the beginning of your cpp Your code must work under Code::Blocks and GCC (or g++) compiler file //Name: XxxxxX //Email: Xxxx@csueastbay.edu [596] The output average value should retain 4 decimal digits. [1096] The program must use cin and cout to deal with command line input and output. [1096] The program must ask user to input again without crashing if users input invalid file names 3. 4, 5. 6, [1096] The program must use arrays to solve the problem. 7. [3096] Students must implement loops by themselves to calculate the average and to find the largest value, invalid numbers, and number of rows. 8. [3096] There are invalid numbers (like 1P24 ) in the input data file, make sure those numbers will be recognized and abandoned automatically by your program without crashing

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

More Books

Students also viewed these Databases questions