DRAW A FLOWCHART USING THIS ALGORITHM
Start
Take input ( a decimal number like ‘a ‘)
Start the loop (for (i=0 ;i>1 ;i++))
Apply following calculation inside loop
ar[i]=a%2
a=a/2
Outside loop
ar[i]=a
start loop again for print (for (j=i; j>=0; j—) )
Out ar[j]
End
A small store only sells Coke 1.5 liters and San Miguel 1 liter, Make a program that will input type of item and number of item, C-for Coke with a price of 65.00 and S- for San Miguel with a price of 120.00. Compute and display the total amount, and your program will be terminated if you input T in the type of item.
Make a program that will input type of network provider. A – for Smart and Display “SMART USER”. B- for Globe Display “GLOBE USER” and C-for Sun Display “SUN USER”. Your program will be terminated when you input Z.
Write a Java program to create a new string taking first and last characters from two given strings. If the length of either string is 0 use "#" for missing character.
Write a Java program that creates an Array of string values and displays the duplicate values.
Write a Java program that prompts the user to input numbers in two matrices of the same size and compute the sum of the matrices
Write a java program that creates an array of 10 elements size. Your program should prompt the user to input numbers in array and then display the sum of all array elements
Draw a flowchart that will convert a given decimal number (N10) to its equivalent binary number (N2).
Develop a Java GUI application that will display the ink cartridge usage of three different printers with a time span of three years.
Q.1.1 On the form, create two combo boxes, to allow a user to select between three different printers and years. When a user has selected a printer and year and clicked the submit button, display the amount of ink cartridges used for that year. Use the following table for the printers and yearly cartridges used: 2018 2019 2020 HP Deskjet 650 10 35 20 Epson K750 15 22 12 Canon Z100 30 31 33
Q.1.2 You are also required to create a menu system which will allow the user to exit the application under the file menu. Under the tool’s menu, allow the form submission and an option to display the yearly ink cartridges used for each printer. The layout of the form is left to your discretion.
Q.1.3 The application must display a report of each printer and the total ink cartridge used for the three different years.
Find the sum of the first 10 numbers that are divisible by 3 and 9.
Sample Output
495