1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
tatuchka [14]
3 years ago
6

Write the following program: Use struct data type to store information about courses. Every course is characterized by the follo

wing 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
Computers and Technology
1 answer:
SashulF [63]3 years ago
6 0
I need this answer to 12
You might be interested in
What are some excuses for not attending online classes ( for students )​
sp2606 [1]

Answer:

  1. l was asleep
  2. l was working or helping my mom
  3. l was sick
6 0
3 years ago
Chief technology officers can influence a company's current and future ____.
omeli [17]

Answer: developments is my best guess

Explanation:

6 0
3 years ago
04. Suppose a computer program needs to sort a list of student records in ascending order
34kurt

Answer:

D) ["Kathy Bones", "Jill Brewer", "Joe Schnook", "Tom Smith"]

Explanation:

The context of the problem explains a computer program that sorts names in "ascending order" (A to Z) since the ASCII table has capital A start a lower number and it increases from there to capital Z.

Notice how the attached file, which is a portion of the ASCII table, shows that letters after A are also higher in decimal value than the previous letter.

With this in mind, we know that all this program does is sort by last name alphabetical order. From there, just sort the given names using that same criteria, last name alphabetical order, and the correct answer is determined.

<em>Please put "Brainliest" on my answer if it helped you out!</em>

<em>If you want to learn more about this subject, you can search:</em>

<em>- ASCII Table</em>

<em>- Lists in Programming</em>

<em>- Sorting Procedures</em>

7 0
2 years ago
How many spaces is equal to one tab on a keyboard? When I compose emails, the tab button doesn't indent for me, so how many time
Ganezh [65]
You have to press the space bar 13 times in order to make it the same length as the tab.
6 0
4 years ago
Which slide elements must claire use to enhance her presentation?
Crank

The answer for the 1st blank is text.


6 0
3 years ago
Read 2 more answers
Other questions:
  • What number is needed to complete the pattern 66, 73, 13, 21, 52,_, 10, 20?
    12·1 answer
  • An operating system is an example of which of the following
    13·1 answer
  • In one sentences describe how to change your home page
    10·1 answer
  • What is the main type of energy used to help convert metamorphic rocks into igneous rocks in the rock cycle ?
    10·1 answer
  • Two Smallest (20 points). Write a program TwoSmallest.java that takes a set of double command-line arguments and prints the smal
    7·1 answer
  • Assume user_name equals "Tom" and user_age equals 22. What is printed on the console when the following statement is executed? c
    14·1 answer
  • Eşhedü en la ilahe illallah ve eşhedü enne Muhammeden abdühü ve resulühü
    11·1 answer
  • To summarize means to
    11·2 answers
  • Calculate the total resistance of this simple circuit. If R1 = 100Ω, R2 = 200Ω.
    13·1 answer
  • When you print documents on your laser printer, you see residue from previous images on the output. What two things are the most
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!