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 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. 


Write the function sum() with four parameters the calculates the arguments provided and returns their sum

Parameters four variables of type float

Returns the sum of type float

Use the default argument 4 to declare the last two parameter of the function sum() test the function sum() by calling it by three possible methods use random integers as arguments


A finger-print machine is kept in a school. All the students are required to record their finger-print on their arrival . Expected arrival time is common to all the students. For every one minute of late arrival, 50 paise is charged as fine. For example, if the arrival time of student is 9:03:10 and expected time is 9:00:00 then fine is Rs. 2. Given the details of students, their arrival time on a particular day and the expected arrival time, design an OOP model and write a C++ code to print the rollno and the name of the students who came earlier than the arrival time and calculate fine amount. Understand the precode and application program to do the implementation.

Input Format

Number of students

Roll no of Student1

Name of Student1

Arrival time of Student1

Roll no of Student2

Name of Student2

Arrival time of Student2

...

Roll no of Student-n

Name of Student-n

Arrival time of Student-n

 

All time is given in hours followed by minutes followed by seconds

(Perform Operator Overloading of << and >> operators)



LATEST TUTORIALS
APPROVED BY CLIENTS