Answer:
Function MinutesToHours(float totalMins) returns float totalHours
// Calculate totalHours:
totalHours = totalMins / 60
return totalHours
End Function
he files provided in the code editor to the right contain syntax and/or logic errors. In each case, determine and fix the problem, remove all syntax and coding errors, and run the program to ensure it works properly.
An example of the program is shown below:
Enter a number between 1 and 20 >> 5
5 4 3 2 1 Blastoff!
JAVA CODE:
// Prompt user for value to start
// Value must be between 1 and 20 inclusive
// At command line, count down to blastoff
// With a brief pause between each displayed value
import java.util.Scanner;
public class DebugSix3
{
public static void main(String[] args)
{
Scanner keyboard = new Scanner(System.in);
int userNum, val;
final int MIN = 1;
final int MAX = 20;
final int TIME_WASTER = 100000;
System.out.print("Enter a number between " + MIN +
" and " + MAX + " >> ");
userNum = keyboard.nextInt();
while(userNum < MIN && userNum < MAX)
{
System.out.println("Number out of range");
System.out.print("Enter a number between " + MIN + " and " +
MAX + " inclusive >> ");
userNum = keyboard.nextInt();
}
for(val = userNum; val == 0; --val)
{
System.out.print(val + " ");
for(int x = 0; x < TIME_WASTER; ++x)
for(int y = 0; y < TIMEWASTER; ++y)
for(int z = 0; z < TIME_WASTER;);
// Adjust these numbers for faster or slower performance
}
System.out.println("Blastoff!");
}
}
program to take the command line input to cut down the blast off.
// DebugSix3.java
// Prompt user for value to start
// Value must be between 1 and 20 inclusive
// At command line, count down to blastoff
// With a brief pause between each displayed value
import javax.swing.*;
public class DebugSix3
{
public static void main(String[] args)
{
String userNumString;
int userNum, val;
final int MIN = 1;
final int MAX = 20;
userNumString = JOptionPane.showInputDialog(null,
"Enter a number between " + MIN + " and " + MAX + " inclusive");
userNum = Integer.parseInt(userNumString);
while(userNum < MIN || userNum > MAX)
{
userNumString = JOptionPane.showInputDialog(null,
"Number out of range" +
"\nEnter a number between " + MIN + " and " + MAX + " inclusive");
userNum = Integer.parseInt(userNumString);
}
for(val = userNum; val > 0; --val)
{
System.out.print(val + " ");
for(int x = 0; x < 100000; ++x)
for(int y = 0; y < 10000; ++y);
// Adjust these numbers for faster or slower performance
}
System.out.println("Blastoff!");
}
}
learn more about command line input here:
https://brainly.com/question/19569210
#SPJ1
10 Enter the reference to the total estimated cost in the appropriate location for the second data table. Apply a custom number format to display Total Sq Ft in that cell. Apply Blue font and bold to that cell. How to?
Answer:
Explanation:
To enter the reference to the total estimated cost in the appropriate location for the second data table and apply a custom number format to display Total Sq Ft in that cell, and apply Blue font and bold to that cell, you can follow the steps below:
Select the cell where you want to display the Total Sq Ft.
In the formula bar, type the formula "=SUM(D2:D10)" (assuming the data range is D2:D10). This will calculate the total square footage of the listed properties.
Press Enter to apply the formula and display the Total Sq Ft value in the selected cell.
With the cell still selected, go to the Home tab in the Ribbon and click on the Font Color dropdown arrow.
Choose the blue color from the color palette to apply the blue font color to the cell.
With the cell still selected, press the keys "Ctrl+B" or click on the Bold button in the Ribbon to apply bold formatting to the cell.
To apply a custom number format to the cell, right-click on the cell and select "Format Cells" from the context menu.
In the Format Cells dialog box, go to the Number tab and select "Custom" from the Category list.
In the Type field, type the following custom number format: "#,##0 Sq Ft"
Click OK to apply the custom number format to the cell.
Now the cell should display the Total Sq Ft in blue font and bold formatting with the custom number format applied.