Write the program in Python that writes the even numbers and counter value on the screen according to the starting and ending values entered as positive integers from the keyboard. (Starting and ending will be included if they are in pairs)

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter3: Assignment, Formatting, And Interactive Input
Section3.6: A Case Study: Acid Rain
Problem 3E
icon
Related questions
Question

1)Write a python program..Assume that the 4-digit numbers that are equal to the square of the sum of the numbers divided into two from the middle are called Semisquare Numbers. Write the program that says whether a 4-digit number entered from the keyboard is a Semisquare Number. For example, the number 2025 is a semi-square number. When split in two, the numbers 20 and 25 are revealed

20 + 25 = 45

45^2 = 2025.

Example 1:

Enter the four-digit number: 9801

------------------------------------

The number entered is a semi-square number

Example 2:

Enter the four-digit number: 1234

------------------------------------

The number entered is not a semi-square number

 

2)Write a python program..In the written exam held at the end of the driving license course, 50 questions from Traffic, 40 from Engine, 30 questions from First Aid are asked. Passing grade in driver's license exams is 70 out of 100. A student who scores 70 and above in each course becomes successful and becomes eligible to take the driving exam. Calculate the scores according to the number of mistakes entered on the keyboard and write the program c that will show whether the student can take the steering test or not.

EXAMPLE:

Enter the traffic wrong number: 10

Enter the wrong number of engine: 10

Enter first aid wrong number: 10

 -------------------------

Your traffic score: 80.00

Your engine score: 75.00

Your first aid score: 66.66

Sorry, you cannot take the steering test

 

3)Write a python program..Suppose that among the four (4) digit (abcd) positive integers, those that have the property of multiplying the first two digits and the last two digits, equaling the product of the substituted form of their digits (ab * cd = ba * dc), are called Inverted Numbers. Write the program that says whether a 4-digit number entered from the keyboard is a Reverse Number.

For example, the number 1242 is an Inverted number. 12 * 42 = 21 * 24

EXAMPLE 1:

Enter the four-digit number: 6213

------------------------------------

The number entered is an Inverted number

EXAMPLE 2:

Enter the four-digit number: 1234

------------------------------------

The number entered is not an inverted number

 

 

4) Write a python program..After calculating the ranking score according to the ALES (Academic Postgraduate Exam) score, foreign language score and graduation grade point average of the candidate applying for graduate education, write the program in python, which will be able to enter the ranking on the screen. (All points are given over a hundred.)

Ranking Score = 50% of ALES + 25% of foreign language score + 25% of graduation grade point average

It is calculated by the formula. If the ranking score is 60 and above, it can enter the ranking, otherwise it cannot.

 

 

5)Write the program in Python that writes the even numbers and counter value on the screen according to the starting and ending values entered as positive integers from the keyboard. (Starting and ending will be included if they are in pairs)

Example:

Enter the starting and ending value: 5 10

The numbers are:

6, 8, 10

3 numbers in total

Example:

Enter ALES score: 80.91

Enter the foreign language score: 80.50

Graduation GPA: 75.56

-------------------------

Your ranking score: 79.47

May enter the rankings

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Concept of memory addresses in pointers
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning