Answered step by step
Verified Expert Solution
Question
1 Approved Answer
CST 3 7 0 Spring 2 0 2 4 Homework 1 Due: 0 2 / 1 1 / 2 0 2 4 ( Sunday )
CST Spring Homework Due: Sunday: PM How to turn in: Develop two programs in either C or Java on your local system and then push your final submission to your private repository. You can submit your programs multiple times before the due date. However, the last submission will be used for grading. Due time is :PM Since there could be a long delay between your computer and GitHub Classroom, you should submit it early. When you submit your homework program, dont forget to include "Title", "Abstract", "Name", and "Date". Write a C program or Java program that reads two groups of numbers in which each group has several integer numbers with potential duplicates. Your program should display the nonintersecting numbers in the two groups in descending order. Input format: This is a sample input from a user The first number in the example indicates that there are five numbers in the first group. Then, the numbers from the second line in the example to the sixth line in the example are actual numbers of the first group.The following number in the example indicates that there are three numbers in the second group which are and For the program, you can assume that there will be less than input integer numbers in each group. For the input, your program should present the nonintersecting numbers in both groups in the descending order. Note that both and are common numbers in the two groups. Thus, you have to display the nonintersecting numbers in the descending order on the screen. If theres no nonintersecting number, your program should display NONE. Sample Run : Assume that the user typed the following lines. This is the correct output of your program. Answer: Sample Run : Assume that the user typed the following lines. This is the correct output of your program. Answer:NONE Sample Run : Assume that the user typed the following lines. This is the correct output of your program. Answer: Write a C program or Java program for hw that reads input numbers from a user and displays the numbers in the order of frequencies. Input format: This is a sample input from a user The first number in the example indicates that there are six integer numbers in the input. Then, all numbers from the second line in the example to the last line in the example are actual input numbers. Note that the frequency of is and the frequency of is Also, the frequency of is just Thus, your program should display them in the order of frequencies ascending order such as For the numbers with the same frequency, you have to display them in the ascending order. For the program, you can assume that there will be less than input integer numbers. Sample Run : Assume that the user typed the following lines. This is the correct output of your program. Sample Run : Assume that the user typed the following lines. This is the correct output of your program. Note that the frequencies of and are Thus, you have to display first and then Similarly, since the frequencies of and are you should display all s first. After that, display all s Sample Run : Assume that the user typed the following lines. This is the correct output of your program. Sample Run : Assume that the user typed the following lines. This is the correct output of your program.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started