the goal of this code is to quickly get you off the ground with Creating and Consuming Promises.
CREATE 3 JS PROMISES USING ASYNC/AWAIT, TRY/CATCH BLOCKS.
input
the first line of input is containing a boolean isHotWaterReady
the second line of input is containing a boolean isBreakfastReady
output
the output could be multiple strings with the appropriate response in seperate lines
based on inputs
sampleinput1
true
true
sampleoutput1
Taken Shower
Had Breakfast
Got to Work
function main() {
const isHotWaterReady = JSON.parse(readLine());
const isBreakfastReady = JSON.parse(readLine());
/* Please do not modify anything above this line */
// Write your code here
Create a method called emptySpace () this remove space between the name and the surname (Use a regular expression "replaceAll"). The emptySpace() method also Count the number of characters within the newly created string (nameSurname) and return the total number of Characters .
The total number of characters (Name and Surname) should be the size of your arrayAlphabetizer (type integer). Populate your arrayAlphabetizer with a series of random numbers between 10 and 50.
Display all arrayAlphabetizer elements and they are corresponding indexes before executing the sort() method and after executing the sort().
Allow the user to enter a value from the arrayAlphabetizer element to search for.
* * Loop through the array until you find the value (Use a Search function to locate the value with in the array) and replace that value with the character @.
* *Print out arrayAlphabetizer with the replaced element..
Q.1.1 Identify a suitable network scenario that can be used to explain and discuss the relationship of concepts in the exhibit. Ensure that you provide details of the following aspects of the scenario: • Description of the scenario; • How can the scenario be used to discuss and explore the relationship of the concepts in the exhibit?
Q.1.2 As part of the requirements analysis when designing a network, explain what are functional requirements, performance requirements and implementation constraints are and then list three functional requirements, performance requirements and implementation constraints as examples for the identified network system scenario in Q.1.1.
Q.1.3 Using Q.1.1 and Q.1.2 above, discuss the relationship between the concepts as presented in the exhibit. In particular, explain the importance of understanding these relationships in network systems design.
Write a function to calculate and return the roots of a quadratic equation ax2 + bx + c = 0.
Return x1 and x2 through
parameter of the function. The prototype of this function is defined by:
void solveEquation(int a, int b, int c, float *x1, float *x2);
write a program that calculates and prints the sum of the even integers from 2 to user defined limit and product of odd integers from 1 to user defined limit. use a do-while loop that ask the user whether the program should be terminated or not also maintain a count as to how many times the user ran to do-while loop
write a program that calculates and prints the sum of the even integers from 2 to user defined limit and product of odd integers from 1 to user defined limit. use a do-while loop that ask the user whether the program should be terminated or not also maintain a count as to how many times the user ran to do-while loop
write a program that calculates and prints the sum of the even integers from 2 to user defined limit and product of odd integers from 1 to user defined limit. use a do-while loop that ask the user whether the program should be terminated or not also maintain a count as to how many times the user ran to do-while loop
a) Write an assembly program using MARIE's assembly Instruction set that prompts the user to enter a non-negative integer that is less than 10. The program should include a subroutine that keeps prompting until a valid value is obtained. When a valid number is entered, it will be displayed. (Hint: Use JNS & JUMPI instructions to implement the subroutine) N.B: You should include the MARIE code in your Answer, with an explanation of each instruction in your code beside it (not a screenshot!). Example: Subt One /Subtract 1 from AC Your included code should be ready to be tested by your instructor. b) Add a screenshot of the simulation, showing the result (A screenshot of the MARIE Simulator window after running the program). Instructions: - Use “ORG” instruction to start your program at address equivalent to 25610. - Use your last university ID number to input the value of X. For example, if your ID is1915161678234, then you will use the number 4 as the value of x. -
Three Lines Apart
by CodeChum Admin
Do you like reading books? If you do, then you must have encountered texts that have quite a wide space with dots in between them, just like pausing or thinking before proceeding the narration. Let's try doing that here in Python, shall we?
Input
Two lines containing a string on each.
some string
another string
Output
The first line contains the first inputted string.
The next three lines contains a dot symbol on each.
The last line contains the second inputted string.
some string
.
.
.
another string
Three Lines Apart
by CodeChum Admin
Do you like reading books? If you do, then you must have encountered texts that have quite a wide space with dots in between them, just like pausing or thinking before proceeding the narration. Let's try doing that here in Python, shall we?
Input
Two lines containing a string on each.
some string
another string
Output
The first line contains the first inputted string.
The next three lines contains a dot symbol on each.
The last line contains the second inputted string.
some string
.
.
.
another string