![nerd58](/avatars/21308.jpg)
nerd58
08.05.2021 •
Computers and Technology
Write the following program: Use struct data type to store information about courses. Every course is characterized by the following information: 1) Title (up to 20 characters); 2) Number of credits (integer); 3) Instructor (up to 15 characters); and 4) the suggested order of the course in the course sequence of the major (integer; Two courses can have the same suggested order).
- The information about individual courses is read from an input file.
- Store the information about all courses in an array and then display the content of the array.
- Order the courses in the alphabetical order of their titles and then display all the courses.
- Order the courses in the suggested order of the courses, such that one course with a lower suggested order is always before a course with a higher suggested order. Assuming that a student cannot take more than X credits per year (the value X is read from the keyboard), display what courses a student should take every year, so that courses are following the suggested order and the number of credits per year does not exceed the limit X.
Note: Extra credit is given if dynamic data structures are used.
example:
Inputfile: ESE999 5 Marshmello 2
MAT123 3 David 1
CSE123 4 Armin 3
JPN123 1 Martin 3
AMS123 2 Dimitri 1
Output:(display the content of the array):
ESE999 5 Marshmello 2
MAT123 3 David 1
CSE123 4 Armin 3
JPN123 1 Martin 3
AMS123 2 Dimitri 1
Output:(Order the courses in the alphabetical order of their titles and then display all the courses.)
AMS123 2 Dimitri 1
CSE123 4 Armin 3
ESE999 5 Marshmello 2
JPN123 1 Martin 3
MAT123 3 David 1
(Order the courses in the suggested order of the courses):
Input: 6
Output:
Year 1:
AMS123 2 Dimitri 1
MAT123 3 David 1
Year 2:
ESE999 5 Marshmello 2
JPN123 1 Martin 3
Year 3:
CSE123 4 Armin 3
Solved
Show answers
More tips
- S Society and Politics 10 Tips for Boosting Your Self-Esteem...
- C Computers and Internet How to Create a Folder on Your iPhone?...
- G Goods and services How to sew a ribbon: Tips for beginners...
- F Food and Cooking How to Make Mayonnaise at Home? Secrets of Homemade Mayonnaise...
- C Computers and Internet Which Phone is Best for Internet Surfing?...
- F Food and Cooking Everything You Need to Know About Pasta...
- C Computers and Internet How to Choose a Monitor?...
- H Horoscopes, Magic, Divination Where Did Tarot Cards Come From?...
- S Style and Beauty How to Make Your Lips Fuller? Ideas and Tips for Beautiful Lips...
Answers on questions: Computers and Technology
- C Computers and Technology This isn t about school but every time it tells me to watch an ad to unlock the answer to a question it prompts a survey and it just keeps loading. so i haven t been able to...
- C Computers and Technology To fill (copy) a cell across or down, point to the of the cell and drag. top left corner top right corner bottom left corner bottom right corner...
- C Computers and Technology What is an compiler? (i only give brainliest to people who explain there answers) - you...
- C Computers and Technology What is a debuger? (sorry they wouldn t let me say the word fo r some odd reason) (i only give brainliest to people who explain there answers) - you...
- C Computers and Technology What is a file ? (i only give brainliest to people who explain there answers) - you 3...
- C Computers and Technology Usually a WAN covers no more than one building. Group of answer choices True False...
- H History All girls are cheaters...
- M Mathematics find the cost price when selling price of an article is rupees rs 8640 and the profit percent is 20%...
- M Mathematics = In the diagram below, QN = 8, OP = 20, and OQ = 16. Find the length of PM. Round your answer to the nearest tenth if necessary....
- M Mathematics The circle below has center Z. Suppose that (arc) m XY = 106. Find the following....
Ответ:
Ответ:
Ctlr+B.
Makes what you wrote bold