1. Create a script ScptCalXX (replace XX with your first or last name that does the following • It asks for your name with the following prompt: Please enter your name: • Then it asks for your city with the following prompt: Please enter the city where you live in: • Then it greets you with your name and city: Hello Syed from Toronto, how much money you want to invest today (-1 to quit)? (in case someone entered Syed and Toronto as name and city) • Next, it prompts you: What annual interest rate you were quoted by our investment representative today? • Next, it prompts you: For how many years you are investing this amount? • It then calculates the maturity amount of your investment and reports you with a proper message. You may use compound interest to calculate the future value on maturity. • Make sure to to continue to ask for input and display the output unless you decide to quit by entering a -1 in which case the application would terminate with a decent message. • Take appropriate steps to make your application run. • Run the application to demonstrate its functionality. • Provide screen shots at vital points.
Since you have not mentioned any language, I am writing it in Python.
PROGRAM:
# this while loop will continue until user enters -1
while True:
# input() prompts the user to give input by printing the string provided as input() argument
# asking for user name
name = input("Please enter your name: ")
# asking user for city
city = input("Please enter the city where you live in: ")
# printing greeting
print("Hello", name, "from", city, "how much money you want to invest today (-1 to quit)?")
# asking user for moey to invest
money = int(input())
# checking if user inputs -1
if money == -1:
# printing decent message before terminating
print("Exiting the program!")
# breaking the loop, this will end the program
break
# asking user for rate
rate = float(input("What annual interest rate you were quoted by our investment representative today? "))
# asking user to enter years
years = int(input("For how many years you are investing this amount? "))
# calculating maturity value using compound interest
maturity_amount = money * (1 + rate/100) ** years
# printing appropriate message
print("Your Maturity value is: ", maturity_amount)
OUTPUT:
Please enter your name: Shivani
Please enter the city where you live in: Lucknow
Hello Shivani from Lucknow how much money you want to invest today
(-1 to quit)?
5000
What annual interest rate you were quoted by our investment
representative today? 5.3
For how many years you are investing this amount? 6
Your Maturity value is: 6816.167142761593
Please enter your name: Syed
Please enter the city where you live in: Toronto
Hello Syed from Toronto how much money you want to invest today (-1
to quit)?
1502
What annual interest rate you were quoted by our investment
representative today? 4.1
For how many years you are investing this amount? 2
Your Maturity value is: 1627.6888619999997
Please enter your name: Your Name
Please enter the city where you live in: Your City
Hello Your Name from Your City how much money you want to invest
today (-1 to quit)?
-1
Exiting the program!
SCREENSHOTS:


Hope this helps!
1. Create a script ScptCalXX (replace XX with your first or last name that does the...
Create a Python list (use first three letters of your name followed by the letter L as the name of the list.) with the following data: 10, 20.0, 50.00, 7000, 7500, 7700, 7800, 8000, 9000, ‘python’. Display the entire list with an appropriate message. Display the 4th element in the list with an appropriate message. Display the first 3 values of the list only. Display all the values starting from the sixth element to the end of the list. Change...
Problem 1 Write a BASH script to create a user account from the Linux system on which your script is run. The script should process two positional parameters. First positional parameter is supposed to be a string with a user name (e.g., user_name) Second positional parameter is supposed to be a string with a user password (e.g., user_password) In your script: Check if two positional parameters were passed to your script when it was invoked If NOT, print an appropriate...
<!DOCTYPE html> <html> <body> <!-- replace the text below with your name!--> <!-- --> <!-- --> <title> TYPE YOUR NAME HERE</title> <script> // // Write a program that asks the user to enter the amount that he or she has // budgeted for a month. Call a function that uses a loop that prompts the user // to enter each of his or her expenses for the month and keep a running total. // The loop finishes when the user...
1. Create a Python script file called Assignment_Ch06-02_yourLastName.py. (Replace yourLastName with your last name.) 2. Write a Python program that prompts the user for a sentence, then replaces all the vowels in the sentence with an asterisk: '*' Your program should use/call your isVowel function from Assignment_Ch06-01. You can put the isVowel() function in a separate .py file, without the rest of the Ch06-01 code, and then import it. 6-01 CODE: def isVowel(x): if x in "aeiouyAEIOUY": return True else:...
<!DOCTYPE html> <html> <body> <!-- replace the text below with your name!--> <!-- --> <!-- --> <title> TYPE YOUR NAME HERE</title> <script> // // Write a program that prompts the user to enter a number within the range of // 1 through 10 and calls a function to display the roman numeral version of // that number. If the number is outside the range of 1 through 10, the program // should display an error message. // // The following...
Weather Program Create an application to interacts with a web service in order to obtain data. Program must prompt the user for their city or zip code and request weather forecast data from OpenWeatherMap (https://openweathermap.org). Program must display the weather information in a READABLE format to the user. Requirements: Create a header for your program just as you have in the past. Create a Python Application which asks the user for their zip code or city. Use the zip code...
You have been hired as a programmer by a major bank. Your first project is a small banking transaction system. Each account consists of a number and a balance. The user of the program (the teller) can create a new account, as well as perform deposits, withdrawals, and balance inquiries. The application consists of the following functions: N- New account W- Withdrawal D- Deposit B- Balance Q- Quit X- Delete Account Use the following...
C Code Create a tool in which a user can enter a string (up to 25 characters) and choose how they wish to manipulate the string from a menu your program will display (see the run-through). The program will continue to ask for commands until the user enters the “quit” command. The commands are: • “Replace All” If a user types “replace all” using ANY sort of capitalization, your program will prompt the user to enter the character to change...
Write a Java application with a class name of Payroll, for the “Travel Agency”, that willCalculate the weekly paycheck for both Salaried and Hourly employees. Salaried employees will be paid 1/52 of their annual pay minus 18% withheld for federal and state taxes, as well as 4% for retirement pension. Salaried employees do not collect overtime pay. There are two types of Hourly employees; permanent employees and temporary weekly employees. •Permanent weekly employees will be paid their hourly rate minus...
Please answer 1c, use MATLAB, and paste your entire script in
your answer so that I can copy and paste to see if it works.
Problem #1 400g triangle square pentagon hexagon Figure 1 For a closed geometric figure composed of straight lines (Figure 1), the interior angles in the figure must add to (n-2)(180) where n is the number of sides. Required Tasks a) Write a script that prompts the user to select from one of the following shapes:...