Reference no: EM132285355
Introduction to Programming Assignment -
To get started: Create a new folder cs104PA1.
Leap Year
As the earth orbits around the sun, it takes 365 and one-quarter days to complete an orbit. To make the adjustment for the quarter day, we add one day every 4 years to the calendar and that's the origin of the leap year. However, in so doing, there is a slight error that creeps in and to compensate for this error, years those are divisible by 100, but not by 400 are not considered leap years.
So, to summarize the definition of a leap year:
- If a number is not divisible by 4, it is not a leap year.
- If a number is divisible by 100 but not by 400, it is not a leap year.
- If a number is divisible by 100 and 400, it is a leap year.
- If a number is not divisible by 100 but divisible by 4, it is a leap year.
You have to write a Python script that allows the user to enter a number greater than 100 as the year and print a message saying whether it is a leap year or not. Note that, if the user enters a number less than or equal to 100, then your program should display an error message.
Shoppers Paradise -
Shoppers paradise wants an application that displays the number of reward points a customer earns each month. The rewards points are based on the customer's membership type and total monthly purchases amount as follows:
Membership Type
basic
standard premium
Write a complete Python monthly purchases amount integer. The user interface of your script may look like as follows: Save your script as "PA1_Question2.py" in the cs104PA1 folder.
Documentation and style -
The file should begin with a descriptive comment explaining what it is for.
Use meaningful names for variables.
Use helpful prompts when asking the user to enter values.
Provide a meaningful description as part of the output.
Do not worry about formatting the number of decimal places in the output.
Attachment:- Assignment File.rar
Discuss various aspects
: Discuss various aspects, advantages, disadvantages, application scenarios, comparison, etc.. of the RAD model.
|
Create an external assessment report
: As a senior executive of LinkedIn, you have been asked to create an external assessment report as to the threat posed by Facebook,
|
Equipment and servers in particular
: Why is it si important to keep track of who had access to the equipment and servers in particular
|
About organisation for economic co-operation and development
: Describe about Organisation for Economic Co-operation and Development (OECD)? What is the main Objectives of the OECD?
|
Write a Python script that allows the user to enter a number
: COMS 104 Introduction to Programming Assignment, Iowa State University, USA. Write a Python script that allows the user to enter a number greater than 100
|
Understanding the science behind change
: Case 4: Blue cross and blue shield, and other: understanding the science behind change. page 521
|
What did it mean in the century european context
: We often here the term "Imperialist" bandied about these days. What did it mean in the 19th-century European context?
|
Understanding the science behind change
: Case 4: Blue cross and blue shield, and other: understanding the science behind change.
|
Biasing effect of reference points
: The chapter identifies three steps of making a risky choice free of the biasing effect of reference points. What are these three steps?
|