See bottom of this file to see solution!
This is what I get when I submit:
Your code has been evaluated against a set of test data.
You had 7 out of 8 tests pass correctly.
import java.util.*; | |
import java.lang.*; | |
import java.io.*; | |
/* | |
Lesson 20 Activity One: | |
- Latitude has a minimum of -90 and a maximum of 90. | |
- Longitude has a minimum of -180 and a maximum of 180. | |
- Write a program to enter Gracie’s longitude and Latitude data. Each time through the | |
loop it should ask if you want to continue. Enter 1 to repeat, 0 to stop. |
import java.util.*; | |
import java.lang.*; | |
import java.io.*; | |
/* | |
Lesson 20 Activity One: | |
- Latitude has a minimum of -90 and a maximum of 90. | |
- Longitude has a minimum of -180 and a maximum of 180. | |
- Write a program to enter Gracie’s longitude and Latitude data. Each time through the | |
loop it should ask if you want to continue. Enter 1 to repeat, 0 to stop. |
import java.util.*; | |
import java.lang.*; | |
import java.io.*; | |
/* | |
Lesson 20 Activity One: | |
- Latitude has a minimum of -90 and a maximum of 90. | |
- Longitude has a minimum of -180 and a maximum of 180. | |
- Write a program to enter Gracie’s longitude and Latitude data. Each time through the | |
loop it should ask if you want to continue. Enter 1 to repeat, 0 to stop. |
I don't know why Edhesive doesn't give you your test cases to begin with, it's really stupid to go about coding blindly.
The purpose of this class is to "siphon" the test cases from an Edhesive CodeRunner environment. This snippet works by abusing the object-based test system and storing each case in a static object that is then dumped via a manufactured Runtime Error.
It's almost fully automated. There's no way I can tell how many test cases there are inside the code,
{ | |
"Response": { | |
"profile": { | |
"data": { | |
"userInfo": { | |
"crossSaveOverride": 0, | |
"applicableMembershipTypes": [ | |
4 | |
], | |
"isPublic": true, |
Verifying my Blockstack ID is secured with the address 1G5sdw3M65VqTk2vQiqNZQ9ByS3ckoCVKU https://explorer.blockstack.org/address/1G5sdw3M65VqTk2vQiqNZQ9ByS3ckoCVKU |
#alert { | |
margin-top: 20px; | |
display: inline-block; | |
width: 700px; | |
height: 160px; | |
transform: translateX(40px); | |
} | |
#alert .bottom { |