Q1. Write a Java method to compute the future investment value at a given interest rate for a
specified number of years.
Input the investment amount: 1000
Input the rate of interest: 10
Input number of years: 5
Years FutureValue
1 1104.71
2 1220.39
3 1348.18
4 1489.35
5 1645.31
You are required to build a system that can generate a random winning scenario for the T20 cricket world cup. There12 teams which will play knock-out matches in the first round. losing team is out and the winning team moves on. From the twelve teams, six winning teams will play another knock-out match. From these six teams, three winning teams will play against each other on the round robin basis (i.e. team A plays against team B, team B plays against team C, and team C plays against team A). The top two teams from this round will move to the final match. In case all the teams win one match each at this stage, then there will be a toss to move one team to the final while the other two teams will play against each other and the winner moves to the final. The winner of the final match is champion. generate random numbers for matches and toss You are required to use if-else (if-else-if) structure to run the tournament and generate one complete winning scenario randomly.
The application should prompt the owner for a login confirmation code after their have enter the pin. Once logged in system will then offer the following options to the admin, the privilege to restock/ add new items to the vending machine, change prices, Cash out certain amounts from machine, cash in certain amount, print out a summary of all items in stock, print out amount of cash in categories(How many 100s, 50s up to 5cs)and print out only items that need restocking or exit, create a menu for this options. [ When cashing out/in amounts the owner indicates how many 100s, 50s and so on,] The customer should be able to buy items and get a receipts with all details of items bought, one can buy more than one items. The printed receipt contains the following details: the item name, quantity, price and total, it should also give a description of the change given out Your change is disbursed as follows: N$100 X 1, N$10X1, N$5X1 ,N$1X3,10centsX3 and 5centsX1. Provide codes, flowchart, pseudocode
adding of two polynomials programs in python
The application should prompt the owner for a login confirmation code after their have enter the pin. Once logged in system will then offer the following options to the admin, the privilege to restock/ add new items to the vending machine, change prices, Cash out certain amounts from machine, cash in amount, print out a summary of all items in stock, print out amount of cash in categories(How many 100s, 50s up to 5cs)and print out only items that need restocking (all items below 25 need ) or exit, create a menu for this options. [ When cashing out/in amounts the owner indicates how many 100s, 50s and so on] The customer should be able to buy items and get a receipts with all details of items bought, can be able to buy more than one items. The printed receipt contains the details: the item name, quantity, price and total, it should also give a description of the change given out. Your change is disbursed as follows: N$100 X 1, N$10X1, N$5X1 ,N$1X3,10centsX3 and 5centsX1. Do the codes, pseudocodes, flowchart
Write C program that to add following two matrixes and display output.
{5 7 8 109 3 0 68 1 9 24 7 2 1} + {2 2 1 3 8 1 3 11 2 2 43 1 1 2} = {7 9 9 1317 4 3 79 3 11 67 8 3 3}
Create a C program that will accept student name, prelim grade, midterm grade and final grade then compute and display for cumulative grade based on the formula: CG=15% of prelim + 30% midterm + 55% final. Your program should display the output based on the following sample run.
Sample Run:
Enter student name:
Prelim grade:
Midterm grade:
Final grade:
Cumulative grade:
You are required to build a class to represent the a cup of coffee. Call your class CoffeeCup. A coffee cup will have following characteristics 1. type (sting) // can be mocha, cupaccino, etc 2. temperature (float): represents the measure of temperature in degrees 3. volume (float):// the volume of coffee in the cup in ml liters 4. sugar (int):// no of teaspoons of sugar added to the coffee Provide these methods 1. parameterized constructor CoffeeCup(string t, float temp float vol, int sug) 2. Provide setters for temperature, and sugar and volume. 3. Provide getters of temperature, sugar, volume and type. 4. void heatUp(): //this method represents the process of heating the coffee, the current temperature of coffee goes up by one degree if it is below 100 and stays the same otherwise 5. void cooldown(): the process of cooling down. The temperature goes down by one degree but will not go below 0 6.