Questions: 1 680

Answers by our Experts: 1 680

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

Learn more about at the Josephus Problem from the following links and make a Circular Doubly Linked List simulation of this problem. (Your program should print the remaining people in each iteration). C language programming. 1. https://www.youtube.com/watch?v=uCsD3ZGzMgE 2. https://github.com/alextop30/Josephus-Problem

Write a program in C that prints "Hello world!" without printf method.


A company that wants to send data over the Internet has asked you to write a program that will encrypt it so that it may be transmitted more securely. All the data is transmitted as four-digit integers. Your application should read a four-digit integer entered by the user and encrypt it as follows: Replace each digit with the result of adding 5 to the digit and getting the remainder after dividing the new value by 8. Then swap the first digit with the third, and swap the second digit with the fourth. Then print the encrypted integer. Write a separate application that inputs an encrypted

X1 = G_m1_m2 d 2 where G is the universal gravitational constant G = 6.673 x 10-8 cm3 / g sec2 Write a program that reads in the mass of two bodies and the distance between them and then outputs the gravitational force between them and then outputs the gravitational force between them. The output should be in dynes; one dyne equals a g cm / sec2 . Use a constant declaration for G.


parking lot charges Rs.30 as a minimum fee to park a vehicle for up to 3 hours. An additional charge of Rs.5.00 per hour will be added if it exceeds three hours. for 24 hours the parking fees are Rs.80.00.Write a program to define an array and read the vehicle registration number, and hours parked for each customer and calculate the parking charges for 'n' customers and display the output.

Input format

The first line of the output consists of the number of customers.

The next n lines consists of the vehicle

registration number and total parking hours.

Output format

The output consists of the vehicle number, hours parked, and charges separated by a space.

Sample testcases

Input 1

3

1867 3

5382 5

2407 24

Output 1

1867 3 30.00

5382 5 40.00

2407 24 80.00

Write a C program that takes in the radius (as in integer) of a circle from user and calculate and display the area of the circle


Exercise 3 : Practice to manipulate 2D arrays

Use a double-subscripted array to solve the following problem. A company has four salespeople ( 1 to 4) who sell five different products ( 1 to 5). Once a day, each salesperson passes in a slip for each different type of product sold. Each slip contains:

a) The salesperson number

b) The product number

c) The total dollar value of that product sold that day

Assume that the information from all the slips for a day is available. Write a program that will read all this information for the day and store in a double-subscripted array sales. For each product find and display the total sales.



write a program that reads a four digit positive integer and determine how many digits in the integer are equal to the last character of your roll number and print the result on the speed of the user enter and negative integer or an integer greater than four digit print a message on the screen in management teacher

Input

1. The first number


Constraints

This may be a decimal number.

2. The second number


Constraints

This may be a decimal number.

3. The third number


Constraints

This may be a decimal number.

4. The fourth number


Constraints

This may be a decimal number.

5. The fifth number


Constraints

This may be a decimal number.


Output

The first line will contain a message prompt to input the first number.

The second line will contain a message prompt to input the second number.

The third line will contain a message prompt to input the third number.

The fourth line will contain a message prompt to input the fourth number.

The fifth line will contain a message prompt to input the fifth number.

The last line contains the sum of all negative numbers rounded off and displayed with 2 decimal places.


Write a menu driven program to implement circular queue

operations such as Enqueue, Dequeue, Peek, Display of elements,

isEmpty using linked list.


LATEST TUTORIALS
APPROVED BY CLIENTS