Problem definition: A college wants to know how well its students did on an exam. The following program summarizes the results. The program asks a user to enter the results pass (1) or fail (2) for 10 students. It displays the number of passed and the number of failed. It displays a message "Raise error" if the number of passes is more than 8 You are asked to identify statement with syntax errors by selecting them as wrong and the correct statements as right

Question
Expand
Problem definition:
A college wants to know how well its students did on an exam. The following program summarizes the results. The
program asks a user to enter the results pass (1) or fail (2) for 10 students. It displays the number of passed and the
number of failed. It displays a message "Raise error" if the number of passes is more than 8
You are asked to identify statement with syntax errors by selecting them as wrong and the correct statements as
right
Expand
Transcribed Image Text

Problem definition: A college wants to know how well its students did on an exam. The following program summarizes the results. The program asks a user to enter the results pass (1) or fail (2) for 10 students. It displays the number of passed and the number of failed. It displays a message "Raise error" if the number of passes is more than 8 You are asked to identify statement with syntax errors by selecting them as wrong and the correct statements as right

Expert Answer

Want to see the step-by-step answer?

Check out a sample Q&A here.

Want to see this answer and more?

Experts are waiting 24/7 to provide step-by-step solutions in as fast as 30 minutes!*

*Response times may vary by subject and question complexity. Median response time is 34 minutes for paid subscribers and may be longer for promotional offers.
Tagged in
Engineering
Computer Science

Python

Programing Language

Related Computer Science Q&A

Find answers to questions asked by students like you.

Q: Convert IPV4, Combine Prefix, Apply Subnet, Rewrite new address: Original IPv4 Network Subnet Combin...

A: Actually, IPV4 is a Internet protocol version 4

Q: Write a program which shouldconsists of a user definedfunction “Task ()” [Functionreturns no value]....

A: By passing by reference, the changes get reflected in original array

Q: You have been using an app on your mobile device for a 30-day trial period. Now that the 30 dayshave...

A: One must buy the authentic product key from the company to keep using the app. Any other way comes u...

Q: Write C++ program using native C++ (STL is acceptable)  that produces Huffman code for a string of t...

A: Actually, c++ is a powerful general purpose language. The, code has given below:  

Q: Make a class Person, with instance variable name, age, and gender. Make a class Employee inheritfrom...

A: class Person{ String name; int age; String gender;  public Person(String name, int age, String gende...

Q: A class called Book is designed (as shown in the class diagram) to model a book written by one autho...

A: Actually, java is a object oriented programming language.

Q: Write a program (Lab8_ex4_ld.py) that generates a random even positive integer less than 10 and disp...

A: To print the given pattern, we use the python string repetition operator. It is denoted by a '*' sym...

Q: Convert the following into Pep/9 assembly language:   #include <iostream> using namespace std;...

A: Assembly Level Language : A assembly language is a low-level programming language intended for a par...

Q: 6-a: Use D flip-flops to design a 10-state twisted-ring counter. Provide an asynchronous initialize ...

A: A ring counter is a type of counter composed of D-flip-flops connected into a shift register. In rin...

Q: What is the difference between industrial spying and the gathering of competitive intelligence? Is t...

A: Click to see the answer

Q: C++

A: Given program: #include <iostream> using namespace std; int main() {    int i;   for (i = 3; i...

Q: Given the following Context Free Grammar (CFG):A → B*A | BB → id | (A) | id+B a) Do left factoring o...

A: A → B*A | BB → id | (A) | id+B Method to perform Left factoring over production ,A -> α β | α γTh...

Q: Discuss the trades offs between the different image representation and with which representation wou...

A: Explanation: The image representation is broadly divided into two categories vector images and raste...

Q: A list allows retrieval of information based on the contents of the information. in java True or Fal...

A: List A list is used for storing multiple pieces of information. It is a variable that contains mult...

Q: program4_2.pyWrite a program that displays a table of inches from 1-12 and equivalent lengths in cen...

A: Please Indent the code as shown below :

Q: a) When using an Apache server, the directives and are forbidden in a directory access file. Why i...

A: Directives within the configuration file might apply to the whole server, or they will be restricted...

Q: Bank ProgramThis c++ assignment uses the same account class created in Lab #4 with a more generally ...

A: Actually ,c++ is a powerful  general purpose programming language. The, code has given below:

Q: need this done in c++

A: The program with the nested if decision structure will be created as follows: Create two Boolean va...

Q: What is the difference between linear probinig and quadratic probing?

A: Step 1:-  Linear probing and quadratic probing both have come under the collision resolution techniq...

Q: Assignment Scheduling Given the following processes. Process Burst Time P1 17 P2 P3 12 Using Round R...

A: ROUND ROBIN SCHEDULING: It is a preemptive process scheduling algorithm. To execute, each process wa...

Q: WHOEVER IS THE PERSON THAT KEEPS ANSWERING THIS EVERYTIME I REPOST IT PLEASE STOP YOUR SOLUTION IS I...

A: ''' with open('/Users/sandeep/Exercism/python/hello-world/test.txt', 'w') as e: e.write("""Battle of...

Q: in C++

A: An else statement can not have a condition in C++. format of an if-else statement in c++ is like thi...

Q: ISBN-13 is a new standard for identifying books. It uses 13 digits d 1 d 2 d 3 d 4 d 5 d 6 d 7 d 8 d...

A: Program code: // including header files#include <iostream> #include <string.h>using name...

Q: Use Matplotlib Module of Python to solve this question. Q) Help Amit to represent the total number o...

A: Matplotlib is one of the most important Python packages and is mainly used for interactive data visu...

Q: Algorithm Design & Analysis You are given an array called source, with length n, and a set of m ...

A: 1. Take the input for the source and the set of targets. 2. Find the minimum value in the source. 3....

Q: Briefly explain how three buses connected to memory modules works to write or read data. Name the di...

A: A computer bus is also known as a local bus, data bus or address bus, a bus is a link between compon...

Q: consider your preferred method of wireless access. Why is this selection better than the others? Doe...

A: Actually, Wireless networks are computer networks that are not connected by cables of any kind.

Q: Similarities and differences in learning systems and neural networks and give examples of how each t...

A: NEUTRAL NETWORK - In neutral network the class of the algorithm of  the machine learning algorithms ...

Q: a) Compute the binary representation of the following mips instruction:     lw $t4, 5($s4)  b) Compu...

A: opcode  =>  lw  =>  100011 base    =>  $s4 => 10100 rt      =>  $t4 =>  01100 offs...

Q: C++

A: The program structure implies a way to accomplish a task through any programming language. It can be...

Q: Plaz solve

A: Module Module1     Sub Main()        Dim num1 As Integer         Console.Write("Enter your Age: ")  ...

Q: Write a Python program which computes win/loss record, average score and average point spread of a s...

A: your_team=input("Enter the your team name: ")opponent_team=input("Enter the name of your opponent te...

Q: This is a debugging problem I am stuck on - The files provided in the code editor to the right cont...

A: Click to see the answer

Q: What's the initiation value of variable a to d?

A: The basic idea behind the creation of pipe is to have the inter process communication between two pr...

Q: What are the ways to determine the next micro-instruction during execution? Explain.

A: -> Ways to determine the next micro instruction during execution is as follows: