Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Lab Assignment 1 This lab is based on the material from Week 1 and 2. Due Date: Thursday June 2nd2022,11:59PM Late submissions will be subject

image text in transcribed
image text in transcribed
Lab Assignment 1 This lab is based on the material from Week 1 and 2. Due Date: Thursday June 2nd2022,11:59PM Late submissions will be subject to a 5% penalty per day. Submissions that are late 5 days or more will not be accepted Write a class called StringClassifier that displays information about the keystrokes in a string. The class should have the following members: The string attribute will contain a string value. It can be anything - numbers, letters, or special characters. fa In the mutator method, the string attribute is only set if there are characters in the programmer-supplied string. The letters and digits attributes will store the number of letters and digits in the string. The uppers and lowers attributes will each store the number of upper-case and lowercase letters in the string. The evens and odds attributes will each store the number of even digits and odd digits in the string. None of these data members require accessor/mutator methods, since they will be given their values in the classifyO method, and their values can be viewed in the toString 0 method. The classify 0 method will examine the string attribute and store the following information in the other instance variables: - The number of Leystrokes in tee string. - The number of letter in the strine. - The number of upper-case and lower-case teners in the sining. - The number of digits in the srieg. - The mamber of ever and odd dicis in the sining. Remenber that you an find yoir source file in the "sne" folder of your project root folder; just follow the path of gackage name regments to your juiva file. DO NOT send me the entire project DO NOT send me the entire sct of folders in your ire dirscikry. The foStringe mehod will return a sering that shows the information about your string (see armple code and sereen shoes below for formal) - Your submission must be arcturved into s valid ZIP or RAR file. - The nawe of this file shoridd The following program can be urod to tes your class be loginkane__lab1, ap of LoginNane_1ab1, raF utere "login Name" is your Sheridase wser name. If you do not follon itse instrections detailed above, your sabmission will not be inpert, joras, rutha, vogtinerinei accepted. IOO NOT simply ZIPIRAR your entire project flle and send it to me. I will rothe alan fontelanifity not sont through yeur directories to fiod your wouree code - I will simply give you a grade of 0 . To subenit your completed assienenent, log into the Coure Evaluabise Ioder and ase the "Submit A sigigrient" link. Submir this assignment a "I.ab 1". Evalyation Yost subhisise will be evaluatod based on the following criteris: krisieat Codes Prognam uses variabler where asd only when necessary; program doesit define variables that are never uscit, not does it wee too many virables for unhecesury taids. Fropram structire such as IFs and loops do not perform any? untecesury tasks, evaluations, of itenations. Redasdat codc is climinated using A serpite run of this program would prochuce the following dialogs methods. Functionalify: The claw meets all the reguirementilpecifications cutliod above; there are no catra data members that we not needed, method names are correct, cte Subminaien The claw woiks with the iev program and functions as described in the peca above. Your sabmission mast follow all the submission teyuiremests outlinet in the anid does not conab or diaplay any error mesuges that are oot aser-frienilly (e a all subenission savodards. This mean your class meet inclode proper lavadoc comments erceptions should be caught and upropriate messuges doplayed to the iser). (you do not need to compile and whomit your javadoc pogen). Programming Style: peoper indentation and spacing, use of - Sulenit a video reconding of you demonstrating your work in your voise commentadocumentafion, all identifien are deceriptive and vald, variables are. definal with appropriase types and eonerted when requirtd. In ascition Oiber: all instructions regarfing subminions and program specifications tave been followed, submission was compicted and submitted as requested in a timely fashion, - Saberil enly the single saurer code filie (yava) for your StringClanifier class (I tecteiquer discumed in class have been used will run yeor pregain asing my ownt trot class like the coample given)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

8th Edition

013460153X, 978-0134601533

More Books

Students also viewed these Databases questions

Question

What is the message repetition?

Answered: 1 week ago

Question

What is the budget for this project?

Answered: 1 week ago