1. Homepage
  2. Programming
  3. COMP 248 Object-Oriented Programming I - Assignment 3: 3D-Space Encryption-Decryption Program

COMP 248 Object-Oriented Programming I - Assignment 3: 3D-Space Encryption-Decryption Program

Engage in a Conversation
CanadaConcordia UniversityCOMP 248COMP248Object-Oriented Programming IJava3D-Space Encryption-DecryptionSimple Electronic Voting System

Assignment 3

Question 1 (6pts) – 3D-Space Encryption-Decryption Program

With reference to our Space-Exploration program (from Assignment 1) tagged: “Project-S”. In your capacity as a Research Intern working and operating from the ground station of Project-S, one of your key responsibilities include: sending and receiving messages from your colleagues operating at the space station of Project-S. To this end, your supervisor(s) have charged you with the sole responsibility of designing an EncryptionDecryption algorithm, and developing this same algorithm using Java Programming Language. CourseNana.COM

Essentially, this algorithm computes the ciphertext by ingesting and preprocessing any given string/text to ensure that the first and last characters of the string/text is a non-space character; thereafter, it counts the number of characters in the string/text. If the preprocessed string/text is comprised of an even number of characters; then, based on Java Indexing paradigm, every even-index character is switched with the nearest odd-index character until the end character. If the preprocessed string/text is comprised of an odd number of characters; then, based on Java Indexing, the first character is isolated while each succeeding odd-index character is switched with the nearest even-index character until the end index. Please see Table 1 below for pictorial explanation. CourseNana.COM

Table 1. Procedure for Project-S Encryption-Decryption algorithm Text Original CourseNana.COM

Ciphertext CourseNana.COM

Even CourseNana.COM

Odd CourseNana.COM

Therefore, write a Java class/program such that your source code will accomplish the following: CourseNana.COM

  1. Name of the class/program = A3_Q1.
  2. Display a welcome/salutation message to the user of the program.
  3. Display a prompt message for the user to enter a string/text for the encryption-decryption algorithm.
  4. Validate the user’s input to ensure that ONLY a string/text comprising valid characters has been entered. If otherwise, display the respective error message and end the program.
  5. Preprocess the input string/text as described above; and compute the corresponding ciphertext based on our proposed encryption algorithm.
  6. Additionally, note that: if an output ciphertext is passed through our proposed algorithm and program, then the ciphertext shall be decrypted to reveal the original/plain text.
  7. Finally, display a complimentary-close message as follows: Thank you for your contribution to this Space Project. The following are sample screenshots to illustrate the expected behavior of your program. Your program must display the same information, using the same format, depicted in the screenshots:

Figure 1. Sample-1 output of Question 1 CourseNana.COM

Figure 2. Sample-2 output of Question 1 CourseNana.COM

Figure 3. Sample-3 output of Question 1 CourseNana.COM

Figure 4. Sample-4 output of Question 1 CourseNana.COM

Figure 5. Sample-5 output of Question 1 CourseNana.COM

Question 2 (8pts) – Simple Electronic Voting System (SEVS)

Electioneering and Polling are vital activities with regard to every government and/or democratic process. Thus, you have been tasked with the responsibility of designing and developing (using Java Programming Language) a Simple Electronic Voting System (SEVS) which possesses the following capabilities, displayed as a menu window to the electoral manager, viz: CourseNana.COM

Code Description
1 Display candidates
2 Vote a candidate
3 Add new candidates(s)
4 Display results
0 End SEVS

Firstly, the particulars of every candidate is formatted in the form: {id_1},{name_1}. Hence, the SEVS prompts the electoral manager to enter a list of particulars for all eligible candidates, as a string/text input, into the program with respect to the following format: {id_1},{name_1};{id_2},{name_2};.... In other words, the input string/text comprises of several candidate’s particulars separated via a semicolon; and in each candidate’s details, the candidate’s ID is separated from the candidate’s name via a comma. Therefore, write a Java class/program such that your source code will accomplish the following: CourseNana.COM

  1. Name of the class/program = A3_Q2.
  2. Display a welcome/salutation message to the user of the program.
  3. Display a prompt message for the user to enter all candidates’ particulars; thereafter, display a prompt message to the user for an input code.
  4. If the input code is 1; kindly display a complete list of all eligible candidates based on the display representations depicted via Figures 7 and 10.
  5. If the input code is 2; kindly prompt the electorate/user to enter the ID of the candidate s/he wishes to vote for as depicted via Figure 8.
  6. If the input code is 3; prompt the electoral manager to enter a string/text input comprising a collection of all the new candidates’ particulars that should be appended to the already existing list of eligible candidates. Thus, see Figure 9.
  7. If the input code is 4; please display a comprehensive and intuitive list of the electoral results, such that if 2 or more candidates possess same votes/ballots then these candidates should bear same position, as portrayed in Figure 11.
  8. Validate every input from the electoral manager/user to ensure that ONLY a valid input code is entered into the SEVS. If otherwise, display a warning message (as depicted in Figure 13) which will always re-prompt the user to re-enter a valid input code.
  9. Finally, if the input code is 0; kindly terminate the execution of SEVS with a complimentclose message as follows (see Figure 12):

Thank you for using our Simple Electronic Voting System (SEVS) CourseNana.COM

The following are sample screen shots to illustrate the expected behavior of your program. Your program must display the same information, using the same format, as depicted below: CourseNana.COM

Figure 6. Sample-1 output of Question 2 CourseNana.COM

Figure 7. Sample-2 output of Question 2 CourseNana.COM

Figure 8. Sample-3 output of Question 2 CourseNana.COM

Figure 9. Sample-4 output of Question 2 CourseNana.COM

Figure 10. Sample-5 output of Question 2 CourseNana.COM

Figure 11. Sample-6 output of Question 2 CourseNana.COM

Figure 12. Sample-7 output of Question 2 CourseNana.COM

Figure 13. Sample-8 output of Question 2 CourseNana.COM

Get in Touch with Our Experts

WeChat (微信) WeChat (微信)
Whatsapp WhatsApp
Canada代写,Concordia University代写,COMP 248代写,COMP248代写,Object-Oriented Programming I代写,Java代写,3D-Space Encryption-Decryption代写,Simple Electronic Voting System代写,Canada代编,Concordia University代编,COMP 248代编,COMP248代编,Object-Oriented Programming I代编,Java代编,3D-Space Encryption-Decryption代编,Simple Electronic Voting System代编,Canada代考,Concordia University代考,COMP 248代考,COMP248代考,Object-Oriented Programming I代考,Java代考,3D-Space Encryption-Decryption代考,Simple Electronic Voting System代考,Canadahelp,Concordia Universityhelp,COMP 248help,COMP248help,Object-Oriented Programming Ihelp,Javahelp,3D-Space Encryption-Decryptionhelp,Simple Electronic Voting Systemhelp,Canada作业代写,Concordia University作业代写,COMP 248作业代写,COMP248作业代写,Object-Oriented Programming I作业代写,Java作业代写,3D-Space Encryption-Decryption作业代写,Simple Electronic Voting System作业代写,Canada编程代写,Concordia University编程代写,COMP 248编程代写,COMP248编程代写,Object-Oriented Programming I编程代写,Java编程代写,3D-Space Encryption-Decryption编程代写,Simple Electronic Voting System编程代写,Canadaprogramming help,Concordia Universityprogramming help,COMP 248programming help,COMP248programming help,Object-Oriented Programming Iprogramming help,Javaprogramming help,3D-Space Encryption-Decryptionprogramming help,Simple Electronic Voting Systemprogramming help,Canadaassignment help,Concordia Universityassignment help,COMP 248assignment help,COMP248assignment help,Object-Oriented Programming Iassignment help,Javaassignment help,3D-Space Encryption-Decryptionassignment help,Simple Electronic Voting Systemassignment help,Canadasolution,Concordia Universitysolution,COMP 248solution,COMP248solution,Object-Oriented Programming Isolution,Javasolution,3D-Space Encryption-Decryptionsolution,Simple Electronic Voting Systemsolution,