Write a program that meets the following requirements: 1. Your program will read
ID: 644955 • Letter: W
Question
Write a program that meets the following requirements: 1. Your program will read three integers from the keyboard. 2. Print the largest integer. 3. Print the numbers from 0 to the smallest of the integers read from the keyboard. 4. You must make meaningful use of else 5. Do not print anything other than what is required. 6. Your program will not he tested with negative integers. Your program should produce output similar to that shown below (red text indicates characters typed from the keyboard): Example 1: $ ./a 14 4 10 14 0 1 2 3 4Explanation / Answer
figure
X= 0.3:0.6:0.9:0.4:0.6:0.9
Y= .01:.01:.01:.05:.05:.05
Z= 0.13:0.82:2.38:0.31:1.95:5.66]
D=10:20:30:40:50:60
M=5;
[X,Y,Z,D]=ndgrid(X,Y,Z,D);
for i=1:size(X,1)
for j=1:size(X,2)
V(i,j)=X(i,j)*D(i,j)*Y(i,j)*M*Z(i,j);
end
end
surf(X,Y,Z,V)
colormap hsv
alpha(.4)
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.