Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Task 1: Write a program that calculates and displays absolute value of input value x Task 2: Write a program that displays consecutive ascending positive

Task 1: Write a program that calculates and displays absolute value of input value x Task 2: Write a program that displays consecutive ascending positive integers that are less than or equal to N Task 3: Write a program that askes a user for a number of points obtained during the test and calculates the grade In the program there should be a maximum possible number of points declared: max = 25 Calculate percentage from the total points received, and display the corresponding grade Range Display 0 <= perc_points <= 40 'Grade: 2.0' 40 < perc_points <= 52 'Grade: 3.0' 52 < perc_points <= 64 'Grade: 3.5' 64 < perc_points <= 76 'Grade: 4.0' 76 < perc_points <= 88 'Grade: 4.5' 88 < perc_points <= 100 'Grade: 5.0' Task 4: Write a program that calculates and displays the roots of a quadratic equation of the form ax ^ 2 + bx + c = 0 Take into account the possibility of factor values being zero The program should print a message if the equation is contradictory or identity Homework 1: Write a program that takes as input two values: A and B Display both values Swap them places, so A would hold value from B, and vice versa Display values once again Input data Expected output 2, 8 2, 8 8, 2 Homework 2: Write a program that chesks whether a value provided by a user is a natural number, integer, real number or complex Function that you'll need: floor(x) - returns the largest integer not greater than x Example: x = 11.82; y = floor(x); % y equals to 11 imag(x) - returns the imaginary part of x as a real number Example: x = 1 + 2i; y = imag(i); % y equals to 2 Input data Expected output 5.5 'Real number' 4 'Integer'

if anyone can please help me for task 2 , task 3 & HomeWork 1 & HomeWork 2 ? please In MATLAB !!!! (NB: Can't use the matlab in built function )

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

Upgrading Oracle Databases Oracle Database New Features

Authors: Charles Kim, Gary Gordhamer, Sean Scott

1st Edition

B0BL12WFP6, 979-8359657501

More Books

Students also viewed these Databases questions

Question

What do Dimensions represent in OLAP Cubes?

Answered: 1 week ago