Win a copy of Production-Ready Serverless (Operational Best Practices) this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Ron McLeod
  • Tim Moores
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Vijitha Kumara

Assignment help?  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm new here, I have registered with you guys for a little guidance since my school decided to put me in a class that I have no clue what's going on. I have an assignment due at midnight and I don't even know where to start. I have tried to drop the class and they won't let me and I'm afraid I'm stuck for another 10 weeks. It goes as follows. Any help would be appreciated.

1. Write a program that asks the user to enter a String and perform a series of Character, Math and String functions on this input String.  Use “printf” to print all your output.

2. Create a zip file that contains your Java programs.  Include a screenshot of each program execution.  You can either paste the screenshot into a Word document or simply paste it into the Comments field when submitting your homework.

Attached is a screenshot that the professor provided.
download.png
[Thumbnail for download.png]
 
Marshal
Posts: 63781
209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

I suggest you need to divide that task into subtasks. Start by getting that text from the keyboard. For a simple thing like that I would probably use an instance of this. Do that, show us that it is working, and then ask again, but I shall be asleep by then and doubtless somebody else will help you.
 
Sheriff
Posts: 13353
221
Android Debian Eclipse IDE IntelliJ IDE Java Linux Mac Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, read through the String class API documentation: https://docs.oracle.com/javase/8/docs/api/java/lang/String.html

You'll find all the methods you need to call to do the things your instructor's output screenshot shows.

Good luck.
 
She still doesn't approve of my superhero lifestyle. Or this shameless plug:
global solutions you can do in your home or backyard
https://coderanch.com/t/708587/global-solutions-home-backyard
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!