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

Write a program that reads a single line of input and prints the first two and last two characters of the given input and prints the asterisk character (*) in place of the remaining characters.


Explanation

For example, if the given string is message, then the first two and last two characters are me, ge. Now replacing all the remaining characters with * will give the output me***ge.


Sample Input 1

Message

Sample Output 1

Me***ge

Sample Input 2

12345

Sample Output 2

12*45


How many seconds are there in 42 minutes 42 seconds


How many miles are there in 10 kilometers ? Hint: there are 1.61 kilometers in a mile


for i in range(N - 1, 0, -1):

for j in range(1, N - i + 1):

print(' ', end = '')

for l in range(1, 2 * i):

if l == 1 or l == i * 2 - 1:

print('*', end = '')

else:

print(' ', end = '')

print()

covert this program into simple program


get all the music video released before the year 2016. you can consider the video which contains "music" as name as music video.sort th output in descending order of the year and ascending order of name.


Create a program where you have to design your own Java console application about any valid problem that your application must solve. Your solution can include solving a business problem, a new idea or even a game. Your application must make use of concepts such as arrays, loops, inheritance, constructors and information hiding. Output must be shown in the form of a report using the console. Use Advanced arrays & Introduction to inheritance



Create a GUI interface


1. When the program starts the user needs to be asked if they want to make a new entry or to

view a previous entry

2. If the user wants to make a new entry, the first question will be how many meters they

travelled (this will then need to be converted into kilometers)

3. The second question will give the user 3 options to choose from, and each option will have a

value. The options are as follows:

a. Hatchback = 3

b. SUV = 3.5

c. Sports car = 4.

When the user has selected an option that options value needs to be multiplied by the

distance they travelled in kilometers

4. The third question will allow the user to enter a description, of where they travel to and why

did they travel there.

5. All the information above needs to then be saved into a JSON file

6. If the user says he want to view a previous entry the JSON file needs to be loaded and

displayed.

7. You need to make use of error handling to ensure that the user only types in items that are

asked and not anything else


Write a python program that will take the quiz, mid, lab and final marks from the user and calculate the grade.


Total_marks = quiz+mid+lab+final

Total_marksGradeFrom 90 to 100(inclusive)"Grade: A"From 80 to 89(inclusive)"Grade: B"From 70 to 79(inclusive)"Grade: C"From 60 to 69(inclusive)"Grade: D"From 50 to 59(inclusive)"Grade: F"Less than 0 or more than 100 (exclusive)"Invalid Input"


Sample Input:

Quiz marks = 18

Mid marks = 30

Lab marks = 20

Final marks = 26

Sample Output:

Grade: A


Write a python program that first asks the user how many numbers should be entered. Then the program will read that many numbers from the user, and print the numbers which are multiples of 5 or 7. For example, if user input is 5, your program should read 5 numbers and check if they are multiples of 5 or 7. You must use loops to solve this task.
Sample Input:
No. of Inputs = 5

   # Function: Display the Bitcoin price in the menu item – to assist the user when setting price levels

   def updateMenuPrice(self):

       # Get the latest Bitcoin info (as a Tick object) from getBitMexPrice(). Name it tickObj.

       tickObj = self.getBitMexPrice()

       # Update the currentPrice property with the Bitcoin price in tickObj.

       . . .

 

LATEST TUTORIALS
APPROVED BY CLIENTS