首页 > > 详细

420-P16-AS Algorithm/code in C++

Mihai Maftei 1 17/10/2018 (v. 1.2)
Project C++: 30%
Course Identification
Name of programs – Codes:
COMPUTER SCIENCE TECHNOLOGY (420.A0)
PROGRAMMEUR-ANALYSTE (LEA.3Q) Course title:
STRUCTURED PROGRAMMING
Course number:
420-P16-AS
Group:
7150
Teacher’s name:
Maftei Mihai
Duration:
Before 2018-11-28 9:00
Semester:
Fall 2018
Standard of the Evaluated Competencies
Statement of the evaluated competency – Code
To use a structured programming language – 016S
Evaluated elements of the competency
1. Adapt algorithms to the constraints of the programming language.
2. Translate the algorithms into a programming language.
3. Compile the program.
4. Test the program.
This project is calculated on 100 points distributed as follows:
Question 1: Designing the algorithm / flowchart For a total of 10 points Question 2: Translating algorithm into a C++ program For a total of 10 points
Question 3-1 : Create a structure For a total of 5 points
Question 3-2 : Run and display the output For a total of 5 points
Development of a C++ application using arrays, structures, functions
Question 4 : Display the student management menu For a total of 5 points
Question 5 : Input student information using structure For a total of 10 points
Question 6 : Search for a student by student number For a total of 20 points Question 7 : Display the student list For a total of 15 points Question 8 : Exit the application For a total of 5 points
Question 9: Document of application project For a total of 15 points TOTAL : 100 points
Display the student management menu
Instructions
Read each of the following questions carefully, and then write your answers to the theory questions in the spaces provided. For the programming question, you have to use Visual Studio and C++.
Mihai Maftei 2 17/10/2018 (v. 1.2)
SECTION I: Algorithm/code in C++ (30 points)
Question 1 (10 points)
Create the algorithm (pseudo-code) that will ask the user to choose what kind of conversion likes to do (pounds to kilograms or kilograms to pounds).
There are 2.2046 pounds in a kilogram, 1000 grams in a kilogram, and 16 ounces in a pound.
If the 1st option was selected, enter a weight in pounds and ounces and outputs the equivalent weight in kilograms and grams or, enter 0 or a negative value, if the user, wants to find out the maximum, the minimum and the average of weight(s) entered as far (up to 15 weights conversions).
If the 2nd option was selected, enter a weight in kilograms and grams and outputs the equivalent weight in pounds and ounces or, enter 0 or a negative value if the user wants to find out the max., the min. and the average of the weight(s) entered as far (up to 15 weights conversions).
Include appropriate loops that lets the user repeat the computation for new inputs values, and until the user wants to end the program (the 3th option of the main menu).
Question 2 (10 points)
Translate the algorithm (in question 1) into the C++ Language. Use functions for the subtasks and use arrays to save the entered/calculated data for 15 entries. Save the output using print-screens, or by copy-paste into the documentation. (Implements the function prototypes for question 1)
Question 3 (10 points)
1 Given the following data structure, declare a structure named Courses with the appropriate fields (5 points).
Course number
Title
Hours per week
Session
420-P16-AS
Structured Programming
6
Fall 2016
2 Write a code program in C++ that allows entering all the courses data that you have for current session at compile-time using the structure from previous point. Present the output you obtain in the documentation of the project (print-screens or by copy-paste). (5 points)
Mihai Maftei 3 17/10/2018 (v. 1.2)
SECTION II: Programing in C++ (70 points)
Student Management Application
Create an application that keeps track of students, knowing that a structure student is defined by: a number, a first name, a last name, an address, an email and a phone number where first name and last name are defined as a structure Person and the address as a structure Address with the following properties:
1- Number and street name : 30 chars
2- City name : 20 chars
3- Postal code : 7 chars
4- Province/State : 15 chars
Question 4 (5 points): Display the student management menu that returns the chosen option by the user.
Question 5 (10 points): Create the students (add yourself as student).
Question 6 (20 points): Search for a student by his number.
Question 7 (15 points): Display the students list.
Question 8 (5 points): Exit the application.
The menu is as follows:
Student Management Application
1. Create and add a student.
2. Search for a student by number
3. Modify the information of the student, but its number
4. Delete the information of the student, with confirmation
5. Display the student list in ascending order (use student number)
6. Exit the application with confirmation
Enter your choice: _
Include the execution output (as a print screen or as a comment into the documentation)
Question 9 (15 points): Documentation of the project with algorithms or flowcharts, print screens, code and comments of the application(s).
Identify yourself, save all your files, and upload your work before the time limit by LEA of Omnivox.
Mihai Maftei 4 17/10/2018 (v. 1.2)
Thank you

联系我们
  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-21:00
  • 微信:codinghelp
热点标签

联系我们 - QQ: 99515681 微信:codinghelp
程序辅导网!