Preview

Nt1310 Unit 3 Assignment

Satisfactory Essays
Open Document
Open Document
256 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Nt1310 Unit 3 Assignment
Program 1:
Write a program to input a string and then display it in Upper Case and also print the frequency of any character from the string. import java.io.*; import java.util.*; class StrCount
{
public static void main(String args[])throws IOException
{
Scanner in=new Scanner(System.in);
System.out.println("Enter a string:");
String n=in.nextLine();
String n1=n.toUpperCase();
System.out.println("The string in upper case:");
System.out.println(n1);
char ch='T'; int k=0;
System.out.println("Charachter to be searched for is T."); for(int i=0;i=1)
System.out.print("Character "+ch+" occurs "+k+" times.");

else
System.out.println("Character doesn't occur in this String..");
}
}

Output:
Enter a string:
Aman Himanshu
…show more content…

Program 2:
Write a program to read the name of 5 students through keyboard and store them in a file “name.txt”.

import java.io.*; class WriteFile
{
public static void main(String args[])throws
…show more content…

SUPER
SENIORS....

Program 8:
Write a program to input a string and separate words in it using String Tokenizer class. import java.io.*; import java.util.*;

class CountSpace { public static void main(String args[])throws IOException { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); int i=0; System.out.println("Input a String:"); StringTokenizer st=new StringTokenizer(br.readLine()); i=st.countTokens(); for(int


You May Also Find These Documents Helpful

  • Satisfactory Essays

    Nt1310 Unit 8 Assignment

    • 459 Words
    • 2 Pages

    In this paper you will find 3 factors that could affect splicing performance, 3 intrinsic factors, and 3 extrinsic factors.…

    • 459 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Nt1330 Unit 3 Assignment

    • 447 Words
    • 2 Pages

    We cannot complete the construction at this point in time due to the extension of the building project.…

    • 447 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Nt1310 Unit 1 Assignment

    • 634 Words
    • 3 Pages

    The skin is an organ composed of three anatomical layers: epidermis, dermis, and hypodermis. These anatomical layers together function to provide the body with a protective barrier, body temperature regulation, sensation, excretion, the outer layer of skin…

    • 634 Words
    • 3 Pages
    Good Essays
  • Good Essays

    NT1310 Unit 1 Assignment 1

    • 4837 Words
    • 20 Pages

    In order to get some statistical data about the number of formula 1 crashes and their causes, we randomly picked up 1 race from each year starting from 1960 up till 2013, then extrapolated results to the respective entire year, and then calculated average numbers. Based on those figures we compiled the table below.…

    • 4837 Words
    • 20 Pages
    Good Essays
  • Good Essays

    Nt1110 Unit 3 Assignment

    • 655 Words
    • 3 Pages

    Server side code will include the portion of opening a socket on a specific port as discussed earlier and in addition to it there will be some if-else construct or a switch case implementation that will interpret the incoming instructions from the client ma-chine and will call the related method associated with the in-struction…

    • 655 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Nt1310 Unit 5 Assignment

    • 532 Words
    • 3 Pages

    There are different ways through which businesses can add value to their products and services.…

    • 532 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Nt1310 Unit 1 Assignment

    • 987 Words
    • 4 Pages

    Layer 5: The session layer...This layer sets up, coordinates, and terminates conversations, exchanges, and dialogs between the applications at each end. It deals with session and connection coordination.…

    • 987 Words
    • 4 Pages
    Good Essays
  • Good Essays

    The software will be presented in such a way that it is both visually appealing and easy for the user to navigate through the application.…

    • 612 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Nt1330 Unit 3 Assignment

    • 356 Words
    • 2 Pages

    Note: Follow these instructions carefully: There could be modifications that could limit your use of the Ghost software.…

    • 356 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Nt1310 Unit 2 Assignment

    • 506 Words
    • 3 Pages

    An example is of a virtual insurance company, we're not talking only aboutInternet delivery for products. We're talking about the online insurance agency necessarily, although that's certainly one component of the enterprise. We're also talking about back-office infrastructure and support, perhaps dedicating third parties to support this infrastructure to create an electronic communications medium.…

    • 506 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Nt1310 Unit 1 Assignment

    • 361 Words
    • 2 Pages

    According to the standard account, true belief is not sufficient for knowledge. It states that knowledge requires, not only that our beliefs be true, but that we have good reasons for believing them to be true. In standard account, knowledge is justified true belief.…

    • 361 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Nt1330 Unit 1 Assignment

    • 883 Words
    • 4 Pages

    Name Entity (NE) is an expression that refers to proper names such as persons, locations, and organizations. For example: Arafat Awajan is a full professor at Princess Sumaya University for Technology in Jordan, then Arafat Awajan, Princess Sumaya University for Technology, and Jordan would be identified as reference to person, an organization, and location, respectively. The task that attempts to locate, extract, and automatically classify named entities into predefined classes or types in open-domain and unstructured texts, such as newspaper articles, was called Name Entity Recognition (NER)[Shaalan 2014].…

    • 883 Words
    • 4 Pages
    Powerful Essays
  • Satisfactory Essays

    Nt1330 Unit 1 Assignment

    • 521 Words
    • 3 Pages

    I learned that sometimes you do not know what you are capable of doing until you try it. By learning everything that is involved in the creation of algorithms you can make sure that any program issue you encounter you will be able to address it.…

    • 521 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Nt1310 Unit 1 Assignment

    • 520 Words
    • 3 Pages

    What would you need to do to safely get your 10 year old nephew, Jimmy from…

    • 520 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    HTML Codes

    • 1539 Words
    • 7 Pages

    import java.io. *; public class mark { public static void main(String[]args)throws IOException { BufferedReader dataIn=new BufferedReader(new InputStreamReader(System.in)); System.out.println(" Jollibee "); System.out.println("********************************************************************"); System.out.println("* MENU *"); System.out.println("* Burger And Sandwiches | Chickenjoy *"); System.out.println("* CODE Meal | CODE Meal *"); System.out.println("* 1 B1 | 6 C1 *"); System.out.println("* 2 B2 | 7 C2 *"); System.out.println("* 3 B3 | 8 C3 *"); System.out.println("* 4 B4 | 9 C4 *"); System.out.println("* 5 B5 | 10 C5 *"); System.out.println("* | *"); System.out.println("* Noodles | Rice Meal *"); System.out.println("* CODE Meal | CODE Meal *"); System.out.println("* 11 N1 | 17 RM1 *"); System.out.println("* 12 N2 | 18 RM2 *"); System.out.println("* 13 N3 | 19 RM3 *"); System.out.println("* | 20 RM4 *"); System.out.println("* Jollibee Kids Meal | 21 RM5 *"); System.out.println("* CODE Meal | 22 RM6 *"); System.out.println("* 14…

    • 1539 Words
    • 7 Pages
    Satisfactory Essays

Related Topics