All requirements are in the file. Submit as .cpp file. Sample Input: https://cdn.inst-fs-iad-prod.inscloudgate.net/309ee...

1 answer below »
All requirements are in the file. Submit as .cpp file. Sample Input: https://cdn.inst-fs-iad-prod.inscloudgate.net/309ee790-0668-4a1f-983f-75101ed68728/sampleStudent.in.txt?token=eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCIsImtpZCI6ImNkbiJ9.eyJyZXNvdXJjZSI6Ii8zMDllZTc5MC0wNjY4LTRhMWYtOTgzZi03NTEwMWVkNjg3Mjgvc2FtcGxlU3R1ZGVudC5pbi50eHQiLCJ0ZW5hbnQiOiJjYW52YXMiLCJ1c2VyX2lkIjoiMTkxMzAwMDAwMDAyMzgzOTYiLCJpYXQiOjE1OTM5NTUyNDUsImV4cCI6MTU5NDA0MTY0NX0.nDBR1uGDOei2bCrDB68ZkLBYF1AKxbDKy_jeGdzRYbAGk8S3XZkuRQFUgpXt0M7ILzo9ImyP1QP3xTjTFdZvuw&content_type=text%2Fplain Sample Output: https://cdn.inst-fs-iad-prod.inscloudgate.net/8ae4aa2e-0469-4c77-93df-c0465f9f9806/sampleStudent.out.txt?token=eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCIsImtpZCI6ImNkbiJ9.eyJyZXNvdXJjZSI6Ii84YWU0YWEyZS0wNDY5LTRjNzctOTNkZi1jMDQ2NWY5Zjk4MDYvc2FtcGxlU3R1ZGVudC5vdXQudHh0IiwidGVuYW50IjoiY2FudmFzIiwidXNlcl9pZCI6IjE5MTMwMDAwMDAwMjM4Mzk2IiwiaWF0IjoxNTkzOTQwOTU5LCJleHAiOjE1OTQwMjczNTl9.xXIjzhwHIix99c4jMi3vkqO8hCOZcf8774zSDG04s6kZ0v5jl6vQ4vGp76R_yFi1g-E22_E-jQEAdbcIOk0TkQ&content_type=text%2Fplain


Untitled Write a program that takes as input student information and constructs an ouput, the html code needed to construct an html table presenting the student information. Write a class named HtmlStudentTable which takes a vector of Student objects. You will also write this Student class. Sample inputs and outputs will be provided. Class Implementation Details provided below. Requirements When the application is executed, the menu of options above shall be displayed to the terminal window: 1. Input File 2. 2. Input Console 3. 3. Exit • If input file is selected the user is then prompted to type in the name of the input file which is assumed to be in the same directory o • The file is assumed to have the following format. One student per row, with possibly many rows (many students). Each student has a name and score which is comma separated and there is a new line separating rows. A sample input file is provided. You should create many many more for testing purposes. • Name, score • If input is supplied correctly, the student info is used to construct the appropriate html table code and is added to a string that contains all students processed thus far. • If a row is incorrectly formatted an error message is displayed the computation continues with the next row in the file. If any student score is invalid (less than 0 or greater than 100), the corresponding student info is skipped . • If the file does not open, an error message is displayed and the menu is re-prompted • When the end of the file is reached, the file is closed and the output html code is displayed to the screen and written to the output file. • If Input Console is selected, then the user is prompted to input the factors for computation. • If an input is outside the valid range, an error message is printed and user re-prompted. • Please prompt the user included in the valid range for student score • After all student info are input, the output html code is displayed to the screen and written to the output file. • Next, user is prompted to either • Return to main menu • Input another set of risk factors • If exit is selected, the program terminates normally. File Processing The first line of the file contains column headings. These are for anyone reading the file manually. We will not use these column headings and only need to read the entire line to "get it out of the way". The second line of the file is the first record of student info that we will process. We will not know how many total records are in the file. We simply must continue reading and processing lines of data until reaching the end of the input file. Each line of the file contains the following data elements Names Valid inputs: All alphabetic strings (no hyphens), may consist of up to 4 names (eg, first middle maiden last) • Jon • Jane Doe • Billy Ray Smith • Samantha Riley Jones Smith Score Valid inputs: All numerics between 0 and 100. May be floating point. Data Validation All valid data inputs for each factor are noted above. You need not worry about incorrect data TYPE inputs, but your algorithm should correctly handle any input within the valid range. An example of a data type input that you do not need to worry about would be if Age input is expected, but textual data (eg “notNumeric”) is supplied. Code Organization You will write a total of 3 .cpp files, 3 header files, and 1 Makefile. • HtmlStudentTable Class • HtmlStudentTable.cpp • Contains HtmlStudentTable implementation • HtmlStudentTable.h • Contains HtmlStudentTable Interface • Student Class • Student.cpp • Contains Student Implementation • Student.h • Contains Student Interface • Main Method • Project1.cpp • Contains Main Method • Project1.h • Has all necessary include statements. • Makefile • Lists all dependencies • Required make targets: • make p1 • compiles project and creates executable invoked as ./p1 • make clean • removes all appropriate .o files (NOT CODE FILES)
Answered Same DayJul 05, 2021

Answer To: All requirements are in the file. Submit as .cpp file. Sample Input:...

Arun Shankar answered on Jul 15 2021
144 Votes
/* main.c */
#include
int main( void ) {
    unsigned int size = 12;
    printf("\nPsuedosol
ution\n", size);
    unsigned int size = 12;
    printf("\nPlease send the files\n", size);
    unsigned int size = 12;
    printf("\nPsuedosolution\n", size);
    unsigned int size =...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here