ITEC 1620 Study Guide - Final Guide: Semicolon

179 views3 pages

Document Summary

Itec 1620 assignment one - soln: categorize each of the following situations as a compile-time error, run-time error, or logical error. (a) multiplying two numbers when you meant to add them. A run-time error. (c) forgetting a semicolon at the end of a programming statement. A compile-time error. (d) spelling a word incorrectly in the output. A logical error. (f) typing a { when you should have typed a ( Oating point result: write a program that determines the value of the coins in a jar and prints the total in dollars and cents. Read integer values that represent the number of quarters, dimes, nickels, and pennies. // prints a phrase in various configurations. public static void main(string[] args) is"); Author: lewis/loftus import java. util. scanner; public class traveltime public static void main(string[] args) int speed, distance; double time; System. out. print("enter the distance traveled: "); distance = scan. nextint(); time = (double) distance / speed;

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers

Related Documents