Programming Logic

I need help creating a program to compare the value in input[0] with the value in input[1]. For example, if input[0] is less than input[1] print ‘input[0] is less than input[1]’; otherwise, print ‘input[0] is not less than input[1]’.

  1. 👍 0
  2. 👎 0
  3. 👁 134

Respond to this Question

First Name

Your Response

Similar Questions

  1. C++

    // Program: name of program // Author: your name // Date Written: date you began writing the program /* Abstract: Brief description of the program */ Include in-line comments in the body of your program. You can convert

  2. writting a program

    Speed of Sound. Sound travels through air as a result of collisions between the molecules in the air. The temperature of the air affects the speed of the molecules, which in turn affects the speed of sound. The velocity of sound

  3. computer science

    Class scores: Write a program that calculates the total grade for N classroom exercises as a percentage. The user should input the value for N followed by each of the N scores and totals. Calculate the overall percentage (sum of

  4. java

    Write a java application that finds the smallest of several integers. Prompt the user for the number of integers that will be input, then prompt the user for that number of integers. Evaluate the integers to determine the smallest

  1. input output tables

    when creating an input/output table where do you enter the formula? in the input cell in the output cell in the title cell in the table of contents Im confused which is correct i say ether title cell of table of contents which is

  2. computer science

    Write a program that prompts the user to input three numbers. The program should then output the numbers in non-descending order

  3. computer science

    write a program that calculates a customer's monthly bill. it should input customer name, which package the customer has purchased, and how many hours were used. it should then create a bill that includes the input informtion and

  4. python

    Using functions and two lists write a Python program that asks the user to input each students ID number and a final grade for each student in the class (grades can be from 0 -100). The class has 10 students. The program should

  1. Computer (Programming with Python)

    Problem 1: Multiplication Drill Computers can perform calculations extremely quickly and accurately, but it's often handy to calculate with the computers we carry around inside our heads. Write a program to drill you in

  2. Programming

    Develop a Java application that will determine the gross pay for each of three employees. The company pays “straight line” for the first 40 hours worked by each employee and pays “time and a half” for all hours worked in

  3. PLEASE HELP MS SUE!!!!!!!!!!!!!!!!!!!!!4

    when creating an input/output table where do you enter the formula? in the input cell in the output cell in the title cell in the table of contents Im confused which is correct i say ether title cell of table of contents which is

  4. Computer science

    need help how do this program. Use the top-down modular approach and pseudocode to design a suitable program to solve it. Alberta Einstein teaches a business class at Podunk University. To evaluate the students in this class, she

You can view more similar questions or ask a new question.