1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Fofino [41]
2 years ago
8

Design and implement an application that reads a string from the user then determines and prints how many of eachlowercase vowel

(a,e,i,o,and u) appear in the entire string.
Computers and Technology
1 answer:
frez [133]2 years ago
4 0
Design and implement an application that reads a string from the user, then determines and prints how many of each lowercase vowel (a, e, i, o, and u) appear in the entire string . Have a separate counter for each vowel. Also count and print the number of nonvowel characters .

SPECIFICATION OF PROMPTS, LABELS AND OUTPUT : Your code should use the prompt "enter string : ". After the input is read, there are six lines of output , each starting with a different label: "a: ", "e: ", "i: ", "o: ", "u: ", "other: " in that order. After each label is the required count.

For example: if "aardvark heebie jeebies" were read in,
You might be interested in
How to get the pc accelerate pro virus off my computer
garik1379 [7]
Try to see a computer specialist to help
4 0
2 years ago
Read 2 more answers
What does the acronym vsepr represent {spelling is important} question 1 options:?
azamat
VPESR is an acronym (a word composed of the first letters of a phrase)  that stands for Valence Shell Electron Pair Repulsion.

It's a scientific theory in the field of chemisty, and it predicts the shape of a molecule based on what atoms form this molecule.

If you want to understand the meaning of the name, you can devide it into

Valence shell electron
-electrons that are on the "outside" of the atom and can form bonds with other atoms

and it's the repulsion of these electrons that is being predicted.



5 0
3 years ago
Four reasons why computers are powerful
Setler79 [48]

Answer:

Computers are powerful tools because they can process information with incredible speed, accuracy and dependability. They can efficiently perform input, process, output and storage operations, and they can store massive amounts of data. ... Midrange servers are bigger and more powerful than workstation computers.

8 0
3 years ago
Suppose you need to create the variable fullname by concatenating the values of firstname, which contains first names, and lastn
Morgarella [4.7K]

The right way to remove extra blanks between first names and last names is

data temp;

set cert.maillist;length FullName $ 40;

fullname=trim(firstname)||' '||lastname;

run;

<h3>What is TempData?</h3>

This is known to be a term that is used to  transfer data from view to controller and it is one that saves the data temporarily.

Note that The right way to remove extra blanks between first names and last names is

data temp;

set cert.maillist;length FullName $ 40;

fullname=trim(firstname)||' '||lastname;

run;

Learn more about data from

brainly.com/question/25639778

#SPJ1

6 0
1 year ago
Zeller’s congruence is an algorithm developed by Christian Zeller to calculate the day of the week. The formula is h = (q + 26(m
iragen [17]

Answer:

Here is the program:

import java.util.Scanner;   // to accept input from user

public class Main {  //class definition

public static void main(String[] args) {  //start of main function

 Scanner input = new Scanner(System.in);  //creates Scanner class object

 System.out.print("Enter year: ");  //prompts user to enter Year

 int year = input.nextInt();  // reads input year from user

 System.out.print("Enter month: ");  //prompts user to enter month

 int month = input.nextInt();  // reads input month from user

 System.out.print("Enter the day of the month: ");  //prompts user to enter day of month

 int dayM = input.nextInt();  // reads input day of month from user

 if (month == 1 || month == 2){  //if month is January or February

  month = (month == 1) ? 13 : 14;  //if month is January set month to 13 and 14 otherwise

  year--; }  //decrements value of year

int dayW = (dayM + (26 * (month + 1)) / 10 + (year % 100)  

   + (year % 100) / 4 + (year / 100) / 4 + 5 * (year / 100)) % 7;   //computes day of the week

      System.out.print("Day of the week is ");  //prints day of week

 switch(dayW)  {  //used to print day of the week

  case 0: System.out.println("Saturday"); break;  //if 0 then displays Saturday

  case 1: System.out.println("Sunday"); break; //1 then displays Sunday

  case 2: System.out.println("Monday"); break;  //2 then displays Monday

  case 3: System.out.println("Tuesday"); break;  //3 then displays Tuesday

  case 4: System.out.println("Wednesday"); break;  //4 then displays Wednesday

  case 5: System.out.println("Thursday"); break;  //5 then displays Thursday

  case 6: System.out.println("Friday");   }  }       } //6 then displays Friday

Explanation:

The program first prompts the user to enter the values of year, month and day of month. Then uses the following formula to compute day of the week in that particular year, month and day of week:

Suppose

year = 2020

month = 9

day of month = dayM = 6

Then dayM is calculated as

(dayM + (26 * (month + 1)) / 10 + (year % 100)  

   + (year % 100) / 4 + (year / 100) / 4 + 5 * (year / 100)) % 7

(6+ (26 * (9+ 1)) / 10 + (2020% 100)  

   + (2020% 100) / 4 + (2020/ 100) / 4 + 5 * (2020/ 100)) % 7;

This gives answer as 1.

Now if we see the switch statement the day corresponding to 1 is Sunday

So the day on year 2020, month 9 and day of the month 6 is Sunday.

The screenshot of program along with its output is attached.

5 0
2 years ago
Other questions:
  • For C++ (please make sure it runs properly)
    14·1 answer
  • Which icon will automatically adjust the amount of space between letters from very tight to very loose in style? Hyphenation, Te
    6·2 answers
  • A species of snake lives in a rainforest. Which would be an adaptation for this
    10·2 answers
  • Which of these substances is a very important natural resource that is useful in the making of computer chips?
    11·2 answers
  • ________ is used for supervisory messages at the internet protocol layer.
    10·1 answer
  • Write a program that simulates a lottery. The program should havean array of five integers named lottery, and shouldgenerate a r
    12·1 answer
  • Which TWO of the following are input devices that are parts of a laptop computer?
    9·2 answers
  • Directions
    14·1 answer
  • Write down 5 tips that an office can use to be more sustainable and reduce wastage? Write a description of each one and how it r
    12·1 answer
  • I want the answer of this task ( using prolog language ) ASAP because the deadline is tomorrow. Please help :"
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!