Writing a java program

Assignment Help Data Structure & Algorithms
Reference no: EM1380473

The history teacher at your school requires help grading a True/False test. The students' IDs and test answers are stored in a file document.
The first entry in the file contains the answers to the test form:

TFFTFFTTTTFFTFTFTFTT

Every other entry in the file is the student's ID, followed by a blank, followed by the student's response. Fore example, the entry:

ABC54301 TFTFTFTT TFTFTFFTTFT

indicates that the student's ID is ABC54301 and the answer to question 1 is True, the answer to question 2 is False, and so on. This student did not answer question 9. The exam has 20 questions, and the class has more than 150 students. Each correct answer is awarded two points, each wrong answer gets -1 point, and no answer gets 0 points.

Write a program that processes the test data. The output should be the Student's ID, followed by the answers, followed by the test score, followed by the test grade. Assume the following grade scale: 90% - 100% A; 80%-89.99% B; 70%-79.99% C; 60%-69.99% D; and 0%-59.99% F.

 

Reference no: EM1380473

Questions Cloud

Illustrate what changes if any would you recommend : Illustrate what do you think of a screening process like this. Specifically, illustrate what do you think are its pros also cons. Would you recommend a procedure like this. If so, illustrate what changes, if any, would you recommend.
Explain how would being conscious of this positivity ratio : Explain how would being conscious of this positivity ratio change your interactions with colleagues, direct reports, friends or children.
Discuss whether or not it is important for average manager : Average business manager is not likely to know about or use Federal Registry. Discuss whether or not it is important for average manager in today's business climate to use Federal Registry on a regular basis.
Explain why do these countries provide bulk of fdi : Then identify top-ten (or -20) foreign MNEs that have undertaken inbound FDI in your country. Explain why do these countries also companies provide bulk of FDI into country.
Writing a java program : The history teacher at your school requires help grading a True or False test. The students' IDs and test answers are stored in a file document.
Explain impact of globalization also information technology : Compare also contrast three different types of entrepreneurs also state which you are most likely to emulate should you begin a small business. Assess impact of globalization also information technology on creation of small businesses.
Illustrate what approach can we adopt when implementing : Please support your answer with examples of current organisational changes for example Qantas, Samsung, Toyota. Transition to change may be challenging illustrate what approach can we adopt when implementing change.
Question about lan and wan : Think about the following two scenarios two computers are connected to a LAN using a total of 20-feet of cable, and two computers are connected over the Internet and are 8000 miles from each other.
Illustrate what tradeoffs did you contemplate : When faced with challenges, illustrate what information did you use to make your decision also illustrate what tradeoffs did you contemplate.

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Creating an array

Determine which of the following commands is used to create an array?

  Algorithm-decide whether language recognized by dfa is empty

Give an algorithm to decide whether the language recognized by a DFA is empty. Given two DFAs M1 and M2, give an algorithm to decide whether L(M1)subset or equal to L(M2).

  Reverse path flooding

Suppose we have a network of nodes connected via point to point links, and source S sends a message that will be broadcast to all nodes using Reverse Path Flooding.

  Use sequential search algortithm to locate the number

These numbers should be stored in an array. Use the sequential search algortithm to locate the number entered by the user. If the number is in the array, the program should display a message.

  Write down the algorithm to insert an item

Write down the sample code to create a Linked List and allocate storage space for a node Write down the algorithm to insert an item At the beginning of a linked list

  Write algorithm for graph minimum number of semesters

You are given a DAG called G which is the prerequisite graph for a set of courses required for a degree. Each vertex corresponds to course. Provide a high-level description of algorithm which labels each vertex in G with minimum number of semesters..

  Creating an idef1x diagram

Construct an IDEF1X diagram that demonstrate only entities and relationships. Name each relationship and specify its cardinalities.

  Write algorithm segment for locating nth successor of item

Write an algorithm or code segment for locating the nth successor of an item in a circlar linked list (the nth item that follows the given item in the list).

  Creating code for a class called arrayqsn

Create all the code for a class called ArrayQsn. This class will contain 2-techniques. The first technique runningSumMean accepts an array of ints as a parameter, and will return the mean of the values as a double.

  Design time randomized monte carlo algorithm

You have to design an O(n) time randomized Monte Carlo algorithm which computes an (1 + o)- approximate ham-sandwich cut with probability 1 - n-c for any given constant c > 0.

  Calculate shortest path-djkstra-s shortest path algorithm

With indicated link costs, use Djkstra's shortest path algorithm to calculate shortest path from E to all network nodes. Illustrate how algorithm works by computing table.

  Dbms and data mining to imporve customer service

Discuss how a database management system and data mining can help motor vehicle maintenance center improve its services, and what tables would be required in such a database.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd