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

Develop a Python script that will display the exponentiation of the numbers in every line of a text file where the first number is the base and the second number is the exponent.


TEXT FILE


8 3


4 5


6 2


OUTPUT


512


1024


36

Develop a Python script that will display the exponentiation of the numbers in every line of a text file where the first number is the base and the second number is the exponent.


TEXT FILE


8 3


4 5


6 2


OUTPUT


512


1024


36

Develop a Python program that will display the multiplication table represented by the two non negative integers in a text file. The first integer will be the rows and the second integer will be the columns of the multiplication table.


TEXT FILE


3 5


4 2


OUTPUT


3x5


1 2 3 4 5


2 4 6 8 10


3 6 9 12 15


4x2


1 2 3 4


2 4 6 8


3 6 9 12


4 8 12 16

Develop a Python program that will display the multiplication table represented by the two non negative integers in a text file. The first integer will be the rows and the second integer will be the columns of the multiplication table.



TEXT FILE


3 5


4 2


OUTPUT


3x5


1 2 3 4 5


2 4 6 8 10


3 6 9 12 15


4x2


1 2 3 4


2 4 6 8


3 6 9 12


4 8 12 16

3. In or Out


I'm quite into games now, so how about we play In or Out! When a given number is even, the team scores so we shall print "In", but if it's not an even number, then we print "Out". Simple, right?


Now let's get this game started.


Input

A line containing an integer.

35

Output

A line containing a string.

Out

2. The Greater One

by CodeChum Admin

Let us now try comparing two numbers by letting the user input two different numbers and say "Greater" if the first inputted number is greater than the second one, and "Lesser" if it’s the other way around.

Let's go!


Input

A line containing two different numbers separated by a space.

1.2·1.02

Output

A line containing a string.

Greater



Write a C++ program that calculates the nth power of numbers from 1 to k. where n

and k will be input by user.

Expected Output:

Input Power value , n: 3

Input k : 5

3rd power of 1 is 1

3rd power of 2 is 8

3rd power of 3 is 27

3rd power of 4 is 64

3rd power of 5 is 125


NESTED LOOP PROBLEM:)

Design an interactive input loop that scans pairs of integers until it reaches a pair in

which the first integer evenly divides the second. Produce the output in the same format

given below.

Expected Output:

Input number pair 1: 4 7

Input number pair 2: 3 16

Input number pair 3: 14 7

Input number pair 4: 10 100

Your desired number pair is (10,100)


Nested Loop problem:-

Write a C++ program to find first positive even number input. Also tell in how many attempts user input positive even number using do while loop.


This program allows the user to manage a collection of quotes that is stored in a text file named “data.txt”. Use the “json” module to write data to the text file in JSON format and to read the JSON data from the file back into Python. See Reading 7.1 for details of this. This example data contains the details of three quotes in a list. Each one is a dictionary containing of 4-5 key-value pairs with keys of: • “quote” • “author” • “year” (optional) • “likes” • “loves” The “quote” and “author” keys must contain a quote and its author’s name, however the “year” key/value is only present if the year of the quote is known. 


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS