Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

PLEASE DO THIS IN PYTHON!! 1.) Program 3: Design (pseudocode) and implement (source code) a program (name it Pattern) that uses nested loops to print

PLEASE DO THIS IN PYTHON!!

1.) Program 3: Design (pseudocode) and implement (source code) a program (name it Pattern) that uses nested loops to print out the following pattern. Document your code properly.

1 2 3 4 5 6

1 2 3 4 5

1 2 3 4

1 2 3

1 2

1

2.) Program 4: Design (pseudocode) and implement (source code) a program (name it LargestOccurenceCount) that read from the user positive non-zero integer values, finds the largest value, and counts it occurrences. Assume that the input ends with number 0 (as sentinel value to stop the loop). The program should ignore any negative input and should continue to read user inputs until 0 is entered. The program should display the largest value and number of times it appeared as shown below in this sample runs. Document your code and properly label the input prompts and the outputs as shown below.

Sample run 1:

Enter positive integers (0 to quit): 3 4 5 -9 4 2 5 1 -5 2 5 0

Largest value: 5

Occurrences: 3 times

Sample run 2:

Enter positive integers (0 to quit): 3 7 5 -4 4 2 -5 5 1 7 0

Largest value: 7

Occurrences: 2 times

Sample run 3:

Enter positive integers (0 to quit): 2 9 8 -4 8 9 -5 8 9 1 7 7 9 0

Largest value: 9

Occurrences: 4 times

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image
Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M. Kroenke, David J. Auer

7th edition

133544621, 133544626, 0-13-354462-1, 978-0133544626

More Books

Students explore these related Databases questions

Question

Why does sin 2x + cos2x =1 ?

Answered: 3 weeks ago

Question

3. Did you seek anyones advice?

Answered: 3 weeks ago

Question

7. What traps should she avoid?

Answered: 3 weeks ago