Your first submission for the CIS 210 Course Project should include the following functionality: - Requests the user to input his/her first name - Formats the name to capitalize the first letter and makes all remaining characters lowercase, removing any spaces or special characters - Output the formatted name to the console

Answers

Answer 1

Answer:

In Java:

import java.util.*;

public class Main{

public static void main(String[] args) {

 Scanner input = new Scanner(System.in);

 String name;

 System.out.print("First name: ");

 name = input.next();

 name= name.substring(0, 1).toUpperCase() + name.substring(1).toLowerCase();

 System.out.print(name);

}

}

Explanation:

This declares name as string

 String name;

This prompts the user for first name

 System.out.print("First name: ");

This gets the name from the user

 name = input.next();

This capitalizes the first letter of name and makes the other letters to be in lowercase

 name= name.substring(0, 1).toUpperCase() + name.substring(1).toLowerCase();

This prints the formatted name

 System.out.print(name);


Related Questions

I don't get the width and height part (PLEASE HELP WILL GIVE BRAINLIEST ANSWER)

Answers

Answer:

What they're saying is that the first two bytes (first two eight bit segments) tell you the width and height of the pattern.

In the example given, you'll notice that the first 16 digits are 00000100 00000100.  If you convert those to decimal, you'll see that those are both equal to four.

If instead the second block of eight bits was 00000111, the image height would then be seven.

Help ASAP please This is a skills lab simulation for college, it’s on Microsoft word is there a keyboard shortcut or something on Ribbon tab to remove widow/orphan control option

Answers

Answer:

down right corner

Explanation:

next to the time

write an algorithm and draw a flowchart to calculate the sum of of the first 10 natural numbers starting from 1​

Answers

Answer:

#include <stdio.h>

void main()

{

int j, sum = 0;

printf("The first 10 natural number is :\n");

for (j = 1; j <= 10; j++)

{

sum = sum + j;

printf("%d ",j);

}

printf("\nThe Sum is : %d\n", sum);

}

Within a loop

Step 1: Initialize a variable to 1 (say x=1)

Step 2: Specifiy the condition

In this case x<=10

Step 3: Increment the variable by 1

using increment operator x++

OR

simply x+=1(x=x+1)

Step 4: Print the value of variable

Terminate the loop

Explanation:


What is the total March Expenditure now? (cell Q2)

Answers

I did a lot to do it lol was

For which of the following tasks would a for-each loop be appropriate?
A. Reversing the order of the elements in an array.
B. Printing all the elements at even indices of an array.
C. Printing every element in an array.
D. Determining how many elements in an array of doubles are positive.
E. Determining whether an array of Strings is arranged in alphabetical order.
F. Printing every even number in an array of ints.

Answers

Answer:

The answer is "Option B, C,  and F".

Explanation:

In the For-each loop, it is used for traversing items in a sequence is the control flow expression. It typically required a loop becomes referred to it as an enhanced loop for iterating its array as well as the collection elements. This loop is a version shortcut that skips the need for the hasNext() method to get iterator and the loop and over an iterator, and the incorrect choice can be determined as follows:

In choice A, it is wrong because it can't reverse the array element.In choice D, it is wrong because it can't determine the array of positive.In choice E, it is wrong because it can't determine an array of the sting in alphabetical order.

4. What are the traits of a good follower?​

Answers

Answer:

Judgment. Followers must take direction, but not blindly. Work ethic. Good followers are good workers. Competence. In order to follow, followers must be competent. Honesty. Followers have a responsibility to be honest. Courage. Discretion. Loyalty. Ego management.

Is a NAS just a collection of hard drives or a computer

Answers

Answer:

NAS systems are networked appliances that contain one or more storage drives, often arranged into logical, redundant storage containers or RAID.

Write a program that declares and initializes a variable representing the weight in milligrams from the keyboard. The program displays the equivalent weight in kilograms, grams, and milligrams. For example, 1050042 milligrams are equivalent to 1 kilogram, 50 grams, and 42 milligrams.

Answers

Answer:

weight = int(input("Enter weight in milligrams: "))

kilograms = int(weight / 1000000)

grams = int((weight - (kilograms * 1000000)) / 1000)

milligrams = weight - ((kilograms * 1000000) + (grams * 1000))

print("{} milligrams are equivalent to {} kilogram(s), {} gram(s), and {} milligram(s)".format(weight, kilograms, grams, milligrams))

Explanation:

*The code is in Python.

Ask the user to enter the weight and set it to the variable weight

Calculate the kilograms, divide the weight by 1000000 and cast the result to the int (If the weight is 1050042, kilograms would be 1050042/1000000 = 1)

Calculate the grams, subtract the kilograms from the weight, divide it by 1000 and cast the result to the int (If the weight is 1050042, grams would be int((1050042 - (1 * 1000000)) / 1000) = 50)

