ThatAIguyA world of ideas

THE CONSCIOUSNESS ATLAS
Read. Experiment. Follow the evidence.

ConsciousnessLearn · Explore · Joseph Anady

Janady13/School-Work / School Work/4.16.1- LAB- Adjust list by normalizing.java

Source identity, revision, and recovered contents.

GitHub sourceSource text recovered

Source identity

FieldRecorded value
Source typeGitHub source
Original recordJanady13/School-Work / School Work/4.16.1- LAB- Adjust list by normalizing.java
DateNot specified in source
RepositoryJanady13/School-Work
Revision4a666c890caf7c43c47d0572dbcc287373c7a78e
Branchmain
Path or archive memberSchool Work/4.16.1- LAB- Adjust list by normalizing.java
Original SHA-25677defd8457aa492b2da1f7b31d410afe51c0ea803477d8186c0d002b36ff799c
Git blob SHAe2cc42fb7be772f52b705860fcaa1a1e342e0f6e
Reading-copy SHA-25677defd8457aa492b2da1f7b31d410afe51c0ea803477d8186c0d002b36ff799c

Original source ↗

Every recorded occurrence

These 2 records contain identical original source bytes. Their paths and revisions remain part of the archive.

Original recordBranch or archiveRevision / identifierOriginal location
Janady13/School-Work / School Work/4.16.1- LAB- Adjust list by normalizing.javamain4a666c890caf7c43c47d0572dbcc287373c7a78eOpen original
Janady13/School-Work / School Work/School-Work/School Work/4.16.1- LAB- Adjust list by normalizing.javamain4a666c890caf7c43c47d0572dbcc287373c7a78eOpen original

Recovered source transcript

import java.util.Scanner; public class LabProgram { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int size = scan.nextInt(); while(size<=0){ size = scan.nextInt(); } float weights[] = new float[size]; for(int i = 0;i<weights.length;i++){ weights[i] = scan.nextFloat(); } float max = weights[0]; for(int i = 1;i<weights.length;i++){ if(max < weights[i]){ max = weights[i]; } } for(int i = 0;i<weights.length;i++){ weights[i] = weights[i]/max; } for(int i = 0;i<weights.length;i++){ System.out.printf("%.2f ",weights[i]); } System.out.println(); } }

Search equations, builds, manuscript text, and recovered sources.