Write a program to read in a collection of integer values

Assignment Help Computer Engineering
Reference no: EM131908110

Assignment

For this assignment you will want to create 2 files called "RunMyMethods" and "MyMethods" The first file "RunMyMethods" will contain the main that calls a menu method and will have a loop structure that will allow a user to choose what program they want to run. The menu displayed will look like this:

1) Product no negatives
2) Find Twelve
3) Max Min Avg
4) Letter Grade
5) Exit

The second file "MyMethods" will have methods in it that correspond to the menu shown above. The methods should do the following:

1. Write a program that will find the product of a collection of data values. The program should ignore all negative values and terminate when a zero value is encountered.

2. Write a program to read in a collection of integer values, and find and print the index of the first occurrence and last occurrence of the number 12. The program should print an index value of 0 if the number 12 is not found. The index is the sequence number of the data item 12. For example if the eighth data item is the only 12, then the index value 8 should be printed for the first and last occurrence.

3. Write a program to find the minimum, maximum, and average values of a collection of data values. The number of data values is unspecified.

4. Write a program to read in a collection of exam scores ranging in value from 0 to 100. The program should count and print the number of A's (90 to 100), B's (70 to 89), C's (50 to 69), D's (35 to 49) and F's (0 to 34). The program should also print each score and its letter grade. Use the following test data:

63 75 72 72 78 67 80 63 0 90 89 43 59 99 82 12 100 75.

Reference no: EM131908110

Questions Cloud

Derive the steady sate equations for the state probabilities : A generator system consists of a primary and a standby unit. the primary fails at a constant rate of 2 per manth, the standby unit fails only when on-line.
Calculate present worth after tax : Make equal principal payments, plus interest on the unpaid balance at the end of the period. Calculate Present Worth after Tax.
Why strategy and strategic management is important : Understanding the importance of mission and vision and their relationship to strategy and strategic management is important.
What implementation needed to make app company successful : For starting up a new "APP" company, what is needed to IMPLEMENT each marketing strategy and identifying the individuals(or office) responsible.
Write a program to read in a collection of integer values : Write a program to read in a collection of integer values, and find and print the index of the first occurrence and last occurrence of the number 12.
Discuss about the implementation of erp systems : Selection and implementation of ERP systems is time consuming and very expensive. There are a number of published cases of failed ERP systems.
Find the periodic payments pmt necessary : Find the periodic payments PMT necessary to accumulate the given amount in an annuity account. HINT [See Quick Example 2.]
Describe the strategic management issue : Describe the strategic management issue(s) that this implies for an existing "traditional" insurance company and the insurance industry overall
Write a program that keeps asking the user for a password : Write a program that keeps asking the user for a password until they correctly name it. Once they correctly enter the password, the program congratulates user.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd