syedjunaidalishahhaideri

syedjunaidalishahhaideri

Lv2

Junaid

0 Followers
0 Following
1 Helped

ANSWERS

Published15

Subjects

English1Business1Ethics1Algebra1Computer Science2Calculus1Mathematics1Physics2Finance1Economics2Chemistry2

Please show examples of the output window

Write a program using studentdata.txt Download the file and paste it into your NetBeans project at the root of the project This file contains hundreds of records where each record contains a student's S-number and their gpa. Your program must read the id number and gpa and transfer the data into two separate arrays. You can assume there will never be more than 1000 students in the file. Use two additional arrays to complete the requirements of the program create a simple diagram called a histogram to show how many students fall into each of 8 different categories showing how data is distributed across a range. For each student in the input file displaying their S-number, gpa, and class rank. You will have to calculate their class rank. the data contains grade point averages, the histogram will include 8 categories of gpa: 0.0 <= gpa < 0.5, 0.5 <= gpa < 1.0, 1.0 <= gpa < 1.5, 1.5 <= gpa < 2.0, 2.0 <= gpa < 2.5, 2.5 <= gpa < 3.0, 3.0 <= gpa < 3.5, 3.5 <= gpa <= 4.0 the histogram might look like is: 0.0 to 0.49 (48) **** 0.5 to 0.99 (82) ******** 1.0 to 1.49 (65) ******* The number in parentheses represents the total number of students that fall within that category. Each * represents 10 students rounded to the nearest 10. display the student id number, the gpa, and the student’s class rank. The class rank is indicating the number of students who have a better gpa if the student's rank is 27, it means that there are 26 other students who have a gpa that is better than the student with rank 27. output all the students in the order they are in the input file such as : S316542   3.45    27   S29463 1.42     801     S969870     2.75      T64 with 8 others the rank for the last student indicates T64 which means that there are 63 students with a gpa better than this student. It also indicates that this student's gpa of 2.75 is the same as 8 other students program should also work with any input file assuming it will never contain more than 1000 students. project folder must use my input file when submitting the program

Answer: Histogram of GPA: 0.0 to 0.49 (48) **** 0.5 to 0.99 (82) ******** 1.0 ...
Answer: The substitution effect and income effect are two concepts in economic...
Answer:In a gravimetric experiment, the purpose of drying the crucible before ...
Answer: O All isosceles triangles are not similar. The pair of congruent angle...
Answer: The equilibrium price is the price at which the quantity demanded (Qd)...

This question got resolved

I put in his code

void getUID() {
  FirebaseAuth auth = FirebaseAuth.instance;
  User? user = auth.currentUser;
  if (user != null) {
    setState(() {
      uid = user.uid;
    });
  }
}

When I run the flutter program I now get this error  msg

======== Exception caught by widgets library =======================================================
The following assertion was thrown building TaskListPage(dirty, state: _TaskListPageState#61ebf):
a document path must be a non-empty string
'package:cloud_firestore/src/collection_reference.dart':
Failed assertion: line 116 pos 14: 'path.isNotEmpty'

When the exception was thrown, this was the stack: 
#2      _JsonCollectionReference.doc (package:cloud_firestore/src/collection_reference.dart:116:14)
#3      _TaskListPageState.build (package:todolist/pages/tasklist/tasklist.dart:75:16)
#4      StatefulElement.build (package:flutter/src/widgets/framework.dart:5080:27)
#5      ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4968:15)
#6      StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5133:11)
#7      Element.rebuild (package:flutter/src/widgets/framework.dart:4690:5)
#8      ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4950:5)
#9      StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:5124:11)
#10     ComponentElement.mount (package:flutter/src/widgets/framework.dart:4944:5)
#11     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3953:16)
#12     Element.updateChild (package:flutter/src/widgets/framework.dart:3676:20)
#13     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4993:16)
#14     StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5133:11)
#15     Element.rebuild (package:flutter/src/widgets/framework.dart:4690:5)
#16     BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2743:19)
#17     WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:863:21)
#18     RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:381:5)
#19     SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1289:15)
#20     SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1218:9)
#21     SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:1076:5)
#22     _invoke (dart:ui/hooks.dart:145:13)
#23     PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:338:5)
#24     _drawFrame (dart:ui/hooks.dart:112:31)
(elided 2 frames from class _AssertionError)
====================================================================================================

Screenshot of my emulator

Answer: The error message "a document path must be a non-empty string" suggest...
Answer: The estimated cost of equity using the average of the CAPM approach an...
Answer: Rancidity and oxidation are two different chemical processes that can ...
Answer: Ethics is a branch of philosophy that deals with moral principles, val...
Answer: Heat is a form of energy that can be transferred between objects or sy...
Answer: Step-by-step explanation: To differentiate f(x) = 3x^2 - 2cos(x), we a...
Answer: Step-by-step explanation: The average density of the object can be cal...
Answer: During the "Golden Age" of American capitalism (1945-1973), the US gov...
Answer: Step-by-step explanation: The phenomenon being explained is the idea t...
Answer: The integral of sec(x) can be written as:∫sec(x)dx = Li[sec(x) + tan(x...

Weekly leaderboard

Start filling in the gaps now
Log in