Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions