[SOLVED] ITDSIU19023 Lab 1

30.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon Lab1-m59svl.zip (134.8 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
🔒 Securely Powered by:
Secure Checkout
5/5 - (3 votes)
  1. Write a program that inputs an n-digit number then output its n digits from least to most significant:
Input: 132768

Output: 8   6  7  2  3  1

 

 

 

  1. Write a program to input integers, the program ends when user input 0. Print the minimum (different from 0) and maximum number (different from 0) among the input numbers:
Input: -3 5 -2 9 8 10 5 -1 0

Min: -3

Max: 10

 

  1. Write a program to find all prime number less than a given integer N (optional: provide an optimal solution)
N = 10

Output: 2 3 5 7

 

  1. Given number x and y. Using only plus, minus, multiply and divide to evaluate the following equation using no more than 16 operations:

3x2y2 – 2xy2 – 7x2y – 4y2 + 15xy + 2x2 – 3x +10y + 6

  • Lab1-m59svl.zip