ps16

ps16

Lv3

ps16Anna University - Chennai

1 Follower
1 Following
0 Helped

ANSWERS

Published45

Subjects

English2Science1Information Technology3Computer Science38Calculus1
Answer: public class ArrayMultiplication { public static void main(String[] ar...
Answer: SQL queries for the given tasks: Display the first names of the employ...
Answer: Here is the MySQL query: SELECT * FROM Employees WHERE Salary > 500...
Answer: Java code: public class Midterm { public int sum(int[] arr) { int sum ...
Answer: In C++, a class containing the abstract keyword in its declaration is ...
Answer: No, it is not possible to declare abstract methods as private. Abstrac...
Answer: A compelling movie needs: A captivating story. Characters the audience...
Answer: Java program that calculates the average of all non-negative command-l...

The University of Southern North Dakota Testing department needs to write a grading program for multiple choice test. It should be capable of grading tests with up to 50 questions and for any number of students. The program should grade individual exams and calculate the grade for the student based on the number of questions, each being the same value out of 100. For example, if there are 25 questions each is worth 4. This program must be written in Ada.  

The program must also determine how many times each score was earned on the test.  This is a count or frequency. The program must show the number of students graded and the class average.

 

The program should have 

  • an input file. The program asks the user for the name of the file. The file name is entered at the keyboard. All subsequent data is read from the file.
  • a score frequency count. Every time a score is computed increment a counter for that value. Any score from 0 to 100 is possible (integer only), so the program needs 101 counters!
  • A record type Student_Type containing the student ID and their answers, and t he final grade for the exam.
  • A package containing Student_Type as private and operations for reading Student_Type, grading the exam and displaying the student ID and grade.

 

Behavior not assigned to functions may be done in main.

 

The program will accept the input file name from the keyboard after prompting the user for the file name.

 

The first line in the input files contains the number of questions on the exam, the second the answer key, and all following lines contain the student ids and responses to the questions.

 

The input shown here

 

20

2 1 1 3 4 4 5 3 2 1 2 4 5 2 1 1 3 4 4 2

12345 2 1 1 1 4 4 3 3 2 1 2 4 5 2 2 1 4 4 4 3

23456 2 1 1 2 3 4 5 3 2 1 2 4 5 2 1 2 3 4 4 1

14567 1 2 1 3 4 4 3 3 2 1 2 4 5 2 2 1 4 4 4 2

15678 2 1 2 3 3 4 5 3 1 1 3 4 5 2 1 1 3 4 4 2

16789 2 1 1 3 4 4 5 3 2 1 2 4 5 2 1 1 3 4 4 2

17890 2 1 1 3 4 4 5 3 2 1 2 4 5 2 2 1 4 4 4 3

12245 1 2 1 3 4 4 3 3 2 1 4 4 5 2 2 1 4 4 4 2

12256 2 1 2 3 3 4 5 3 1 1 2 4 5 2 1 1 3 4 4 2

22345 2 1 1 2 3 4 5 3 2 1 2 4 5 2 1 2 3 4 4 1

22456 1 2 1 3 4 4 3 4 2 1 2 4 5 2 2 1 4 4 4 2

13244 2 1 1 3 3 4 5 3 1 1 3 4 5 2 1 1 3 4 4 2

22458 2 2 1 3 4 4 5 3 2 1 2 4 5 2 1 1 3 4 4 2

23678 2 1 3 3 4 4 5 3 2 1 2 4 5 2 2 4 4 4 4 3

24567 2 1 2 3 3 4 5 3 2 1 2 4 5 1 1 2 3 3 4 1

11412 2 1 2 3 3 4 5 3 1 2 2 4 4 2 1 1 3 4 4 2

 

produces this output:

Enter file name:scantron.txt

Student ID    Score

===================

12345          75

23456          80

14567          75

15678          80

16789         100

17890          85

12245          70

12256          85

22345          80

22456          70

13244          85

22458          95

23678          75

24567          70

11412          75

===================

Tests graded = 15

===================

Score     Frequency

===================

100           1

 95           1

 85           3

 80           3

 75           4

 70           3

===================

Class Average = 80

 

 

 (*** Beware!! The data files can vary in number of questions up to 50, and there can be any number (at least 1) of students. Your program must be flexible! ***)

 

Answer: with Ada.Text_IO; use Ada.Text_IO;with Ada.Integer_Text_IO; use Ada.In...
Answer: # Function to write student information to a text filedef write_studen...
Answer: Python code snippet that replaces any space (' ') with an underscore (...
Answer: Here is the java code with the specification: class StudentRecord { pr...
Answer: Becoming a software engineer typically involves the following steps: E...
Answer: Huffman coding is a popular algorithm used for lossless data compressi...
Answer: The characteristic of cloud-based hosting among the options provided i...
Answer: The fourth partition on a hard drive is typically called an "extended ...
Answer: A data structure is a way of organizing and storing data in a computer...
Answer: Software engineering plays a pivotal role in shaping modern society, d...
Answer: Coding, also known as programming, is the process of creating instruct...
Answer: Spring Boot is a framework that makes it easy to build Java applicatio...
Answer: To establish a cellular network for its 3 distant campuses, HYIT needs...
Answer: Network topology refers to the arrangement or layout of the various co...
Answer: Software process activities, also known as software development life c...
Answer: Functionality: Good software should fulfill its intended purpose effec...
Answer: Prototyping in system analysis and design is a methodology used to cre...
Answer: An entity is a real-world object or concept that can be distinguished ...
Answer: import java.util.Scanner;public class ScoresAnalyzer { // Method to ca...
Answer: In Excel, relative and absolute addressing are two different methods u...
Answer: C. A building outside When riding on a train, objects that are far awa...

How to learn python in 1 hour? It’s possible?                

Python Tutorial - Python Full Course for Beginners in Tamil Error Makes Clever Academy

Foreign music foreign opening music foreign

All right now foreign foreign foreign again foreign integer foreign foreign foreign variable now integer Syria energy in the plus another in the equal to plus minus division multiplication operators foreign foreign foreign double quotations a equal to 10 b equal to 20 is foreign foreign foreign arena in the string foreign foreign foreign foreign foreign foreign foreign music foreign foreign foreign foreign hippo

Is get input for name and age and print it name equal to input is equal to input is my name is emc my age is porter foreign print my my name is colon comma name my name is print my age is amc my age is emc my name is emc urban printers foreign get input for variable name and age address printed input is my name is emc my age is one my address is hippo print my address is come on address is emc my age is one my address is get integer input get integer input for variable a b c input multiply all three variables add all three variables moon variables foreign input c equal to in input okay multiply all three variables is star c hippo in the moon value multiply again foreign f equal to multiply upon the value added value already divided by e uphon is f naf 2 foreign vanilla name of inner variable foreign foreign foreign is comma name upon a name again print my core is comma score divided by 10 arden print my dip for meant is comma computer sorry computer left department foreign foreign foreign foreign music foreign music foreign yes else print no improviser explained if foreign boolean value in the true value boolean values okay if true abena in the if um foreign if false ardentaling about r is foreign print win equal to equal to um foreign foreign we know foreign example program rcb equal to bin abilene solution rcb equal to if rcb equal to equal to min rcb equal to equal to winner print is allah rcb equal to equal to print voila compola is over variable okay variable in the variable foreign okay foreign foreign foreign foreign foreign arena Syria meets priya is get user input for variable magna magna bend over variable equal to input okay if if cooler magna equal to equal to died Syria meets priya foreign music equal to died Syria means in there died aprina died equal to diet foreign oh just a normal foreign music another channel died or not okay music foreign foreign foreign foreign foreign I know print pass es again print fail in the syntax index foreign foreign foreign people in the videos foreign eventually 40 35 in the statement through a falsa 40 35 in the statement is 30 greater than 35 minutes okay question get input for variable income if income is greater than 7000 scholarship is available else not eligible for scholarships foreign scholarship else colon print eligible for scholarship okay foreign foreign foreign people numbers remainder foreign foreign program foreign foreign Syria 10 divided ness eleven two five two certain reminder remember a divided a modulus and the person is 0 over 15 mod 3. foreign 12 53s are fifteen six threes are 18 okay five threes are fifteen now music foreign foreign music foreign music 3 equal to equal to 0 print explains only print if it 's simple by three else print not divisible by 3. okay okay foreign okay foreign music zero inside music foreign if 14 seconds 14 mod 3 equal to equal to zero i've been solid 14 mark preorder output in our 14 3rd divided okay one three sir three two three sir one threes are three two threes are six three threes are nine four threes are twelve five threes are fifteen fourteen area foreign foreign hippo okay three hours music foreign music a mod 5 equal to equal to 0. and a mod 3 equal to equal to 0. 3 foreign foreign foreign foreign foreign foreign dropper not divisible by three and five inverted is 15 mod 5. equal to equal to zero 15 mod 500 foreign 15. 0 equal to equal to 0 and 0 equal to equal to zero es and this is foreign foreign foreign remainder one face r5 10 3 5 or 15. people two fives are 10. about 12 on the five tables 2 okay your remainder total ten portion of two um 12 mod 3 12 mod 3 arena music foreign foreign foreign directly okay now continue again in the program hippo get input for a number and find it is even or odd concepts hippopotamia explained every fourth programfully or number is number one even odd numbers foreign odd number please input if a mod 2 equal to equal to zero iron print even else print or open the program okay um restart or not enter a number of included music every where hippo is music if 10 mod 2 equal to equal to 0. 10 result 10 10 row five twos are 10 approve your remainder 10 minus zero okay foreign foreign 0. if false are the if to all a divided foreign okay get input for score out of 100 k for input score when the 3500 poor students if score is greater than 35 um average student if score is greater than 70 good student the question is foreign foreign score equal to int input score if score greater than that effect score greater than sorry sorry score less than 36. print poor student else print is foreign conditions music if core greater than 35 and score less than 70. print good student s if score greater than 70 are the print okay okay our student average student good student okay yes foreign music foreign less than 35 korean 65 35 65 less than 3500 if score greater than 35 and score less than 70. if score greater than 35 if score greater than 35 and score less than 70. score greater than 35 greater than 35 hours 65 greater than 35 um and foreign foreign foreign foreign foreign foreign period foreign hippo in the programs if if score okay if score equal to 65 character score equal to 65 first lane run now score less than 35 65 less than 35 less than 35 career 65 35 um music foreign foreign proof of alpha 34 less than 35 true a point foreign foreign and 80 less than 70. foreign music music foreign music foreign foreign foreign music foreign invalid number invalid score input is people a score on the 150 foreign korea is foreign get input for two numbers a and b get input from user whether to add subtract multiplication artificial if user selects add then add the two number and print the result performance okay equal to in input is b b equal to int input cooler b photography foreign music music foreign music a plus b illinois operation equal to equal to sub print a minus b l if operation equal to equal to multiplication print a star b l if operation equal to equal to division print a divided by b foreign operation okay foreign foreign 10 plus output 30 eventually printers control operations foreign foreign you are not eligible okay first you are eligible you are not eligible first score score percentage score equal to in input is core personalization core percentage if core greater than 70 print you are eligible else print you are not eligible music foreign foreign music foreign foreign name equal to input enter your name is equal to input enter your age is foreign music foreign okay salary equal to in put is equal to in input arizona if salary greater than twenty thousand euros greater than or equal to okay age less than or equal to 25. print you are eligible for loan okay else print u r naught eligible okay in the programmer run okay greater than or equal to 20 000 r is foreign foreign foreign salary salary thousand again if salary greater than or equal to twenty thousand are age less than or equal to 25. salary greater than or equal to twenty thousand operations thirty thousand thirty thousand greater than or equal to twenty thousand thirty thousand thirty thousand greater than or equal to 20 000 again true of also true thirty thousand twenty thousand average 50. number true foreign foreign 1 plus 0. true plus false other one plus zero one plus zero and repair one hour one into zero zero whatever is foreign 1 into 1 equal to 1. into zero 0. 0 into 0 0 okay true true one plus one arena two okay and the number one true false hippo 1 plus 0. music true false false zero plus zero zero oppo false either true either false either false is salary greater than or equal to twenty thousand salary thirty thousand okay thirty thousand r age age 50. result in a your result true um foreign foreign okay okay eligible loan equal to develop alone music is required loan amount is less than or equal to fifty thousand print you are eligible for loan um if loan amount loan amount greater than or equal to fifty thousand foreign music foreign foreign print your eligible for loan okay salary 20 000 isa ac um foreign first condition true or yes first condition loan greater than 50 000. sixty thousand greater than 50 000 r um foreign foreign average if average mark is average foreign foreign i 'll give up every practice foreign. com foreign foreign foreign foreign foreign foreign conditional action integers n equal to input if n is odd print beard is 2 equal to 0. in 10 minutes print beard s is music if n greater than or equal to 2 and n less than or equal to 5 print in the printers not weird okay if n is even and in the inclusive range of 6 to 20 print weird os alif n greater than or equal to 6 and n less than or equal to 20 arena weird okay if n is even and greater than 20 are now is a leaf in greater than 20 print not we are having oh in the program okay okay in the input again foreign coding practice videos music so people in the diagram in the diagram in the diagram okay in the ground level starting point is foreign first first start learning in the box is music foreign apple colon print i in the syntax within our soul driver first in the line of programming here thank you a p p l e one two three four five foreign laughter music foreign music foreign foreign for i

Answer: To learn Python effectively, follow these steps: Set Clear Goals: Dete...
Answer: To learn Python effectively, follow these steps: Set Clear Goals: Dete...
Answer: An optical disc is a flat computer disk that uses laser beams to read ...
Answer: Becoming a Python developer in 30 days is an ambitious goal, but here'...
Answer: Understand the Study: Read the original study thoroughly to understand...
Answer: OOPs stands for Object-Oriented Programming. It is a programming parad...
Answer: Google purchased Android Inc. on July 11, 2005 for $50 million. The An...
Answer: Developing virtual reality (VR) presents unique challenges and conside...
Answer: C++ is a powerful and versatile programming language widely used for d...
Answer: Computer software refers to a collection of programs, instructions, an...
Answer: C program for displaying CV.Program: #include <stdio.h>int main(...

Weekly leaderboard

Start filling in the gaps now
Log in