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 asks the user to enter an integer from 20 to 99 in numeric form. The program should output the equivalent number in words. For example, if an input of 58, the output is fifty eight


Python Program


Write a python program to print the following output.


Input

The first line contains a string S representing a unique id.

The second line contains an integer N representing group length.


Output

The output should be a single string representing the new unique id.



Sample Input1

2-4A0r7-4k

3

Sample Output1

24-A0R-74K


Write a program which can be used to calculate bonus points to given scores in the range [1..9] according to the following rules:

 If the score is between 1 and 3, the bonus points is the score multiplied by 10

 If the score is between 4 and 6, the bonus points is the score multiplied by 100

 If the score is between 7 and 9, the bonus points is the score multiplied by 1000

 For invalid scores there are no bonus points (0) Your program must make use of 2 parallel arrays – one to store the scores and the other to store the bonus points. You need to make provision for 5 scores (and bonus points) that will need to be stored. For this program implement the following methods and use these methods in your solution (do not change the method declarations):

static void getScores(int[] scores)

static void calcBonus(int[] scores, int[] bonusPoints)

static void displayAll(int[] scores, int[] bonusPoints)



Write a c++ program that emulates basics calculator function.





The input should be two int numbers, taken from the user i.e cin.





The output should be number of data type int.





A third decision variable should be of char type.





This should also come from the user.





Use if-block to check the decision char variables and decide upon the mathematical operation(+, -, *,/, %)





Divide by zero should not be allowed for divide and modulus operator.





Check for result for overflow and underflow

Use three functionsto perform the following tasks:



modify should modifythe values of fnum and snum as stated.



-Modify the contents by multiplying the original values by 10. The function



-Display the new value to the user. The function displayshould print to the



local variables fnumand snum.



-Accept two integers from user. A functioncaptureshould do this using its



user the new values of fnum and snum variables

Midterm Exam

Do the following by using Recursion:


1. Create a code that can print any numbers depending on the inputted value of the user in ascending then reverse it in descending order.

Sample output:


Enter number: 5

1

2

3

4

5

4

3

2

1


2. Write a code that will identify if the inputted value is odd or even. If it is odd then get the sum of all the odd numbers prior to the inputted value, same goes if it is even then get the sum of all the even numbers.

Sample output:


Enter number: 9


Odd

The sum is: 25


3. Using the fibonacci sequence, create a code that will print the remainder using %5 of the sum of the 2 added value depending on the input term of the user.

Sample output:


Enter 1st term: 5

Enter 2nd term: 6


The sum is: 13

The remainder is: 3


Amjad reached Emporium with his family. They are all excited since he successfully passed his test for BSCS admission and now, they are here to celebrate. All the family members are interested in watching the movie while having popcorn. You must ask Amjad the number of people with him. Emporium Cinema is offering different type of tickets for the film: [Student (S) 250, Normal (N) 400, and Executive (E) 750]. Any choice other than mentioned is considered as invalid input. Ask them what ticket choice will they prefer. Before the start of the film, all the family members decide to have popcorn also. Popcorn stall is offering three different flavors. [Simple (S) 100, Tacos (T) 150, and Caramel (C) 200]. Any choice other than mentioned is considered as invalid input. Ask them what popcorn choice will they prefer.


Calculate and print the amount used for the film and popcorn separately and the total expense at the end. Your solution should show proper menu-based system.

Write a C++ program that reads in the radius of a Sphere, then calculates and prints its volume and surface area. 


Write a C++ program that inputs three integers from the user and prints the smallest and largest of these numbers.


• Two threads –



• Both threads will sleep for 1 second before reading from the global array of strings

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS