Lengkap

simple java programming

Write a class called ExpUtils. In this class, you should implement the following static

methods:

• public static Queue<Stack<Character>> readExps(String fileName): A method that reads

expressions from a text file fileName separated by new line and builds a queue of

stacks, where each expression is represented by one stack of characters (assume that

all numbers are single digit and that there are no spaces in the expression). The first

expression in the file must be at the beginning of the queue. The beginning of the

expression must be at the top of the stack. The method must catch any exceptions

and return null if any.

Sample input:

(5+6) /8

(2/5) *9

(9*3) /(5+2)

(5*6) /4

• public static Queue<Stack<Character>> match(Queue<Stack<Character>> q, String pattern

): searches the queue q for all expressions that match pattern and return a copy of

them stored in a queue. The order of the output must be the same as that of q,

and q must not change. In pattern, the special character ’.’ matches any (single)

character.

Example 1. Given the above set of expressions, the pattern ”(5.../.” matches two

expressions:

(5+6) /8

(5*6) /4

In a number pyramid (Figure 1), each number is the sum of the two numbers on which

it stands.

20

8 12

3 5 7

1 2 3 4

Figure 1: An example of a number pyramid.

Write a class called NumPyramid. In this class, you should implement the following static

methods :

public static Stack<Queue<Integer>> build(Queue<Integer> q): takes as input a queue

of numbers representing the leftmost bricks of the pyramid (for Figure 1, a =

{20, 8, 3, 1}) and returns the whole pyramid represented as a stack of queue. Each

queue represents a row of the pyramid. The top of the pyramid must be a t the top

of the stack. The input queue must not change.

Deliverable and rules

You must deliver:

1. Source code submission to Web-CAT. You have to upload the following class in a zipped

file:

• [login to view URL] (include class Node here).

• [login to view URL]

• [login to view URL]

• [login to view URL]

Notice that you should not upload the interfaces.

Kemahiran: Pengaturcaraan C, Java, Kejuruteraan Perisian

Lihat lagi: simple java jtree drag drop example, java programming projects simple, simple java jsp project example, simple java programs for beginners, java programming examples with explanation pdf, simple java program to add two numbers, java programs to practice, java programs with source code, list of java programs, java coding program, java programs examples with output, simple java programming sip agent, network interfaces java programming, simple java drag drop upload example, simple java program example day, simple cards programming code java, simple gui programming java, simple math java programming assignment, simple reservation java programming project, simple java programming project

Tentang Majikan:
( 0 ulasan ) Riyadh, Saudi Arabia

ID Projek: #18818425

Dianugerahkan kepada:

IFI91

Hello, Sir Weebside Inc. is a professional freelancer service provided to worthy clients like you. We can provide our best developers to provide you High-Quality Product with 100% Delivery Rate, 100% Satisfaction. Lagi

$10 USD dalam 0 hari
(63 Ulasan)
5.3

10 pekerja bebas membida secara purata $23 untuk pekerjaan ini

hbxfnzwpf

I am very proficient in java. I have 16 years java developing experience now, and have worked for more than 7 years. My work is online game developing, and mainly focus on server side, using java under Linux environmen Lagi

$50 USD dalam sehari
(138 Ulasan)
7.0
valor312

VERY EASY FOR ME I can finish this project within 1hour Hello. I have read your description and I am so interested in your project. I am confident in your project and I can finish it clearly on time. I am well ex Lagi

$30 USD dalam sehari
(34 Ulasan)
4.8
okzhang321

Hello. I have read your description and I am so interested in your project. I am confident in your project and I can finish it clearly on time. I am well experienced and skillful Java programmer. I have +15 years Lagi

$25 USD dalam sehari
(44 Ulasan)
5.1
PATechnology

Hi, Can you ping me to discuss more? I am interested in the project and have an experience in java development. thanks

$20 USD dalam sehari
(53 Ulasan)
5.2
vvishalsahu

Hi, I can do this Java program for you, I have done such programs many times with perfect accuracy. My formal introduction: I am a software developer with 8+ years of experience especially in Java, C# and PHP. I Lagi

$25 USD dalam sehari
(21 Ulasan)
4.2
TalAkerele

Hi, I am very happy to bid your project. I read your requirements carefully,so i see what you mean. I have been experiments with C Programming, Java, Software Architecture I'd like to work with you. i'll complete Lagi

$15 USD dalam sehari
(13 Ulasan)
3.8
i0xHeX

Hi, I'm experienced java developer working more than 3 years in that field. I can read the task and think I can complete it approximately withing 1-3 days. Specs looks like full, but on work flow I may ask some questi Lagi

$30 USD dalam 3 hari
(4 Ulasan)
1.7
hamidf

i have a strong experience in java programming and i can deliver your project in 1 day , but for proofreading process i set it in 2 days

$10 USD dalam 2 hari
(1 Ulasan)
0.6
mohammadhaisam

Dear sir/madam, I am a focused professional who has been consistently praised as results-oriented by my co-workers and management. Over the course of my 4-year career, I’ve developed a skill set directly relevant to Lagi

$15 USD dalam sehari
(1 Ulasan)
0.7