Java Email Template Application:
Create an application that creates a series of emails as outlined below.
Create an array of email addresses that include the following data:
" james ,butler,[email protected]"
"Josephine,Darakjy,[email protected]"
"ART,VENERE,[email protected]"
Store a template for a mass email like this:
String template =
"To: {email}\n" +
"From: [email protected]\n" +
"Subject: Deals!\n\n" +
"Hi {first_name},\n\n" +
"We've got some great deals for you. Check our website!";
When the application starts, it should read the email addresses and first names, merge them into the mass email template, and display the results on the console.
All email addresses should be converted to lowercase.
All first names should be converted to title case.
Test your application by adding names/emails to the list of email addresses without modifying any other code, the application should create more emails.
Test your application by modifying the template without modifying any other code, the application should change the content of the email that’s created.
Application output should look like this
Console
Emails
================================================================
From: [email protected]
Subject: Deals!
Hi James,
We've got some great deals for you. Check our website!
================================================================
From: [email protected]
Subject: Deals!
Hi Josephine,
We've got some great deals for you. Check our website!
================================================================
From: [email protected]
Subject: Deals!
Hi Art,
We've got some great deals for you. Check our website!
End
public class Email {
public static void main(String[] args) {
String emailArray[]={" james ,butler,[email protected]","Josephine,Darakjy,[email protected]","ART,VENERE,[email protected]"};
String template =
"To: {email}\n" +
"From: [email protected]\n" +
"Subject: Deals!\n\n" +
"Hi {first_name},\n\n" +
"We've got some great deals for you. Check our website!";
System.out.println("Emails");
for(int i=0;i<emailArray.length;i++){
//my logic
//1.splitting the string which contain fristname , last name , email address
String temp[]=emailArray[i].split(",");
//taking the first name and trim the white spaces back and front of the string
String firstName=temp[0].trim();
//i want to change it to title case so taking first character and
//changing it to upper case then adding string from index 1
String modifiedFirstName=(firstName.charAt(0)+"").toUpperCase()+firstName.substring(1);
//taking email
String email=temp[2].trim();
//i am replace template string email with my email
String result=template.replace("{email}", email.toLowerCase());
//replaceing first name
result=result.replace("{first_name}", modifiedFirstName);
System.out.println("================================================================");
//printing results
System.out.println(result);
}
System.out.println("END");
}
}
//////////////////////////////////////MAIN LOGIC/////////////////////////////////
Java Email Template Application: Create an application that creates a series of emails as outlined below....
In C++ please! Project 6-1: Email Creator Create a program that reads a file and creates a series of emails Console Email Creator [email protected] [email protected] Тo: From: Subject: Deals! Hi James, We've got some great deals for you. Check our website! [email protected] [email protected] To From Subject: Deals! Hi Josephine, We've got some great deals for you. Check our website! [email protected] To From [email protected] Subject: Deals! Hi Art We've got some great deals for you. Check our website! Specifications Your instructor...
I can't get the program to read from prospect.csv file and produce the correct prospect_clean.csv file. Can you help with explanation to the answer? Project 15-3: File Cleaner Create an application that reads a file that contains an email list, reformats the data, and writes the cleaned list to another file. Console File Cleaner Source file: prospects.csv Cleaned file: prospects_clean.csv Congratulations! Your file has been cleaned! The prospect.csv file FIRST,LAST,EMAIL james,butler,[email protected] Josephine,Darakjy,[email protected] ART,VENERE,[email protected] ... The prospect_clean.csv file First,Last,email James,Butler,[email protected] Josephine,Darakjy,[email protected] Art,Venere,[email protected]...
Hello can somebody please help me with Project 15-3 File Cleaner assignment? This project is to be done while using Java programming. Here are what the assignment says… Create an application that reads a file that contains an email list, reformats the data, and writes the cleaned list to another file. Below are the grading criteria… Fix formatting. The application should fix the formatting problems. Write the File. Your application should write a file named prospects_clean.csv. Use title case. All...
in java : Create Java Application you are to create a project using our designated IDE (which you must download to your laptop). Create the code to fulfill the requirements below. Demonstrate as stipulated below. Create a Main Application Class called AddressBookApplication (a counsole application / command line application). It should Contain a Class called Menu that contains the following methods which print out to standard output a corresponding prompt asking for related information which will be used to update...
User Profiles Write a program that reads in a series of customer information -- including name, gender, phone, email and password -- from a file and stores the information in an ArrayList of User objects. Once the information has been stored, the program should welcome a user and prompt him or her for an email and password The program should then use a linearSearch method to determine whether the user whose name and password entered match those of any of...
1.2 Recruitment is one of the crucial functions of HRM. Based on the information provided below, how would you describe THE COMPANY’s approach to recruitment, before and after the implementation of the Brand Ambassador Program? How did the use of social media lead to the revision of the whole approach regarding recruitment? How ‘THE COMPANY’ Developed a Brand Ambassador Program At ‘THE COMPANY’ we usually categorize Employment Brand at ‘THE COMPANY’ into four big ‘buckets’: candidate experience, brand ambassador programs,...
Case: Read the news article below and answer the questions that follow That Facebook photo of you draped across a bar late at night, showing how much of a good time you were having, could be why that latest job application got no further than the bin. Applicants are being warned it is now standard practice for their social media profile to be checked when it comes to assessing their suitability for jobs. Both recruitment companies and employers will be...
Hi, Kindly assist with my project management assignment below using the attached case study Question 1 Update the project charter for the remainder of the project in response to Adams’ memo (lines 241 through 246). Question 2 Prepare a plan for the remainder of the project in response to Adams’ memo (lines 241 through 246). Your answers to the above will be assessed in terms of the level of communication displayed, the insights and inferences drawn, and your ability to...
Please read the article and answer about questions. You and the Law Business and law are inseparable. For B-Money, the two predictably merged when he was negotiat- ing a deal for his tracks. At other times, the merger is unpredictable, like when your business faces an unexpected auto accident, product recall, or government regulation change. In either type of situation, when business owners know the law, they can better protect themselves and sometimes even avoid the problems completely. This chapter...
10. Write a one-page summary of the attached paper? INTRODUCTION Many problems can develop in activated sludge operation that adversely affect effluent quality with origins in the engineering, hydraulic and microbiological components of the process. The real "heart" of the activated sludge system is the development and maintenance of a mixed microbial culture (activated sludge) that treats wastewater and which can be managed. One definition of a wastewater treatment plant operator is a "bug farmer", one who controls the aeration...