In: Computer Science
Part A
In PyCharm, write a program that prompts the user for their name and age. Your program should then tell the user the year they were born. Here is a sample execution of the program with the user input in bold:
What is your name? Amanda How old are you? 15 Hello Amanda! You were born in 2005.
Part B
While you don’t need an IDE to write a program, there are some features that make it desirable. What did you notice when using PyCharm to develop a simple program? For instance, you might have noticed how color is used. Identify two to three features that could make coding easier for programmers, and briefly explain why.
#Python Code
def born_yr(age): return 2020-age if __name__=="__main__": name = input("What is your name?") age = int(input("How old are you?")) born=born_yr(age) print("Hello", name + "!", "You are born in " + str(born) + ".");
In Pycharm
Features that make coding easier for programmers in ide
Faster setup: Without an IDE interface, developers would need to spend time configuring multiple development tools. With the application integration of an IDE, developers have the same set of capabilities in one place, without need for constantly switching tools.
Standardization: The IDE interface standardizes the development process, which helps developers work together more smoothly and helps new hires get up to speed more quickly.