Calculate the milligrams, subtract the kilograms and grams from the weight (If the weight is 1050042, milligrams would be 1050042 - ((1 * 1000000) + (50 * 1000)) = 42)

Print the weight, kilograms, grams, and milligrams in the required format

In this exercise we have to use the knowledge of the python language to write the code, so we have to:

The code is in the attached photo.

Some important information informed in the statement that we have to use in the code is:

Calculate the kilograms, divide the weight by 1000000 and cast the result.Calculate the grams, subtract the kilograms from the weight, divide it by 1000 and cast the result.Calculate the milligrams, subtract the kilograms and grams from the weight.

So to make it easier the code can be found at:

weight = int(input("Enter weight in milligrams: "))

kilograms = int(weight / 1000000)

grams = int((weight - (kilograms * 1000000)) / 1000)

milligrams = weight - ((kilograms * 1000000) + (grams * 1000))

print("{} milligrams are equivalent to {} kilogram(s), {} gram(s), and {} milligram(s)".format(weight, kilograms, grams, milligrams))

See more about python at brainly.com/question/26104476

Suppose that an intermixed sequence of push and pop operations are performed on a LIFO stack. The pushes push the numbers 0 through 9 in order; the pops print out the return value. For example"push(0); pop(); push(1)" and "push(0); push(1); pop()" are possible, but "push(1); push(0); pop()" is not possible, because 1 and 0 are out of order. Which of the following output sequence(s) could occur? Select all that are possible.
a) 12543 609 8 7 0
b) 01564 37928
c) 6543210789
d) 02416 75983
e) 46 8 75 32 901

Answers

Answer:

b) 01564 37928

e) 26 8 75 32 901

Explanation:

Pushes and pulls are the computer operations which enable the user to perform numerical tasks. The input commands are interpreted by the computer software and these tasks are converted into numeric values to generate output.

The intelligence displayed by humans and other animals is termed?

Answers

Answer:

ᗅгᝨเŦเςเᗅl เภᝨєllเﻮєภςє, Տ⌾๓єᝨเ๓єՏ ςᗅllє๔ ๓ᗅςђเภє เภᝨєllเﻮєภςє ⌾г ๓ᗅςђเภє lєᗅгภเภﻮ, เՏ เภᝨєllเﻮєภςє ๔є๓⌾ภՏᝨгᗅᝨє๔ ๒γ ๓ᗅςђเภєՏ, เภ ς⌾ภᝨгᗅՏᝨ ᝨ⌾ ᝨђє ภᗅᝨႮгᗅl เภᝨєllเﻮєภςє ๔เՏקlᗅγє๔ ๒γ ђႮ๓ᗅภՏ ᗅภ๔ ⌾ᝨђєг ᗅภเ๓ᗅlՏ. ... Տ⌾๓єᝨђเภﻮ ᝨђᗅᝨ'Տ ђєlקเภﻮ ᝨђเՏ ςђᗅภﻮє เՏ ᗅгᝨเŦเςเᗅl เภᝨєllเﻮєภςє.

հօթҽ íԵ հҽlթs

Natural intelligence relates to life concepts and life choices which adhere to the natural constraints or boundaries of the world's resources and the further discussion can be defined as follows:

It is defined as an emotional impulse ingrained into the common myth that drives us to value & defend the integrity of any living creatures.It is the polar opposite of artificial intelligence, which is all of the control mechanisms found in life. Nature also displays non-neural control in plants and protozoa, as well as dispersed intellect in colonies species including such ants, jackals, and people.

Therefore, the final answer is "Natural intelligence".

Learn more:

brainly.com/question/16456970

Where or what website can I download anime's? For free ​

Answers

https://todo-anime.com/

#include
main()
{
int i, n=10, rem, inc=0;
scanf("%d",&n);
for(i=1; i =3)
inc++;
else;
inc--;
}
printf("Final Value=\n",inc);
}
SOLVE THIS PROGRAM...

Answers

Answer:inpossible !889

Explanation: I npossible !889

As you will solve more complex problems, you will find that searching for values in arrays becomes a crucial operation. In this part of the lab, you will input an array from the user, along with a value to search for. Your job is to write a C++ program that will look for the value, using the linear (sequential) search algorithm. In addition, you should show how many steps it took to find (or not find) the value, and indicate whether this was a best or worst case scenario (... remember the lecture). You may refer to the pseudo-code in the lecture, but remember that the details of the output and error conditions are not specified there. Also, note that in pseudo-code arrays are sometimes defined with indices 1 to N, whereas in C++ the indexes span from 0 to N-1.
The program will work as follows. First, you should ask the user to enter the size of the array, by outputting:
"Enter the size of the array: "
to the console. If the user enters an incorrect size, you should output the error message:
"ERROR: you entered an incorrect value for the array size!"
and exit the program. If the input is a valid size for the array, ask the user to enter the data, by outputting
"Enter the numbers in the array, separated by a space, and press enter: "
Let the user enter the numbers of the array and store them into a C++ array. Up to now, this should be exactly the same code as Lab#2. Next, ask the user a value v to search for in the array (called the "key"), by outputting:
"Enter a number to search for in the array: " to the screen, and read the key v.
Search for v by using the linear search algorithm. If your program finds the key, you should output:
"Found value v at index i, which took x checks. "
where i is the index of the array where v is found, and x is the number of search operations taken place.
If you doesn't find the key, then output: "
The value v was not found in the array!"
Then indicate whether you happened to run into a best or worst case scenario. In case you did, output: "
We ran into the best case scenario!" or "We ran into the worst case scenario!"
otherwise, don't output anything.

