MATLAB script
1) Prompt the user for their first name
2) Prompt the user for their last name
3) Prompt the user for their age
Display a sentence that greets the user using their first and last name, and congratulates them for what will be their age on their next birthday.
Example: Hello John Smith. Congratulations on turning 45 on your next birthday!
`Hey,
Note: Brother if you have any queries related the answer please do comment. I would be very happy to resolve all your queries.
clc
clear all
close all
format long;
first=input('Enter first name: ','s');
last=input('Enter last name: ','s');
age=input('Enter age: ');
fprintf('Hello %s %s. Congratulations on turning %d on your next
birthday!\n',first,last,age+1);

Kindly revert for any queries
Thanks.
MATLAB script 1) Prompt the user for their first name 2) Prompt the user for their...
Write a Bash script called hello that uses command line arguments to allow the user to put two strings after the command name, when the script is being executed. These strings should represent a first and last name. The script should then write out a greeting to the user that includes the first and last name. Here is an example of how the script might work (the first line represents what the user types to launch the script): [user@HAL] hello...
Design a modular program using pseudo-code which prompts a user for their first name, followed by their last name; then displays a "Hello" salutation which concatenates their first name with their last name. Sample output (user input shown in red): Please enter your first name: John Please enter your last name: Smith Hello, John Smith! Your program must include a main module and one function; this function prompts the user for either their first name or last name, using a...
1) Write a MATLAB script to prompt a user to input two numbers, then assess whether the two numbers are equal or not. If the two numbers are equal, display that they are equal in the Command Window. If they are not equal, display that they are not equal in the Command Window. 2) Write a MATLAB script that prompts the user to enter the day of the week using the input function. If the information the user enters is...
Write a script in MATLAB that prompts the user to do a, b, & c. a.)script that prompts the user to enter the day of the week using the input function. If the information the user enters is equal to “Saturday” or “Sunday”, display “have a nice weekend” in the Command Window. Otherwise, display “Good luck in your class lectures and your studies.” b.)script that prompts the user to input the following array by providing an example in the prompt:...
Write a perl script to accomplish following tasks: 1. Prompt user to enter their name and age, and then calculate and display their age in days. 2. Initialize a 20-element array of numbers and print each element. 3. Get a system host name. 4. Get a web page and save it to a file. 5. List background services (daemons) on your system.
IN MATLAB Write a script that will prompt the user for strings and read them in, store them in a cell array (in a loop), and then print them out.
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...
Pythpn #Exercise 1 #Ask the user for a three letter word using the prompt: three letter word? (include a space after the ?) #Display the entire word #Display the word vertically, one letter at a time using print statements and the string index #For example, if the user enters baa, the output should be (ignore # signs): #baa #b #a #a #Exercise 2 #Ask the user for a number using the prompt: first number? (include a space after the ?)...
Write a MATLAB script that works like following Program User replies (for instance) Hi Hi What’s your name? John Smith What year were you born? 1995 Does that mean you are 20? Yes What’s your favorite team? Blues Good luck to your Blues. Buy. Buy. Have a nice day.
for python-3 I want to prompt the user to enter their first name and then Call the is_field_blank function to see if nothing was entered.and If nothing was entered i want it to display the following message "First Name must be Entered" and then re-prompt the user to enter the first name. I want it to do this repeatedly until the user enters a first name. this is what i have so far def main(): yourFirst = input("What is...