Question: This project has two parts: Part 1: 100 points Objective of this project: Utilizing loops in reading an array, utilizing searching and sorting arrays. Failure

This project has two parts:

Part 1: 100 points

Objective of this project: Utilizing loops in reading an array, utilizing searching and sorting arrays.

Failure to utilize theobjectiveswill result in a grade of zero for this part.

Write a program that reads an array of 10 integer from standard keyboard (user) utilizing a loop and outputs the following

  • The elements of array
  • Minimum value
  • Maximum value
  • product of all the numbers.

Input validation: Your program should only accept integers.

Part 2: 100 points

Objectives of this project:Reading from a file and using functions in a character analysis program.

Failure to read from a file and use of function will result in a grade of zero.

Write a function that reads the contents of a filenamed text.txt(you will have to create this file on notepad or any other text editor and write a sentence of your choice. Your sentence should include upper case, lower case, and numbers. Keep in mind you need to submit this file as well) and determine the following:

  • The number of uppercase letters in the file
  • The number of lowercase letters in the file
  • The number of digits in the file

Upon finishing the task, program will ask the user if they would like to read the same file again and the program will re-start (you need to utilize a loop to do so) should the user prompt the program with 'Y'.

Prompts AndOutputLabels.There are no prompts-- nothing is read from standard keyboard, just from the filetext.txt. Each of the numbers calculated is displayed on a separate line onstandard output, preceded by the following prompts (respectively): "Uppercasecharacters: ", "Lowercasecharacters: ", "Digits: ".

Input Validation.None.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!