Answers

Answer:

#include<iostream>

using namespace std;

int main() {

cout<<"Enter The Size Of Array: ";

int size;

bool isBestCase=false;

cin>>size;

if(size<=0){

cout<<"Error: You entered an incorrect value of the array size!"<<endl;

return(0);

}

int array[size], key;

cout<<"Enter the numbers in the array, separated by a space, and press enter:";

// Taking Input In Array

for(int j=0;j<size;j++){

cin>>array[j];

}

//Your Entered Array Is

for(int a=0;a<size;a++){

cout<<"array[ "<<a<<" ] = ";

cout<<array[a]<<endl;

}

cout<<"Enter a number to search for in the array:";

cin>>key;

for(i=0;i<size;i++){

 if(key==array[i]){

   if(i==0){

     isBestCase=true; // best case scenario when key found in 1st iteration

     break;

   }

 }

}

if(i != size){

 cout<<"Found value "<<key<<" at index "<<i<<", which took " <<++i<<" checks."<<endl;

}  else{

 cout<<"The value "<<key<<" was not found in array!"<<endl;

 cout<<"We ran into the worst-case scenario!"; // worst-case scenario when key not found

}

if(isBestCase){

cout<<"We ran into the best case scenario!";

}

return 0;

}

Explanation:

The C++ source dynamically generates an array by prompting the user for the size of the array and fills the array with inputs from the user. A search term is used to determine the best and worst-case scenario of the created array and the index and search time is displayed.

Other Questions
There are four conditions an atom needs to meet to participate in hydrogen bonding. It needs to be_______ enough not to bump into other atoms when approaching the 1s orbital of the hydrogen, it needs to carry at least one________ atom, it needs to be_________enough to create a delta on the connected hydrogen, and it needs to have at least one________. Help plz:)))Ill mark u Brainliest Raul came home with $3.00 in his pocket. He had given Rene $1.50 on his way home. Pedro gave him $1.00 that he had borrowed last week. How much money did Raul have at the beginning of the day? Find y.Round to the nearest tenth:29500 fty = [? ]ft write an equation for the line (1,2) and (3,-4) HELP!!!!! Due in 10min I will love you 4. How does the text describe most previous scientific research in the fieldof psychology?A) It prioritized determining why happy people are happy.B) It focused on improving the lives of very depressed people.C) It neglected to study the happiness of people with neurosis.D) It was centered on improving the moods of already happy people.can we cultivate our own happiness (commonlit) The width of a rectangle is (5x + 2) inches and the length is (6x 7) inches. Find the area of the rectangle. 4. King Philip II used war to his advantage when building his empire but came up shortduring the Spanish Armada's sail against England. What were 3 major events thatcaused the Spanish to succumb to European forces? How did this affect Spain'spower worldwide in the years to follow? Vitamin C is a covalent compound with the molecularformula C6H8O6. The recommended daily dietaryallowance of vitamin C for children aged 4-8 years is0.000142mol. What is the mass of this allowance in grams? solve if x=11. x+44/2x El ________________ de una fbula es relatarnos una historia para dejarnos una _______________________Dicha enseanza se llama _____________ La ___________________ de los_________________ de fbulas son _____________ que____________________________ porfavor gracias :3 Pls Answer Fast I will give u 5 Stars Career choice, getting/keeping a job, career changes, career advancement skills are examples of A. employability skills B. diversity C. professional image D. transferable skills Pls help :) i really need to finish it aunt ann walked---------------- for one hourquick abruptbriskbrisky HELP ME PLEASEEE HELP Convection currents cause changes in the earths crust. Describe what would happen in each situation. Plates move apart:One plate goes under another:Plates move together: Select two of the transformations or series of transformations that supports Maria's claim and maps AABE to AACD.A dilation with a scale factor of 3 about point B followed by a translation of 4 units downward.A dilation with a scale factor of 3 about point A followed by a translation of 8 units to the right.A dilation with a scale factor of 2 about point B followed by a translation of 8 units to the right.A dilation with a scale factor of 3 about point A.A dilation with a scale factor of 2 about point B.A dilation with a scale factor of 2 about point A followed by a translation of 4 units downward PLEASE HELP !!! ILL GIVE BRAINLIEST!! *DONT SKIP* ILL GIVE 40 POINTS.