Using C Language
Design and implement an application that illustrates scope using an int and a double. Make sure to format the double with 2 decimals only.
#include <stdio.h> int main() { int i1 = 4; double n1 = 5.5; printf("Values are %d and %.2lf ", i1, n1); // prints 4 and 5.5 { int i1 = 9; double n1 = 9.1; printf("Values are %d and %.2lf ", i1, n1); // prints 9 and 9.1 } printf("Values are %d and %.2lf ", i1, n1); // prints 4 and 5.5 return 0; }
Using C Language Design and implement an application that illustrates scope using an int and a...
c# language
Description: Design and implement a C# application that allows the user to enter a number N. It returns to the user the result of the Fibonacci of N. The Fibonacci of a number N is calculated as follows: Fibonacci (0) 0 Fibonacci (1) - Fibonacci (n) - Fibonacci (n-1) + Fibonacci (n-2) Requirements Your Application should have the following: • An exception class called FibException that is thrown when the user enters a negative value of N •...
implement void Quick_Sort(int A[],int l,int r) to sort array of integers in ascending order using the first element as a pivot, you can add any parameter you want Note : you are only allowed to use java language
In c++ language
Design and implement a Queue data structure using linked list. Support the following usual operations: default constructor parameterized constructor to create a queue of user-specified capacity enqueue dequeue is_full is_empty display destructor that deallocates all the nodes copy constructor overloaded assignment operator Demonstrate using a main function.
using python to Design and implement an application that reads a word from the user and prints the characters of each word backwards. Use a stack to reverse the characters of each word. What is the difference between a queue and a stack?
Stacks and Java 1. Using Java design and implement a stack on an array. Implement the following operations: push, pop, top, size, isEmpty. Make sure that your program checks whether the stack is full in the push operation, and whether the stack is empty in the pop operation. None of the built-in classes/methods/functions of Java can be used and must be user implemented. Practical application 1: Arithmetic operations. (a) Design an algorithm that takes a string, which represents an arithmetic...
USING VISUAL BASIC STUDIO PLEASE PROVIDE THE CODE IN C# LANGUAGE SELECT CONSOLE APPLICATION You are to create a House with 2 rooms in the house. The following is an example of C++ code for the basic classes: **in C#, it may be written differently** class Room { private: double L; double W; public: //functions go here. } class House { private: Room room1; Room room2; public: //functions go here } The code above is C++ version. In C#, you...
Using C++ language, Design and implement a class representing a doubly linked list. The class must have the following requirements: The linked list and the nodes must be implemented as a C++ templates The list must be generic – it should not implement arithmetic/logic functions. (template class) It must include a destructor and a copy constructor It must include methods to insert at the front and at the back of the list It must include a method to return the...
Convert this C++ program to x86 assembly language using the Irvine library: #include <iostream> unsigned int x; unsigned int c; unsigned int result; // f(x) = 8x + c // Make sure to push and pop all necessary registers to the stack to // ensure only the EAX register is modified upon return from the function unsigned int Equation(unsigned int x, unsigned int c) { // You CANNOT use the mul or imul operations to perform the multiplication return (8...
c language not c++
c language
int mininum(int a[135) int i; int min. Question 2 (4 points) If ptr is an integer pointer and x in an integer variable then write one statement to set ptr to point to x then write another statement to increment x by 10 using ptr (not using x) (4 points) Question 3 (4 points) Saved
In C# Programming Language create an application of your choice that would use at least one do…while iteration, and…For loop. Make sure to have a modular solution (= include multiple methods) Submit via forum your analysis and design document, .cs file, and a screenshot of the solution. Include a short explanation of your choice of the selections.