Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
Consider a very simple programming language named Z+-. The Z+- programming language has the following features:
A = 12 ;
A = B ;
A += 34 ;
A *= B ;
Here is an example Z+- program:
DEF A ;DEF B ;A = 1 ;
FOR 5 B += A ; A *= 2 ; ENDFOR
A += 1000 ;
This program's output is:
A=1032
B=31
An equivalent Java program would be:
public static void main(String [] args)
{
int A=0; int B=0;
A = 1;
for (int i=0; i<5; i++) {
B += A;
A *= 2;
}
A += 1000;
System.out.println("A=" + A);
System.out.println("B=" + B);
Z+- did not acquire any faithful users; therefore, the designer developed Z+-+. Z+-+ has the following features:
FOR 5 B += A ; A *= 2 ; FOR 10 A += B ; ENDFOR ENDFOR
IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.
Create a console program where you will implement coding constructs and variables that are needed for this program and will implement the code within Main and any required static methods.
Permutation Ciphers (a.k.a. Transposition Ciphers) are another class of simple cryptosystems. For this we use the functions apply(.,.) and inv(.) from Homework 4; copy these two functions into your le as auxiliary functions.
Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.
Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.
code the program using an editor (DO NOT COMMAND LINE THE PROGRAM) and show the results
Define three types of programming errors and explain with examples
Write a function numOccur(s), where s is a string; the function should return a dictionary whose keys are the 26 ascii letters abcdefghijklmnopqrstuvwxyz
Write a function trans(M) which returns the transpose of an n-by-n matrix M. The matrix M is represented by a list of n lists, each of length n. Transposing M means that each M[i][j] is swapped (once!) with M[j][i].
Fill in the Python code to play Tic Tac Toe. I won't award points unless it runs succesfully. # Tic-Tac-Toe Game def drawBoard(board): # Draws the board using the list of numbers print(" ") print(" ",board[0]," | ",board[1]," | ", board[2]) print("--..
the program will ask you to insert the year that the user is interested in, then ask the gender that the user is interested in, and print out the most popular names corresponding to the year and gender. FYI, the number on the right represents how man..
In the same directory as your program, create a file FF1, and write into it Hello (with a space at teh end). Similarly, create a file FF2, and write into it world! (with a new line, i.e., an ENTER at the end). And create a file DD and write into i..
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +1-415-670-9521
Phone: +1-415-670-9521
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd