Create a file values.txt contains the data

Assignment Help Programming Languages
Reference no: EM13763540

Create a file "values.txt" contains the following data: 88 85 89 64 78 85 92 60 91 96 63 59 83 89 74 93 92 92 63 100

You will write a program that will give you the following output:

Lowest Highest Average

59 100 81.8

Grade Distribution

50~59: 1

60~69: 4

70~79: 2

80~89: 6

90~100: 7

Make sure your program is clear with no syntactical errors, correctly uses i/o syntax, correctly uses branching and looping syntax, that it contains functions with correct parameters and return values, that it correctly uses arrays, and that you provide useful comments throughout your program. You must use basic elements of the programming language, use of include files, use of a working main function, declaration and use of data types. You must produce a program that will compile and execute without syntactical errors. You must use input and output mechanisms by processing an input file and saving the contents of the file into an array. You must create and initialize two arrays using the appropriate data type, one array for storing the input data from file, another one for grade distribution. You must be able to access individual array elements and be able to retrieve their information to produce program output. You must use branching mechanisms to include if, else, or switch statements and use looping mechanisms to solve the grade distribution problem. Your program must have four functions: lowest, highest, average, and gradeDistribution. You must include comments explaining your choice of parameters and return types for all of your functions.

Reference no: EM13763540

Questions Cloud

Organization of routing : An organization has a number of tools available when determining how best to address performance issues on their network. The organization can use subnetting or they can use segmentation.
Explain definition of mental retardation disabilities : What you have learned about the use of labels. Explain The evolving definition of mental retardation/intellectual disabilities.
Decreasing levels of photosynthesis : What are the positive and negative effects of wildfires? Are the effects primarily restricted to rural areas, and therefore, of little importance to the bulk of society?
Describe the roles probation and parole officers : Discuss the history of probation and parole in criminal justice and describe the roles probation and parole officers have in the criminal justice system
Create a file values.txt contains the data : Make sure your program is clear with no syntactical errors, correctly uses i/o syntax, correctly uses branching and looping syntax, that it contains functions with correct parameters and return values, that it correctly uses arrays, and that you p..
Osi layer-tcp/ip model : The OSI Layer 3 (Network Layer) is one of the layers that perform packet segmentation. The OSI Layer 3 is roughly equivalent to the Internet Layer of the TCP/IP model and the Layer 4 (Transport Layer) of the OSI model is roughly equivalent to the ..
Evolution the role throughout boxing history : How does an individual become a boxing judge and the evolution the role throughout boxing history? What are the requirements/qualifications to be a judge for a professional boxing bout
Surplus of imports brought into the u.s. : What happens when there is a surplus of imports brought into the U.S.? Cite a specific example of a product with an import surplus, and the impact that has on the U.S. businesses and consumers involved.
Write paper that describe an organizational culture for mnc : Write a 5-7 page paper in which you Describe an organizational culture for your fictional MNC that would ease entry into the given market.

Reviews

Write a Review

Programming Languages Questions & Answers

  Create application which simulates functionality of gas pump

Create application which simulates functionality of gas pump. The user enters number of gallons to buy and clicks desired grade.

  Program of rainfall report

Write a PROGRAM that reads in from a ?le a starting month name, an ending month name,and then the monthly rainfall for each month during that period.

  Write program to display company payroll report in list box

Write a program that display a company payroll report in a list box. the program should read each employees name, hourly rate and hours worked from a file and produce a report.

  Input number by user and display positive and negative

Input a number entered by the user and display "positive" if it is greater than zero, "negative" if it is less than zero, and "zero" if it is equal to zero.

  Write program to use text file to create relative file

Write a program that uses the text file to create a corresponding relative file. Translate the stock code to an appropriate relative record address.

  Design a class-based solution to a problem

To design a class-based solution to a problem using multiple data structures.

  Develop procedure to returns recent order information

Develop a procedure that returns the most recent order information for aparticular basket. This procedure must determine most recent stage entry from the BB_BASKETSTATUS table

  Write program to ask user to enter number between a range

Write down program which asks user to enter number between 1 and 100. Use input validation to make sure that a valid number is entered before continuing program.

  Write program to compute salary of employee

Write a program to compute the salary of an employee according to his/her grade assigned by employer. You should declare class named CalSalary whose private data members will be employee.

  Write down the xml file with markup tags

Write down the XML file with markup tags and some sample data to represent list of invoices. Write the XML tags for two invoices in list.

  Program to checks to see if the value of a is valid

Checks to see if the value of a is 0; if it is, the code prints the message "no solution for a=0" and returns from the function.

  Program takes input from a user in the form of a phrase

This program takes input from a user in the form of a phrase. It then converts the phrase to ig latin.

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