Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Alright i need some help i have been stuck on this for hours! So i have the correct code but only for 1 of the

Alright i need some help i have been stuck on this for hours! So i have the correct code but only for 1 of the 3 answers. It's in coral language so if you can answer in coral language that would be awesome. Here was my code:

integer x integer yimage text in transcribedimage text in transcribed integer z integer max

x = 7 x = 29 y = 15 z = 3

if x > y max = x else max = y

if z > max max = z

Put max to output

2.11 LAB: Branches: Largest number Write a program that reads three integers as inputs, and outputs the largest of the three values. Ex: If the input is: 7 15 3 7 the output is: 15 360640.1752520x3247 LAB ACTIVITY 2.11.1: LAB: Branches: Largest number 3/10 Load default template... FIUS Variables 29 15 X X integer Y integer z integer max integer 3 29 Input cey 5 6 7 X = 7 8 X = 29 9 y = 15 = 10 Z3 11 12 13 if x > y 14 max = X 15 else 16 max = y 17 18 if z> max 19 max - Z 20 21 Put max to output 22 Code Flowchart Output 29 EXIT EXECUTION START AGAIN Execution speed Instant v Output differs. See highlights below. Input 7 15 3 Your output 29 Expected output 15 2. Compare output A 3/3 Input 29 6 17 Your output 29 3: Compare output A 0/2 Output differs. See highlights below. Input 1 2 3 Your output 29 Expected output 4: Compare output A 0/2 Output differs. See highlights below. Input 7 7 7 Your output 29 Expected output

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Using Entity Relationship Diagrams

Authors: Sikha Saha Bagui, Richard Walsh Earp

3rd Edition

103201718X, 978-1032017181

More Books

Students also viewed these Databases questions