Skip to content

code-differently/JS-Loops-Partner-Lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

JS Loops Partner Lab

Description

You will pair program with a partner to complete this assignemnt. One partner, the driver, should share their screen and be the one typing. The other partner, the observer, should review each line of code. Both partners should be cooperating when solving problems. When an objective has been met, the driver should push the code to the GitHub account, the observer should pull the changes, and the two partners switch roles.

Part One

  1. Write a program that displays the following:

    Celsius     Fahrenheit

    0         32

    1         33.8

    2         35.6

    ...

    100         212

  1. Write a program that asks the user for a number an sums from 1 to n
  2. Using loops, display the following:

    1

    1 2

    1 2 3

    1 2 3 4

    1 2 3 4 5

    1 2 3 4 5 6

Part Two

  1. Write program that displays the following:

    Meters     Yards

    10         10.94

    20         21.87

    30         32.81

    ...

    300         328.08

  1. Ask the user for 10 numbers and display the largest number that they entered
  2. Write a program that determines if a number is prime or not

Part Three

  1. Every January 1st you deposit $100 into your bank account. Your bank provides you a whopping 1% interest on your account! After 10 years, how much is in your account if you started with $0.
  2. Ask the user for their name and display each character on a new line. Ex:

    Enter your name: Kaleb

    K

    a

    l

    e

    b

  1. Repeatedly ask the user for a positive number. Once the user enters a negative number, display the sum of all the positive numbers they entered. Ex:

    Enter a positive Number: 3

    Enter a positive Number: 5

    Enter a positive Number: 2

    Enter a positive Number: -1

    Sum: 10

Happy Hacking!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors