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

WAP to create a class Time having members as hours, minutes and seconds . Initialize the object by using parameterized and copy constructor. Write the functions for addition and difference of Time objects.



Write a function solution that given a three digit integer N and Integer K, returns the maximum possible three digit value that can be obtained by performing at most K increases by 1 of any digit in N


1. Create a new list and populate it with 15 random integers (Tip: use randint() or randrange() from the random module)

2. Write a function to calculate the average of the list values

3. Write a function to test if the list contains a specific value

4. Write a function to reverse the list using .pop() and .append() (you must not use .reverse()).


Write a program to find sum of following series for a given value of ‘n’:



A) 1 + 1/2 - 1/3 + 1/4 - 1/5 + 1/6 +……+ 1/n

Using C# and Visual Studio, design and implement a standalone command-line application that fulfils the following requirements: 1. The user shall be able to enter the following values: a. Gross monthly income (before deductions). b. Estimated monthly tax deducted. c. Estimated monthly expenditures in each of the following categories: i. Groceries ii. Water and lights 21; 22; 23 2022 © The Independent Institute of Education (Pty) Ltd 2022 Page 5 of 17 iii. Travel costs (including petrol) iv. Cell phone and telephone v. Other expenses


Write a program that first print the student’s marks data given in the attached excel file then show the



horizontal bar chart of the grades frequency which student achieved and in the last tell us which grade



category got maximum and minimum number of students.

Create a class with two public integers and functions for reading and displaying the sum of two numbers. 


Alex is found of doing string programs. One day his professor gave him a string based question to solve in a linear time complexity. The program is to change a strit to its diagonal string inter the form of X ( I. e Diagonal from left right and from right left) help him finish it


iii. Travel costs (including petrol)





iv. Cell phone and telephone





v. Other expenses





2. The user shall be able to choose between renting accommodation or buying a property.





3. If the user selects to rent, the user shall be able to enter the monthly rental amount.





4. If the user selects to buy a property, the user shall be required to enter the following





values for a home loan:





a. Purchase price of the property





b. Total deposit





c. Interest rate (percentage)





d. Number of months to repay (between 240 and 360)





5. The software shall calculate the monthly home loan repayment for buying a property





based on the values that the user entered.





6. If the monthly home loan repayment is more than a third of the user’s gross monthly





income, the software shall alert the user that approval of the home loan is unlikely.





7. The software shall calculate the available monthly money after all the specified deductions





have been made

Ram is given a positive integer N. He wishes to convert this integer into a single numeral . He does so by repeatedly adding the numerals of the number until there is only a single numeral . Help Ram by providing the single - numeral number finally obtained .




Input


The input is a single line containing a positive integer N.




Output




The output should be a single line containing a single-numeral number.




Explanation




In the example, the given number is 545.


As the number is more than a single numeral, repeatedly add the numerals like




5 + 4 + 5 => 14


1 + 4 => 5




So, the output should be 5.






Sample Input 1


545


Sample output 1


5




Sample Input 2


111


Sample output 2


3


LATEST TUTORIALS
APPROVED BY CLIENTS