Write a program with two functions Main and ValuesSplit that will read the data for student's...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a program with two functions Main and ValuesSplit that will read the data for student's grades from a file, the Values Split function will receive a list containing integer values. It returns another list where the grades between 75-100and other grades are separated from each other. The grades with the high mark should be at the beginning and the other ones at the end. Each line in the file can contain any number of grades values. After finishing write the results in an output file. Note: All reading, and writing must be done in the main function, a counter should be there to count the number of the grades which are between 75-100the list should be ordered before sending it to ValuesSplit. Hint: You can use the list methods if needed. Output: out-Notepad File Edit Format View Help Original list 0 2 Split list 100 96 95 92 83 82 there are 7 form B to A+ grades 2 3 3 4 6 77 7 0 8 2 8 2 9 3 12 3 12 45 4 6 55 77 7 8 82 8 83 9 92 O 95 96 100 12 12 45 55 X data-Notepad File Edit Format View Help 2 3 55 12 45 7 8 95 100 77 83 92 9 4 6 12 8 0 3 2 82 96 Write a program with two functions Main and ValuesSplit that will read the data for student's grades from a file, the Values Split function will receive a list containing integer values. It returns another list where the grades between 75-100and other grades are separated from each other. The grades with the high mark should be at the beginning and the other ones at the end. Each line in the file can contain any number of grades values. After finishing write the results in an output file. Note: All reading, and writing must be done in the main function, a counter should be there to count the number of the grades which are between 75-100the list should be ordered before sending it to ValuesSplit. Hint: You can use the list methods if needed. Output: out-Notepad File Edit Format View Help Original list 0 2 Split list 100 96 95 92 83 82 there are 7 form B to A+ grades 2 3 3 4 6 77 7 0 8 2 8 2 9 3 12 3 12 45 4 6 55 77 7 8 82 8 83 9 92 O 95 96 100 12 12 45 55 X data-Notepad File Edit Format View Help 2 3 55 12 45 7 8 95 100 77 83 92 9 4 6 12 8 0 3 2 82 96
Expert Answer:
Related Book For
Posted Date:
Students also viewed these programming questions
-
You are required to write a Python program that will manage character (heroes and villain) information. Character (hero and villain) information will be stored in a text file that will be read in...
-
This lab requires you to develop a solution using Java object-oriented programming that simulates an order system for children's toys. The child will manage a collection/list of toys (each child owns...
-
Suppose that you are holding your toy submarine under the water. You release it and it begins to ascend. The graph models the depth of the submarine as a function of time. What is the domain and...
-
On September 30, Bello International borrows $320,000 from Chase Bank with a 9-month, 8% note. Required: What journal entry is made at Bello's year-end, December 31?
-
Lyons, Inc., provides consulting services. A few of the companys business transactions occurring during June are described below: On June 1, the company billed customers $5,000 on account for...
-
Simulate tossing a coin. (a) For a balanced coin, generate 100 flips. (b) For a coin with probability of heads 0.8, generate 100 flips.
-
Downward demand spiral Spirelli Company is about to enter the highly competitive personal electronics market with a new optical reader. In anticipation of future growth, the company has leased a...
-
The balance sheet for Trinity Motors Company for December 3 1 of 2 0 2 2 and 2 0 2 3 . What was the cash flow to stockholders in 2 0 2 3 ?
-
Determine the forces in members AB , AC , and AD . Point M is the centroid of triangle BCD . The forces are positive if in tension, negative if in compression. B 5.2' M 5.2' 1190 lb x D 5.2 6.6'
-
Given the information here, what should Jason's adjusted checkbook balance be? Bank balance: Outstanding checks: Deposit in transit: ATM fees: Interest earned: Checkbook balance: $ 490 $ 224 $126 $...
-
Assume that during 2019, Cypress Semiconductor Corporation reported net cash provided by operating activities of $155,793,000, net cash used in investing activities of $207,826,000 (including cash...
-
What are the five steps for identifying packages and creating package diagrams?
-
What are three decisions that an entrepreneur might face in the start-up situation and how would an effectuator make those decisions?
-
Give three examples of bilateral contracts from your everyday life that are not mentioned in the text.
-
Find out what contracts are considered formal contracts in your jurisdiction.
-
In terms of Return on Assets, briefly explain the difference between high margin and low turnover and low margin and high turnover.
-
A random sample of 10 houses heated with natural gas in a particular area, is selected, and the amount of gas (in therms) used during the month of January is determined for each house. The resulting...
-
What statement would you use to assign the value 32 to the variable cheeses?
-
What does a derived class inherit from a base class?
-
What kinds of functions are good candidates for inline status?
-
An old-fashioned tire swing exerts a force on the branch and a torque about the point where the branch meets the trunk. If you hang the swing closer to the trunk, this will --the force and-- the...
-
Which of these objects is in static equilibrium? A. B. C. D.
-
A beam with a pivot on its le ft end is suspended from a rope. Tn which direction is the force of the pivot on the beam? A. B. C. D. E.
Study smarter with the SolutionInn App