Combine the programs from
Total number of scores
Total number of each letter grade
Percentage of total for each letter grade
Range of scores: lowest and highest
Average score
As before, enter a negative score as a sentinel value to end the data input and display the statistics.
Trending nowThis is a popular solution!
Chapter 4 Solutions
Java: An Introduction to Problem Solving and Programming (8th Edition)
Additional Engineering Textbook Solutions
C Programming Language
Java How to Program, Early Objects (11th Edition) (Deitel: How to Program)
Introduction to Java Programming and Data Structures, Comprehensive Version (11th Edition)
Concepts of Programming Languages (11th Edition)
Starting Out with Java: From Control Structures through Objects (6th Edition)
Introduction To Programming Using Visual Basic (11th Edition)
- 110% Assignment 3- S4.pdf SalaryStmt.py Write a python program that accepts name of an employee and employee's yearly sales of last five years. The data should be collected for n employees. The value ofn should also be accepted as input. All amounts should be displayed with three decimal places. The output should be displayed as a table containing the Employee name, Average Sales and Bonus. The program must define and use a function with Total Sales as a parameter and should calculate the Average Sales and Bonus for each employee. Bonus must be calculated based on the following table: Average Sales (AS) ASAS<7500 75002AS<10000 AS210000arrow_forwardComplete the following Codearrow_forwardPlease write code that would run in VBA please show code in VBAarrow_forward
- Question 3 The results from the mayor's race have been reported by each precinct as follows: Table 2: Results of mayor's race Precinct Candidate A Candidate B Candidate C Candidate D 1 192 48 206 37 147 90 312 21 186 12 121 38 4 114 21 408 39 267 13 382 29 Write a program to do the following: (a) Display the table with appropriate labels for the rows and columns. (b) Compute and display the toral number of votes received for each precinct. (c) The program displays the highest votes among the precinct. (d) The program displays the total number of votes for Candidate A.arrow_forwardSection: Algorithm 7. s] A transport consultant has created a file of information about trips collected from individuals who have participated in a survey. This information includes start_time and end_time variables. One of the items contained in the file is the duration of each trip (that is, end_time – start_time) in minutes. The consultant is trying to work out how to calculate the number of trips with duration greater than 60 minutes (that is, how many trips take longer than an hour) and requires your assistance to develop an algorithm. You can assume that the durations are read one at a time and should only be read until EOF (end of file) is reached. i. ] *Develop a flowchart to show your algorithm, using the diagrammatic conventions described in the lecture. s] What is the likely complexity of your program using big-O notation? ** 11. Clearly point out what the primary parameters are and define your terms.arrow_forwardPython coding exercise: please include comments to further my understanding Goal #1: import financial data given into your program provided to you as a CSV formatted text file Use the following data for testing (the following is only a sample of the data; there are over 4000 rows of data):*Note: The data you will read in is linear by date (but, non-contiguous due to holidays and weekends,) reflecting a timeline of stock performance in chronological order; however your program should run through the days in the data from the earliest date to the most recent Date Open High Low Close Adj Close Volume 1/3/2000 3.745536 4.017857 3.631696 3.997768 2.69592 1.34E+08 1/4/2000 3.866071 3.950893 3.613839 3.660714 2.468626 1.28E+08 1/5/2000 3.705357 3.948661 3.678571 3.714286 2.504751 1.95E+08 1/6/2000 3.790179 3.821429 3.392857 3.392857 2.287994 1.92E+08 1/7/2000 3.446429 3.607143 3.410714 3.553571 2.396373 1.15E+08 Write the code in the clearest and most efficient way possible…arrow_forward
- Programming language is C#arrow_forwardTask 2: Using Function-Temperature Table The formula for converting a temperature from Fahrenheit to Celsius is: 5 C = (F-32) Where F is the Fahrenheit temperature and C is the Celsius temperature. Write a function named Celsius that accepts a Fahrenheit temperature as an argument. The function should return the temperature, converted to Celsius. Demonstrate the function by calling it in a loop that displays a table of Fahrenheit temp. 0 through 20 and there Celsius equivalents. The program should display the number of numbers found in the file, the sum of the numbers, and the average of the numbers.arrow_forward: Animating a Plot Problem: The MATLAB code with the initial conditions and one dimensional motion equation are given in the MProject2_Assignment1_base.m file. Modify the code to explore how to animate the plot, use functions to create plot functionarrow_forward
- Old-fashioned photographs from the nineteenth century are not quite black and white and not quite color, but seem to have shades of gray, brown, and blue. This effect is known as sepia, as shown in the figures below. Original Sepia Original Image & Sepia Image Write and test a function named sepia that converts a color image to sepia. This function should first call grayscale to convert the color image to grayscale. A code segment for transforming the grayscale values to achieve a sepia effect follows.Note that the value for green does not change. (red, green, blue) = image.getPixel(x, y)if red < 63: red = int(red * 1.1) blue = int(blue * 0.9)elif red < 192: red = int(red * 1.15) blue = int(blue * 0.85)else: red = min(int(red * 1.08), 255) blue = int(blue * 0.93) 1.GUI Test Generate sepia image 2.Convert gif to png 3.Image Test Image has been converted to sepiaarrow_forwardAir Pacific Limited, Fiji's international airline, operates international and domestic services around the Pacific and to North America and Hong Kong. It has its head office at the Air Pacific Maintenance & Administration Centre in Nadi. You are required to write a program that passengers can use to chose seats for aircraft FJ501. The aircraft has 13 rows with 5 seats in each row. Rows 1 to 4 are first class, the remaining rows are economy class. The program should display the seating plan for the aircraft. Empty seats are shown with x and the seats that are booked will have the passenger name (first name plus initials of other names) on it. To reserve a seat, they have to provide their ticket type (First Class or Economy Class), the seat they prefer and their name (first name plus initials of other names). The program verifies that the seat is empty then only bookings are done. Passengers are also allowed to check the seats they are booked for by providing the passenger name (first…arrow_forwardLanguage: Pyhon. Processing: Mode 3.54 (Jonathan Feinberg) Please post sketch fle code. Create a sketch named boston pass. This program will tell the user whether they passed a course or not Please read the entire question before starting. Create the following variables using an appropriate name and datatype (do not name them first variable, etc.) First variable: keeps track of the student mark (whole number) Second variable: keeps track of a Boolean value indicating if the student passed Third variable: keeps track of amount the student passed or failed by (whole number) Create the following functions using appropriate names (do not name them first function, etc.) First function: accepts one numeric value, purpose is to see if a student passed the course (50 or more), returns a true or false value. Second function: accepts one numeric value, purpose is to see how much more or less than 50 the student received, returns the amount higher or lower than 50. Third function: accepts one…arrow_forward
- C++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology Ptr