Ask Your question
Need a fast expert's response?Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Search & Filtering
Labs 20 %
Reading Quizzes 10 %
Video Grading 10 %
Midterm 20 %
Project 15 %
Final 20 %
Instructor Discretion 5 %
Enter Labs average in percent: 90
Enter Reading average in percent: 75
Enter Video average in percent: 100
Enter Midterm average in percent: 83
Enter Project average in percent: 95
Enter Final average in percent: 80
Enter Instructor Discretion average in percent: 100
Your average is 87.35%
Write a program that will read a message from another text file and surround each occurrence of an abbreviation with <> brackets. Write the marked message to a new text file.
For example, the message to be scanned is
How are u today? Iirc, this is your first free day. Hope you are having fun! :)
the new text file should contain
How are <u> today? <Iirc>, this is your first free day. Hope you are having fun! <:)>
addName (name) – adds a name to the list of names. Throws a ServiceBackUpException if there is no free space in the list.
removeName (name) – removes a name from the list. Throws a NoServiceRequestException if the name is not in the list.
getName(i) – returns the i’th name in the list.
getNumber – returns the current number of service requests.
Write a program that uses an object of type ServiceRequests to keep track of customers that have called. It should have a loop that, in each iteration, attempts to add a name, remove a name, or print all names. Use an array of size 10 as the list of names.
minimum of two classes.
1.1 The first class should be named class1, this class will have the following:
The main method (starting point) (5)
The object of class2 (5)
Should also call the get method count_words(String str) (5)
1.2 The second class should be named class2, this class should have the following:
A constructor (5)
A get method named count_words(String str) (10)
1.3 Constract a flowchart for class1 and class2 both combined. (10)
public static void sumTo()
int n; int total = 0; int count = 0;
String output = “”;
str = JOptionPane.showInputDialog(“Give me a number to sum to: “);
n = Integer.parseInt(str);
while (count ,= n)
total = total + count;
output += count +”:\t” + total + “\n”;
count = count + 1;