Dear all sir, i'm a begining of java and i have a problem to write the equation in java code , i want to make it in for loop and i also want to count it by column.how do i do? please me!!! example: f=5.4; f=5.0; f=1.5; k=|f-f|+|f-f-|; k=|f-f|+|f-f-|; k=|f-f|+|f-f-|; +0 I am stuck in this code. I have to print results every 30 tosses for 500 total tosses. I made the 30 but in the loops. And also percentages are showing as 0 Help or hints would be much appreciated. [CODE]import java.util.Random;// program uses class Random public class CoinTossing { public static void main (String [] args) { Random coinTosses = new Random(); System.out.println("START Coin Toss!"); int frequencyHeads=0;//maintains count of heads rolled int frequencyTails=0;//maintains count of tails rolled int percentageH; int percentageT; int totalTosses; for (int toss = 1; toss <= 30; toss++) { int face = coinTosses.nextInt(2); if (face … +0 Hi, The whole idea of this program is allow teachers to input marks results for 6 students. Once all marks have been entered, It must to display the marks and grade for each student. For some reason it can't display the grade properly. It just display "Fail" on each mark. If somebody can help me, I'd appreciate. Thank you. [CODE]import java.util.Scanner; public class ExamMarks { public static void main(String[] args) { int marks = 0; String g = ""; int[] sNumb = new int; Scanner scan = new Scanner(System.in); for (int i = 0; i < sNumb.length ; i++) { … +0 Ok so i have trouble with looping with while and for statments heres the questions: 1. Write a program that gets a positive integer from the user and prints all the numbers from one to that integer. If the inputted number is zero or negative, then the program will print an error and quit. I dont have much, but this is all i have: [CODE]#include using namespace std; int main() { int num=1, i; cout<<"please enter a number"<>i>> while num
Helm:

The End.