Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Create any program using python programming language. Use at least 10 Python built-in functions. Submit the program file of your program ( .py) for those who uses desktop or laptop in code and screenshot of the code and output for those who uses phones to code.

  1. In the code editor, you are provided with a main() function that asks the user for an integer and passes the address of this integer to a function call of the simple() function.
  2. This simple() function hasn't been implemented yet so your task is just that, to implement it. This has the following description:
  3. Return type - void
  4. Name - simple
  5. Parameter - address of an integer
  6. Description - prints a line of asterisks
  7. DO NOT EDIT THE MAIN FUNCTION

Input


1. An integer

Output


Enter·n:·5
*****

#include <iostream>

using namespace std;


int main(void) {

  int n;


  cout << "Enter n: ";

  cin >> n;


  simple(&n);

  

 cout << n;


  return 0;

}


  1. In the code editor, you are provided with a main() function that asks the user for 2 integers. Then, a function call to a function named, exchangeGift() is made and the addresses of the 2 integers are passed.
  2. This exchangeGift() function hasn't been implemented yet so this is your task. This has the following description:
  3. Return type - void
  4. Name - exchangeGift
  5. Parameters - 2 addresses of 2 integers
  6. Description - swaps the value of the 2 integers and then adds 100 to the 2nd integer (or 2nd parameter)
  7. DO NOT EDIT THE MAIN

Input


1. First integer

2. Second integer

Output


Enter·integer·1:·10
Enter·integer·2:·20
20·110

#include <iostream>

using namespace std;


int main(void) {

  int a, b;


  cout << "Enter integer 1: ";

  cin >> a;


  cout << "Enter integer 2: ";

  cin >> b;


  exchangeGift(&a, &b);


  cout << a << " " << b;


  return 0;

}


Instructions:

  1. In the code editor, you are provided with an initial code where a constant variable is declared.
  2. Your only task is to assign the address of this variable to the first pointer found at line 10.

Output


My·destiny·=·11



#include <iostream>

using namespace std;


int main(void) {

  int destiny = 22;


  int *ptr1, *ptr2, *ptr3;


  // TODOFill in the blank

  ptr1 = ;

  ptr2 = ptr1;

  ptr3 = ptr2;


  cout << "My destiny = " << *ptr3;


  return 0;

}





Create an assembly program that would check if the input character is a numeric character. alphabet (letter) or a special character.



HINT: Each character has a corresponding decimal and hex values in the ASC table. Use ASCII table.

-write a program using for loop - show numbers from(1,150)increased by 3 only print odd numbers


Create a Java program that asks the user to input a student number. The format of the student number is a sequence of the following:



Four (4) digits


A dash


Two (2) digits


A dash


Three (3) digits


Display a welcome message if the student number is valid; otherwise, show an appropriate error message. Do not copy the welcome message in the sample output.

Implement the following problem statement in python along with test cases. Let’s say you have a Customer class and you want to test calculate bill method of customer class. Bill calculation will depend on list of items customer purchased


create two class names User and administrator. the administrator class should inherit from the user class and the two classes should be members of the namespace named User Namespace.

Create an assembly program that would check if the input character is a numeric character. alphabet (letter) or a special character.




HINT: Each character has a corresponding decimal and hex values in the ASC table. Use ASCII table.

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS