Working program that uses the repetition control structure

Assignment Help Business Management
Reference no: EM132275423

Focus

1. While loops and For loops

2. Count-controlled loops

3. Sentinel controlled loops

Working program that uses the Repetition Control Structure including the While Loop, the For Loop, and Nested Loops

Part A: Write Something New!

Python program to solve the following problem:

You are the professor for COSC 1305 at St Edwards University. You want to create a program that will take in the numeric grades of the students in your class. Since the students in a class vary from semester to semester, there is no fixed number assigned to the number of students. You will keep track of how many students' grades you input. You will stop taking input when the student enters a grade of -1.

Your program will use loops and will accomplish the following:

1. Read in a numeric grade from a student.

2. Convert the numeric grade to a letter grade using the grade policies in your syllabus.

3. Keep a running total of the numeric grades entered.

4. Keep a count of the number of grades entered.

5. Issue a message that comments on the letter grade earned. As an example, you may write "You made an F! Obviously you did not study!"

6. At the end the program will calculate a class average unless there were no grades entered.

All input to the program will be interactive from the keyboard. The output of the program will include the individual grades converted, the message issued to the student, a class average, and the number of grades entered.

Use the IDLE programming environment if you are using Python with IDLE. Remember to use the extension .py.

Submit your file to Canvas and name the file: Lab6PartB_yourSEUusername turn the text file into Canvas for 'Lab 6'.

Run and test your program for all conditions. Once you are sure it works you will turn in the items listed in the next section.

Reference no: EM132275423

Questions Cloud

Width of the span of control and the number of levels : A potential conflict may exist between the width of the span of control and the number of levels.
Capture and paste screenshots of database : Capture and paste screenshots of your database and tables into a Microsoft PowerPoint presentation or Word document
Describe topic counselor ethics and responsibilities : Follow the directions below to write a paper of 1,750-2,100 words on counselor ethics and responsibilities. Provide a thoughtful response to each.
Any gaps in alignment of strategy for the organization : Reviewing your Strategic Plan that you have developed for your hospital, anticipate any gaps in alignment of strategy for the organization.
Working program that uses the repetition control structure : Working program that uses the Repetition Control Structure including the While Loop, the For Loop, and Nested Loops
Evaluate the relationship between congress and the president : Discuss two (2) reasons why the presidential duties may conflict with the role of Congress. Justify your response with examples.
What interventions might help chris stop hitting : Chris is a 6-year-old male who just started hitting his peers at school. His teacher discovered this behavior was learned from another student.
Production strategies is appropriate for high-cost business : Which of the following production strategies is most appropriate for a High-cost business? In general, research linking diversity and firm performance?
Thinking about the concept of strategic partnerships : This is an exercise in thinking about the concept of strategic partnerships.

Reviews

Write a Review

Business Management Questions & Answers

  Statements regarding the hypothetical scenario

Which of the following statements regarding the hypothetical scenario above is most correct?

  Reimbursement methodologies

In a two page, double spaced document using references in APA Format: A fee schedule is a cost-based, fee for service reimbursement methodology.

  What are the basic translation methods

What is translation exposure? Transaction exposure?-  What are the basic translation methods? How do they differ?

  Quality of machinery and speed of shipping

1. Eliminate one of the suppliers based on the quality of machinery and speed of shipping.

  What will happen to the equilibrium price of crude oil

What will happen to the equilibrium price of crude oil if we know that: a) oil producers succeeded in reducing the supply of crude oil by 5%, and b)

  What will the after-tax annual interest savings for nww

What will the after-tax annual interest savings for NWW be if the refunding takes place? What is the required after-tax refunding investment outlay, i.e., the cash outlay at the time of the refunding?

  Financial statements of american

Write a paper in APA format and compare and contrast current (2017) financial statements of American, Delta, and United.

  Great resource regarding annotated bibliographies

The CSU Success Center offers a great resource regarding annotated bibliographies. The webinar below is designed to walk you through the process of creating an annotated bibliography. Topics covered will include selecting proper sources, highlight..

  Planning contribute to organizational competitiveness

How does HR strategic planning contribute to organizational competitiveness?

  Bea release highlights document

What trends in real GDP have occurred in the time period shown in the BEA release highlights document?

  Analyze the audience

Imagine you have a meeting with the CEO and other officers of a company that invests in distance learning startups.

  Probability that the project will be successful

If the project is? successful, the bank will earn ?$80; if it is?unsuccessful, the bank will lose ?$100. The probability that the project will be successful is

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