Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

M04 Programming Assignment You are expected to follow good programming standards for this and all assignments. Can you help me with this in python language?

M04 Programming Assignment

You are expected to follow good programming standards for this and all assignments.

Can you help me with this in python language? or set up the programming intructions. I am new to this. Thank you and God Bless.

1: A positive integer greater than one is considered prime if it has no divisors other than one and itself. A positive integer greater than 1 is a composite if it is not prime. Write a program that asks the user to enter an integer greater than 1, then displays all of the prime numbers that are less than or equal to the number entered (15 points).

The program should work as follows:

Once the user has entered a number, the program should populate a list with all the integers from 2 up to the value entered.

The program should then use a loop to step through the list. The loop should pass each element to a function that displays the element, whether it is a prime number.

2: Write a Python program to get a shop's top three items' prices. (15 points)

Sample data: {'Apple': 0.50, 'Banana': 0.20, 'Mango': 0.99, 'Coconut': 2.99, 'Pineapple': 3.99} Expected Output: Pineapple 3.99 Coconut 2.99 Mango 0.99

*Submit screenshots demonstrating your program works correctly. Any program requiring user input should be run at least three times with varying test values. Screenshots may be embedded in a document for submission or submitted individually.*

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

Step: 3

blur-text-image

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

Fundamentals Of Database Management Systems

Authors: Mark L. Gillenson

3rd Edition

978-1119907466

More Books

Students also viewed these Databases questions

Question

Evaluate the integral. ( (21/2 i + (t + 1)Vi k) i

Answered: 1 week ago

Question

(u^(2)+u-6)/(u^(2)-4) If there is more than one value, sepa

Answered: 1 week ago

Question

How wide are Salary Structure Ranges?

Answered: 1 week ago