forked from cmccarthy15/te2018grade9term1
-
Notifications
You must be signed in to change notification settings - Fork 1
/
fantasy.js
74 lines (52 loc) · 2.41 KB
/
fantasy.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
// Author: FirstName LastName
const READLINE = require("readline-sync");
// global variables
let firstName;
let lastName;
let momMaidenName;
let cityBorn;
let dreamCar;
let street;
let fantasyName;
/******************************************************************************
getNewFirstName()
This function returns the user's new first name. To do so, concatenate the
first 3 letters of their real first name and the first 2 letters of their
real last name.
*******************************************************************************/
function getNewFirstName() {
}
/******************************************************************************
getNewLastName()
This function returns the user's new last name. To do so, concatenate the
first 2 letters of their mom's maiden name and the first 3 letters of the
city where they were born.
*******************************************************************************/
function getNewLastName() {
}
/******************************************************************************
getTitle()
This function returns the user's title. To do so, concatenate the last three
letters of their real last name, reversed, and the model of their dream car.
*******************************************************************************/
function getTitle() {
}
/******************************************************************************
getHonorific()
This function returns the user's full honorific. To do so, concatenate their
title, " of ", and the name of the street they live on.
*******************************************************************************/
function getHonorific() {
}
/******************************************************************************
run()
This function runs the program. At the very least it should ask the user
to answer a series of questions, each setting one of the global variables
to what the user typed in. It should then call the functions above to produce
the user's fantasy name (set fantasyName to that), and display it for the user
to see.
*******************************************************************************/
function run() {
}
// Run the program!
run();