Write a program that can calculate the class average for a number of students. The user should be able to enter the grades, use sentinel-controlled repetition to manage input. (python) Sample Output: Enter grade, -1 to end: 75 Enter grade, -1 to end: 94 Enter grade, -1 to end: 97 Enter grade, -1 to end: 88 Enter grade, -1 to end: 70 Enter grade, -1 to end: 64 Enter grade, -1 to end: 83 Enter grade, -1 to end: 89 Enter grade, -1 to end: -1 class average is 82.5 2- Write a program that reads in two integers and determines and prints whether the first is a multiple of the second. (Hint: Use the modulus operator.
Q: Write a program that will process an arbitrary number of grades each time the program is run.…
A: #include<iostream> using namespace std; int main(){ int count,grade, gradeAs=0, gradeBs=0,…
Q: 1. Write a program where 52 deck of cards are suffled and 4 unique cards are dealt to a player. A…
A: #include<iostream> #include<cstdlib> #include<string.h> using namespace std; int…
Q: Write a program that generates a number randomly by using rand ( ) function and user will have to…
A: #include<iostream> #include<stdlib.h> #include<ctime> using namespace std; int…
Q: Q7: Code a complete Python program that performs the following operations by reading the weight of…
A: # maintain a flag if user enter 0 then value of flag is changed to 0 and loop exit flag = 1# created…
Q: Write a program that takes any number of integers as input, and outputs the average and max.
A: The if condition in the given code will produce the error as TypeError as the max variable is a…
Q: User Prompts Your program will allow a human user to play Rock, Paper, Scissors with the computer.…
A: #Program import random def main(): print('ROCK'+'PAPER'+''+'SCISSORS'+''+'in Python') print()…
Q: Write a wholly creative quiz program that consists of three original questions that you make up…
A: Error in the program-Remove the points variable after each fragment of code except the point…
Q: A certain program for giving an example computation in division that will accept two numbers. The…
A:
Q: Programming Practice a) Write a program which allows a teacher to determine the min, max, and…
A: Disclaimer: “Since you have asked multiple questions, we will solve the first question for you. If…
Q: using python Write a wholly creative quiz program that consists of three original questions that…
A: Below is the required python program: - Approach: - Defining the main function. Initializing the…
Q: In a library catalog, the followings are stored about each book: the author and the title, available…
A: Sol: Algorithms Step1: First of all we have taken input n for count the book Step2 then we have…
Q: [python language] Write a program that takes a single user input then outputs the type of data…
A: HI THEREI AM ADDING ANSWER BELOWPLEASE GO THROUGH ITTHANK YOU
Q: Create a program that uses a loop to add two integer inputs together. Randomly decide whether it…
A: Solution :
Q: 1. In the game of Monopoly, a pair of dice are rolled to move a player's piece around the board. If…
A: %fifty times rollingplayer1_total_double = 0;player2_total_double = 0;player1_totalSteps =…
Q: ISP- Java Write a program that will output a right triangle based on user specified input height…
A: CODE:- import java.util.*; class Main{ public static void main(String args[]) { int i,j,rows;…
Q: odify the guessing-game program so that the user thinks of a number that the computer must guess.…
A: Given: odify the guessing-game program so that the user thinks of a number that the computer must…
Q: Statistics are often calculated with varying amounts of input data. Write a program that takes any…
A: Coded using Java.
Q: Exercise 2: Write a java program that asks user to enter a set of positive integer values. When the…
A: code: //importing required packageimport java.util.Scanner;//main classpublic class Main{ //main…
Q: Write a set of test cases – specific sets of data – to properly test a simple program ¡ Program…
A: Code: The triangle function accepts three integer parameters, which represent the lengths of the…
Q: Programming Lang - Java & using the Scanner class Create this program below Part A: While…
A: EXPLANATION: - The Fibonacci Sequence Detector works till input given by the user is either "quit"…
Q: Exercise #1: Write a program that prompts the user to input the total number of students that plan…
A: Your C++ program is given below with an output.
Q: Write c++ code that print summery of exam result and decide either student should have makeup class…
A: In step 2, you will get c++ code. The user is taking one input as class strength. The user also…
Q: 1. Hello (9 Lines) The very basic of programming is input and output, write a program that asks the…
A: Note: According to Bartleby guidelines we are allowed to answer only 1 question please repost the…
Q: 1) Write the program that can add given two numbers. Modify your program that can add any two…
A: Actually, program is a executable software that runs on a computer.
Q: Statistics are often calculated with varying amounts of input data. Write a program that takes any…
A: According to the information given:- We have to write a program on the basic of instruction given:-
Q: Blissful number: a number where every digit is greater than its immediate left digit is called a…
A: Here, Code instruction is given.
Q: Program Input/Output The table below shows sample test cases with input prompts and corresponding…
A: Given that write a python program to draw a chess board with alternate dark colors entered by the…
Q: Statistics are often calculated with varying amounts of input data. Write a program that takes any…
A: Java Program: import java.util.*; public class Main{ public static void main(String[] args)…
Q: Objects.bxt x 3.50 0.09 3.38 0.04 26.52 0.23 2571.35 1.75 96.95 0.09 An object will float if its…
A: Things to do in the program: Open file in reading mode Read the numbers from file and store it in…
Q: Q1. Write a program that inputs three integers and outputs their sum. Use the JOptionPane class for…
A: Joptionpane: Standard dialogue boxes, such as message dialogue boxes, confirm dialogue boxes, and…
Q: Modify the guessing-game program so that the user thinks of a number that the computer must guess.…
A: The code given in the problem has no limitation on the number of guesses. As a result, until the…
Q: In python: Prompt user for 5 inputs from 0-99 for jersey numbers along with 5 input (1-9) for…
A: A Python program for the given criteria is as follows, File name: “main.py” #Create dictionary…
Q: PYTHON!!!! Teachers in most school districts are paid on a schedule that provides a salary based on…
A: 1. Input the starting salary2. Input the annual % increase3. Input the number of years 4. Declare…
Q: (C++)Write a program that will allow a student to compute for his equivalent semestral grade. The…
A: C++ program to calculate the equivalent semester grade
Q: Problem #2: [35 pts] Write a java program that helps the Lebanese scout to create an online generate…
A: Code: import java.util.*;public class Main{ public static void main(String[] args) {…
Q: Create a program that takes in a student’s full names and marks for 3 In-class exercises, then…
A: Since the programming language is not mentioned in the question. So, we have solved this question…
Q: Write a program that performs a survey on beverages. The program should prompt for the next person…
A: Required: Write a program that performs a survey on beverages. The program should prompt for the…
Q: Write a program that takes any number of non-negative integers as input, and outputs the average and…
A: The required Java code is given below: import java.util.Scanner;public class AverageMax{ public…
Q: 8.12 LAB: Divide by x Write a program using integers user_num and x as input, and output user_num…
A: Given:
Q: Write a program that asks the user for the number of males and the number of females registered in a…
A: Note : Since it is not mentioned which programming language to use so, i preferred to use Python…
Q: 1- Write a program that reads a character and prints it only if it is 'y' or 'Y' (Simulation of…
A: NOTE: We’ll answer the first question since the exact one wasn’t specified. Please submit a new…
Q: Task 8 Write Python code of a program that reads an integer, and prints the integer if it is a…
A: Given:
Q: 1. Ask the user to input values for the first and second currency (e.g. USD for dollars, EUR for…
A: here we make simple java program to currency converter:…
Q: Write a wholly creative quiz program that consists of three original questions that you make up…
A: According to the Question below the Solution: Output:
Q: 3.12 LAB: Input and formatted output: House real estate summary Sites like Zillow get input about…
A: Coded using Python 3.
Q: 1. PYTHON Write the python code which selects a random number between 1 and 10, once. Prompt the…
A: 1)Code: As Our Company Policy we need to answer the very first question please post remaining…
Q: Statistics are often calculated with varying amounts of input data. Write a program that takes any…
A: Here I have created a list to store the elements entered by the user. Next, I have used a loop that…
Q: Statistics are often calculated with varying amounts of input data. Write a program that takes any…
A: Program #displaying message to user to enter number print("enter inputs:") #taking data input from…
1- Write a program that can calculate the class average for a number of students. The user should be able to enter the grades, use sentinel-controlled repetition to manage input. (python)
Sample Output:
Enter grade, -1 to end: 75
Enter grade, -1 to end: 94
Enter grade, -1 to end: 97
Enter grade, -1 to end: 88
Enter grade, -1 to end: 70
Enter grade, -1 to end: 64
Enter grade, -1 to end: 83
Enter grade, -1 to end: 89
Enter grade, -1 to end: -1
class average is 82.5
2- Write a program that reads in two integers and determines and prints whether the first is a multiple of the second. (Hint: Use the modulus operator.
Step by step
Solved in 2 steps with 5 images
- Write code for below problem. The input below is just an example and you should implement independent from the input. You will have an orthogonal triangle input from a file and you need to find the maximum sum of the numbers according to given rules below; 1. You will start from the top and move downwards to an adjacent number as in below. 2. You are only allowed to walk downwards and diagonally. 3. You can only walk over NON PRIME NUMBERS. 4. You have to reach at the end of the pyramid as much as possible. 5. You have to treat your input as pyramid. According to above rules the maximum sum of the numbers from top to bottom in below example is 24. *1 *8 4 2 *6 9 8 5 *9 3 As you can see this has several paths that fits the rule of NOT PRIME NUMBERS; 1>8>6>9, 1>4>6>9, 1>4>9>9 1 + 8 + 6 + 9 = 24. As you see 1, 8, 6, 9 are all NOT PRIME NUMBERS and walking over these yields the maximum sum.6.7 In Python, A palindrome is a word or a phrase that is the same when read both forward and backward. Examples are: "bob," "sees," or "never odd or even" (ignoring spaces). Write a program whose input is a word or phrase, and that outputs whether the input is a palindrome. Ex: If the input is: bob the output is: bob is a palindrome Ex: If the input is: bobby the output is: bobby is not a palindrome Hint: Start by removing spaces. Then check if a string is equivalent to it's reverse.Example Output The following output is an example of how your program should respond to the commands. The text in bold is the user-typed input. >>> StudentManager() $ AddStudent John, Doe, 3.7, 32 $ AddStudent Jean, Davis, 3.8, 24 $ AddStudent Aaron, Johnson, 3.6, 16 $ AddStudent John, Schwartzmann, 3.9, 28 $ PrintRoster John, Doe, 3.7, 32 Jean, Davis, 3.8, 24 Aaron, Johnson, 3.6, 16 John, Schwartzmann, 3.9, 28 $ SortRoster Name Aaron, Johnson, 3.6, 16 Jean, Davis, 3.8, 24 John, Doe, 3.7, 32 John, Schwartzmann, 3.9, 28 $ SortRoster GPA John, Schwartzmann, 3.9, 28 Jean, Davis, 3.8, 24 John, Doe, 3.7, 32 Aaron, Johnson, 3.6, 16 $ SortRoster Units John, Doe, 3.7, 32 John, Schwartzmann, 3.9 ,28 Jean, Davis, 3.8, 24 Aaron, Johnson, 3.6, 16 $ DeleteStudent Julia, Taylor Error! No student with that name was found in the roster. $ DeleteStudent Aaron, Johnson $ PrintRoster John, Doe, 3.7, 32 John, Schwartzmann, 3.9, 28 Jean, Davis, 3.8, 24 $ FindByFName…
- Create a program that takes in a student’s full names and marks for 3 In-class exercises, then calculate the average of this marks. This average mark is then categorized as follows: Marks obtained Grade Level Message 80 – 100 1 Magnificent!! 70 – 79 2 Excellent!! 60 – 69 3 Good work!! 50 – 59 4 Good!! 0 – 49 0 Fail – Try again next Year!! Greater than 100 or less than 0 X Invalid Marks!!, Marks too high. Or Invalid Marks!!, Negative marks not allowed. Sample run 1: Enter student full names: Goodluck Johnathan Enter 3 marks separated by spaces: 78 94.6 88 Output: Student name: Goodluck Johnathan Grade Level: 1 Comment: Magnificent!! Sample run 2: Enter student full names: Ellen Johnson Sirleaf Enter 3 marks separated by spaces: 200 104.87 99.9…PYTHON!!!! Teachers in most school districts are paid on a schedule that provides a salary based on their number of years of teaching experience. For example, a beginning teacher in the Lexington School District might be paid $30,000 the first year. For each year of experience after this first year, up to 10 years, the teacher receives a 2% increase over the preceding value. Write a program that displays a salary schedule, in tabular format, for teachers in a school district. The inputs are: Starting salary Annual percentage increase Number of years for which to print the schedule Each row in the schedule should contain the year number and the salary for that year An example of the program input and output is shown below: Enter the starting salary: $30000 Enter the annual % increase: 2 Enter the number of years: 10 Year Salary ------------- 1 30000.00 2 30600.00 3 31212.00 4 31836.24 5 32472.96 6 33122.42 7 33784.87 8 34460.57 9 35149.78 10 35852.78 Results you should get: Input:…6) Write a program to guess a number chosen by the user. In this program a user will choose asecret number from 1..maximum. The program will prompt the user for the maximum value,which the user will enter. The program will then make a guess as to the value of the secretnumber, and prompt the user to say if the actual number is higher, lower, or correct. Thecomputer will then guess another number until it guesses the correct secret number.
- ISP-Java Write a program whose input is two integers, and whose output is the first integer and subsequent increments of 10 as long as the value is less than or equal to the second integer. For coding simplicity, output a space after every integer, including the last. Ex: If the input is: -15 30 the output is: -15 -5 5 15 25 Ex: If the second integer is less than the first as in: 20 5 the output is: Second integer can't be less than the first.Please do this in Python Programming and provide Screenshots The output should be exact same like in the examples. If the output in the example is in 2 decimals, then it should be like that. 1c - Othello 1 Othello, is a 2-player deterministic (no use of dice), perfect information (no information only known to one of the players) board game, similar to chess or go. The goal of this assignment is to give some information about the outcome once an Othello game has finished. This information is obtained by two measurements: The percentage of black pieces of all the pieces on the board. The percentage of the board that is covered in black pieces. The Othello board measures eight squares by eight squares, making the total number of squares sixty-four. Write a program that takes the number of white pieces followed by the number of black pieces as input. Print the two percentages as output. Enter the number of white pieces on the board: 34Enter the number of black pieces on the board:…????????:Blissful number: a number where every digit is greater than its immediate left digit is called a Blissful number. (e.g. 12345 is a blissful number). A single digit number is not a blissful number.Now write a python program that takes a number from the user and checks whether it is a blissful number or not.========================================================Sample Input135789Sample Output135789 is a blissful numberExplanation1:5 is greater than 3. 7 is greater than 5. 8 is greater than 7. And 9 is greater than 8. In other words, every digit is greater than its immediate left digit. Therefore, 35789 is a blissful number================================Sample Input211Sample Output211 is a normal numberExplanation2:Here, 1 is not greater than 1. That is why it is not a blissful number.================================Sample Input35Sample Output35 is a normal numberExplanation3:Single digit number is not blissful number
- PYTHON CHALLENGE ACTIVITY 6.7.2: Function with branch: Popcorn. Define function print_popcorn_time() with parameter bag_ounces. If bag_ounces is less than 3, print "Too small". If greater than 10, print "Too large". Otherwise, compute and print 6 * bag_ounces followed by "seconds". End with a newline. Remember that print() automatically adds a newline.Sample output with input: 742 seconds ''' Your solution goes here ''' user_ounces = int(input())print_popcorn_time(user_ounces)3. Write Python expressions or assignments as specified:a. Assign x to be 5, y to be 10, and z to be 8.b. Write an expression that evaluates to the average of x, y and z.c. Write an expression that evaluates to the largest value among x, y, and z.d. Write an expression that evaluates to the median value among x, y, and z (Hint:the median of a, b, and c is a+b+c - max{a,b,c} - min{a,b,c}.)the importent and main Required =: Create a program that processes data with file I/O, nested loops, and other logic from the textbook. Read data from the first text file, loop through the second text file, and do something. Output something to a third text file. Input/output using text files- 1 read all, 1 read line by line, 1 write out- Exception handling working- All logic working- A complete solution python coding:-purpose of this code is to identify every employee detail using employee id ,name ,how many he/she do their work through that calculate pay rate in employee text file .Through employee text file identify payroll using their employee id ,hours ,and description about how much time spend to their work either holiday, regular or overtime. Through payroll check payment of employee. and write a descriptive a Pseudocode of this program ? these are the two txt files named employees.txt and payroll.txt the employees.txt contains the following information :- Emplid,Name,Hourly…