Answer:
The solution code is written in Python:
- name = input("Enter your name: ")
-
- name_components = name.split(" ")
-
- first_name = name_components[0]
- middle_name = name_components[1]
- last_name = name_components[2]
-
- print(last_name + ", " + first_name[0] + "." + middle_name[0])
Explanation:
Firstly, prompt user to enter name (Line 1).
Next, use the string <em>split()</em> method and use space " " as separator to split the input string into individual component, first name, middle name, last name and assign to variable <em>first_name, middle_name </em>and<em> last_name </em>(Line 5-7).
Display the output as required by the question.
Answer:
ur answer good sir will be : financial analyst
and a brainliest will be good to thnx
Answer:
I guess you are asking for problems in this psuedocode.
- Your 'end if' statement is incomplete. It should be something like 'endif firstTest = 0' .
- Rest of the code seems fine.
Answer:
Explanation:
The following code is written in Java. It is a very simple three line statement (assuming that the random library was imported) that chooses a random integer value between 5 and 5000 and prints it to the screen using the println statement.
Random rand = new Random();
int randomNum = rand.nextInt((5000 - 5) + 1) + 5;
System.out.println(randomNum);
The random number generator is initialized and given a value between 5 and 5000. Since random number Generator will generate a number between 0 and the given value then subtracting 5 from the initial generated number makes sure that it is not more than 5000 and then adding 1 and 5 after wards makes sure that it is more than 5 always.
Answer:To check spelling in a Word document, open up the document, head to the “Review” tab, then click on “Spelling & Grammar” (part of the “Proofing” group of tools). Then a window will appear showing the first word the program believes to be misspelled. Click through the options to review the whole document.
Explanation:Hope this helped u out btw can i plz have brainlist only if u wanna give me brainlist though have an great day kind sir or ma'am!