subject

Write code that assigns maxValue with the return value of calling the function GetMaxValue passing userNum1 and userNum2 as arguments (in that order). Then, assign maxValue with the return value of calling GetMaxValue passing maxValue and userNum3 as arguments (in that order). Function GetMaxValue(integer value1, integer value2) returns integer result
if value1 > value2
result = value1
else
result = value2
Function Main() returns nothing
integer userNum1
integer userNum2
integer userNum3
integer maxValue
userNum1 = Get next input
userNum2 = Get next input
userNum3 = Get next input
// Your solution goes here
Put "Max value: " to output
Put maxValue to output
has to be in Coral

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:20
The north and south regions had very diferent economies in the 1800s.
Answers: 1
question
Computers and Technology, 24.06.2019 17:40
When analyzing data sets, such as data for human heights or for human weights, a common step is to adjust the data. this can be done by normalizing to values between 0 and 1, or throwing away outliers. for this program, adjust the values by subtracting the smallest value from all the values. the input begins with an integer indicating the number of integers that follow. ex: if the input is 5 30 50 10 70 65, the output is: 20 40 0 60 55
Answers: 1
question
Computers and Technology, 24.06.2019 20:00
Individuals suffering from technology overload feel distressed when deprived of computers and mobile devices.true/fasle
Answers: 2
question
Computers and Technology, 24.06.2019 21:30
Suppose a router has built up the routing table shown in the table. subnet number 128.96.39.00 28.96.39.128 128.96.40.00 192.4.153.0 default) subnet mask 255.255.255.128 255.255.255.128 255.255.255.128 255.255.255.192 nexthop interface 0 interface 1 r2 r3 r4. the router can deliver packets directly over interfaces 0 and 1, or it can forward packets to routers r2, r3, or r4. describe what the router does with a packet addressed to each of the following destinations: (a) 128.96.39.10 (b) 128.96.40.12 (c) 128.96.40.151 (d) 192.4.153.17 (e) 192.4.153.90
Answers: 3
You know the right answer?
Write code that assigns maxValue with the return value of calling the function GetMaxValue passing u...
Questions
question
Mathematics, 20.10.2020 18:01
question
English, 20.10.2020 18:01
question
Mathematics, 20.10.2020 18:01
question
Mathematics, 20.10.2020 18:01
question
Law, 20.10.2020 18:01
Questions on the website: 13722363